Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see
Mockito class for usage. |
org.mockito.internal.invocation.finder | |
org.mockito.internal.junit |
JUnit integration support classes.
|
org.mockito.internal.listeners | |
org.mockito.internal.stubbing |
Stubbing logic.
|
org.mockito.internal.util |
Static utils
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Stubbing> |
MockingDetails.getStubbings()
Returns stubbings declared on this mock object.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Set<Stubbing> |
AllInvocationsFinder.findStubbings(java.lang.Iterable<?> mocks)
Gets all stubbings from mocks.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<? extends Stubbing> |
UnusedStubbings.unused |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<Invocation> |
DefaultStubbingLookupListener.potentialArgMismatches(Invocation invocation,
java.util.Collection<Stubbing> stubbings) |
Constructor and Description |
---|
UnusedStubbings(java.util.Collection<? extends Stubbing> unused) |
Modifier and Type | Field and Description |
---|---|
private Stubbing |
StubbingLookupNotifier.Event.stubbing |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Stubbing> |
StubbingLookupNotifier.Event.allStubbings |
Modifier and Type | Method and Description |
---|---|
Stubbing |
StubbingLookupNotifier.Event.getStubbingFound() |
Stubbing |
StubbingLookupEvent.getStubbingFound() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Stubbing> |
StubbingLookupNotifier.Event.getAllStubbings() |
java.util.Collection<Stubbing> |
StubbingLookupEvent.getAllStubbings() |
Modifier and Type | Method and Description |
---|---|
static void |
StubbingLookupNotifier.notifyStubbedAnswerLookup(Invocation invocation,
Stubbing stubbingFound,
java.util.Collection<Stubbing> allStubbings,
CreationSettings creationSettings) |
Modifier and Type | Method and Description |
---|---|
static void |
StubbingLookupNotifier.notifyStubbedAnswerLookup(Invocation invocation,
Stubbing stubbingFound,
java.util.Collection<Stubbing> allStubbings,
CreationSettings creationSettings) |
Constructor and Description |
---|
Event(Invocation invocation,
Stubbing stubbing,
java.util.Collection<Stubbing> allStubbings,
MockCreationSettings mockSettings) |
Constructor and Description |
---|
Event(Invocation invocation,
Stubbing stubbing,
java.util.Collection<Stubbing> allStubbings,
MockCreationSettings mockSettings) |
Modifier and Type | Class and Description |
---|---|
class |
StubbedInvocationMatcher |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Stubbing> |
InvocationContainerImpl.getStubbingsAscending()
Stubbings in ascending order, most recent last
|
java.util.List<Stubbing> |
InvocationContainerImpl.getStubbingsDescending()
Stubbings in descending order, most recent first
|
Modifier and Type | Method and Description |
---|---|
int |
StubbingComparator.compare(Stubbing o1,
Stubbing o2) |
static Strictness |
StrictnessSelector.determineStrictness(Stubbing stubbing,
MockCreationSettings mockSettings,
Strictness testLevelStrictness)
Determines the actual strictness in the following importance order:
1st - strictness configured when declaring stubbing;
2nd - strictness configured at mock level;
3rd - strictness configured at test level (rule, mockito session)
|
static boolean |
UnusedStubbingReporting.shouldBeReported(Stubbing stubbing)
Decides if the stubbing should be reported as unused.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Stubbing> |
DefaultMockingDetails.getStubbings() |