Package | Description |
---|---|
org.mockito.internal.junit |
JUnit integration support classes.
|
org.mockito.junit |
Mockito JUnit integration ; rule and runners.
|
Modifier and Type | Class and Description |
---|---|
class |
JUnitRule
Internal implementation.
|
Modifier and Type | Method and Description |
---|---|
MockitoRule |
JUnitRule.silent() |
MockitoRule |
JUnitRule.strictness(Strictness strictness) |
Modifier and Type | Method and Description |
---|---|
static MockitoRule |
MockitoJUnit.rule()
Creates rule instance that initiates @Mocks
For more details and examples see
MockitoRule . |
MockitoRule |
MockitoRule.silent()
Rule will not report stubbing warnings during test execution.
|
MockitoRule |
MockitoRule.strictness(Strictness strictness)
The strictness, especially "strict stubs" (
Strictness.STRICT_STUBS )
helps debugging and keeping tests clean. |