Skip to content

Commit

Permalink
Add missing mockk automatic verification annotations
Browse files Browse the repository at this point in the history
To make tests fail if there are any mocked methods that are not verified.
See https://mockk.io/#automatic-verification-confirmation
  • Loading branch information
Leitsi committed Oct 20, 2023
1 parent 5bb539d commit 97c8ad3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import org.springframework.test.web.servlet.result.MockMvcResultMatchers
import java.util.UUID

@ExtendWith(MockKExtension::class)
@MockKExtension.ConfirmVerification
@AutoConfigureMockMvc
@SpringBootTest
@ActiveProfiles("test")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import java.util.UUID
private val LOGGER = KotlinLogging.logger {}

@ExtendWith(MockKExtension::class)
@MockKExtension.ConfirmVerification
@AutoConfigureMockMvc
@SpringBootTest
@ActiveProfiles("test")
Expand Down

0 comments on commit 97c8ad3

Please sign in to comment.