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 Invocationprivate final MockCreationSettingsprivate 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:
getInvocationin interfaceStubbingLookupEvent- Returns:
- The invocation that causes stubbing lookup
-
getStubbingFound
- Specified by:
getStubbingFoundin interfaceStubbingLookupEvent- Returns:
- Looked up stubbing. It can be
null, which indicates that the invocation was not stubbed
-
getAllStubbings
- Specified by:
getAllStubbingsin interfaceStubbingLookupEvent- Returns:
- All stubbings declared on the mock object that we are invoking
-
getMockSettings
- Specified by:
getMockSettingsin interfaceStubbingLookupEvent- Returns:
- Settings of the mock object that we are invoking
-