Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see
Mockito class for usage. |
org.mockito.internal.framework | |
org.mockito.internal.junit |
JUnit integration support classes.
|
org.mockito.internal.progress |
Mocking progress stateful classes.
|
org.mockito.listeners |
Public classes relative to the listener APIs.
|
Modifier and Type | Method and Description |
---|---|
MockitoFramework |
MockitoFramework.addListener(MockitoListener listener)
Adds listener to Mockito.
|
MockitoFramework |
MockitoFramework.removeListener(MockitoListener listener)
When you add listener using
MockitoFramework.addListener(MockitoListener) make sure to remove it. |
Modifier and Type | Method and Description |
---|---|
MockitoFramework |
DefaultMockitoFramework.addListener(MockitoListener listener) |
MockitoFramework |
DefaultMockitoFramework.removeListener(MockitoListener listener) |
Modifier and Type | Interface and Description |
---|---|
interface |
MockitoTestListener
Internal test listener that helps decoupling JUnit internals from Mockito "business" logic.
|
Modifier and Type | Class and Description |
---|---|
class |
MismatchReportingTestListener
Reports stubbing argument mismatches to the supplied logger
|
class |
NoOpTestListener |
class |
StrictStubsRunnerTestListener
Fails early when mismatched arguments used for stubbing
|
class |
UniversalTestListener
Universal test listener that behaves accordingly to current setting of strictness.
|
class |
UnnecessaryStubbingsReporter
Reports unnecessary stubbings
|
Modifier and Type | Field and Description |
---|---|
private java.util.Set<MockitoListener> |
MockingProgressImpl.listeners |
Modifier and Type | Method and Description |
---|---|
void |
MockingProgressImpl.addListener(MockitoListener listener) |
void |
MockingProgress.addListener(MockitoListener listener) |
(package private) static void |
MockingProgressImpl.addListener(MockitoListener listener,
java.util.Set<MockitoListener> listeners) |
void |
MockingProgressImpl.removeListener(MockitoListener listener) |
void |
MockingProgress.removeListener(MockitoListener listener) |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
MockingProgressImpl.addListener(MockitoListener listener,
java.util.Set<MockitoListener> listeners) |
Modifier and Type | Interface and Description |
---|---|
interface |
MockCreationListener
Notified when mock object is created.
|
interface |
VerificationListener
This listener can be notified of verify invocations on a mock.
|