Package org.mockito.internal.listeners
Class StubbingLookupNotifier.Event
java.lang.Object
org.mockito.internal.listeners.StubbingLookupNotifier.Event
- All Implemented Interfaces:
StubbingLookupEvent
- Enclosing class:
- StubbingLookupNotifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection<Stubbing>
private final Invocation
private final MockCreationSettings
private final Stubbing
-
Constructor Summary
ConstructorsConstructorDescriptionEvent
(Invocation invocation, Stubbing stubbing, Collection<Stubbing> allStubbings, MockCreationSettings mockSettings) -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
invocation
-
stubbing
-
allStubbings
-
mockSettings
-
-
Constructor Details
-
Event
public Event(Invocation invocation, Stubbing stubbing, Collection<Stubbing> allStubbings, MockCreationSettings mockSettings)
-
-
Method Details
-
getInvocation
- Specified by:
getInvocation
in interfaceStubbingLookupEvent
- Returns:
- The invocation that causes stubbing lookup
-
getStubbingFound
- Specified by:
getStubbingFound
in interfaceStubbingLookupEvent
- Returns:
- Looked up stubbing. It can be
null
, which indicates that the invocation was not stubbed
-
getAllStubbings
- Specified by:
getAllStubbings
in interfaceStubbingLookupEvent
- Returns:
- All stubbings declared on the mock object that we are invoking
-
getMockSettings
- Specified by:
getMockSettings
in interfaceStubbingLookupEvent
- Returns:
- Settings of the mock object that we are invoking
-