Skip to content

Commit

Permalink
Merge pull request #1099 from bboeck/issues-954-CheckUnnecessaryStub_…
Browse files Browse the repository at this point in the history
…annotation_is_applied_to_non-annotated_classes

Issue 954: @MockKExtension.CheckUnnecessaryStub annotation is applied…
  • Loading branch information
Raibaz committed Jun 28, 2023
2 parents 3d66a78 + d098bd3 commit 6a49ba7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ class MockKExtension : TestInstancePostProcessor, ParameterResolver, AfterAllCal
if (context.checkUnnecessaryStub) {
checkUnnecessaryStub()
}

clearAllMocks()
}

private val ExtensionContext.keepMocks: Boolean
Expand Down

0 comments on commit 6a49ba7

Please sign in to comment.