class DefaultStubbingLookupListener extends java.lang.Object implements StubbingLookupListener
Modifier and Type | Field and Description |
---|---|
private Strictness |
currentStrictness |
private boolean |
mismatchesReported |
Constructor and Description |
---|
DefaultStubbingLookupListener(Strictness strictness) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
isMismatchesReported()
Indicates that stubbing argument mismatch was reported
|
void |
onStubbingLookup(StubbingLookupEvent event)
Called by the framework when Mockito looked up an answer for invocation on a mock.
|
private static java.util.List<Invocation> |
potentialArgMismatches(Invocation invocation,
java.util.Collection<Stubbing> stubbings) |
(package private) void |
setCurrentStrictness(Strictness currentStrictness)
Enables resetting the strictness to desired level
|
private Strictness currentStrictness
private boolean mismatchesReported
DefaultStubbingLookupListener(Strictness strictness)
public void onStubbingLookup(StubbingLookupEvent event)
StubbingLookupListener
onStubbingLookup
in interface StubbingLookupListener
event
- - Information about the looked up stubbingprivate static java.util.List<Invocation> potentialArgMismatches(Invocation invocation, java.util.Collection<Stubbing> stubbings)
void setCurrentStrictness(Strictness currentStrictness)
boolean isMismatchesReported()