static class VerificationStartedNotifier.Event extends java.lang.Object implements VerificationStartedEvent
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
mock |
private MockingDetails |
originalMockingDetails |
Constructor and Description |
---|
Event(MockingDetails originalMockingDetails) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getMock()
The mock object that will be used during verification.
|
void |
setMock(java.lang.Object mock)
Replaces existing mock object for verification with a different one.
|
private final MockingDetails originalMockingDetails
private java.lang.Object mock
public Event(MockingDetails originalMockingDetails)
public void setMock(java.lang.Object mock)
VerificationStartedEvent
VerificationStartedListener
.
If this method is used to replace the mock the sibling method VerificationStartedEvent.getMock()
will return the new value.
CAVEAT: if setMock(Object)
is invoked multiple times from one or many listeners
the sibling method VerificationStartedEvent.getMock()
will return mock that was set by most recent invocation of setMock(Object)
.
setMock
in interface VerificationStartedEvent
mock
- to be used for verification.public java.lang.Object getMock()
VerificationStartedEvent
VerificationStartedEvent.setMock(Object)
for more details.
Please see VerificationStartedListener
for all details of verification started listeners.getMock
in interface VerificationStartedEvent