Package org.mockito.junit
Mockito JUnit integration ; rule and runners.
-
Interface Summary Interface Description MockitoRule Mockito JUnit Rule helps keeping tests clean.MockitoTestRule Equivalent toMockitoRule
, but inherits a different JUnit4 base interfaceTestRule
.VerificationCollector Use this rule in order to collect multiple verification failures and report at once. -
Class Summary Class Description MockitoJUnit Mockito supports JUnit via: JUnit Rules - seeMockitoRule
JUnit runners - seeMockitoJUnitRunner
JUnit Jupiter extensionMockitoJUnitRunner Mockito JUnit Runner keeps tests clean and improves debugging experience.MockitoJUnitRunner.Silent This Mockito JUnit Runner implementation *ignores* stubbing argument mismatches (MockitoJUnitRunner.StrictStubs
) and *does not detect* unused stubbings.MockitoJUnitRunner.Strict Detects unused stubs and reports them as failures.MockitoJUnitRunner.StrictStubs Improves debugging tests, helps keeping the tests clean.