Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see
Mockito class for usage. |
org.mockito.internal.invocation.finder | |
org.mockito.internal.listeners | |
org.mockito.internal.stubbing |
Stubbing logic.
|
org.mockito.internal.util |
Static utils
|
Modifier and Type | Method and Description |
---|---|
Collection<Stubbing> |
MockingDetails.getStubbings()
Returns stubbings declared on this mock object.
|
Modifier and Type | Method and Description |
---|---|
static Set<Stubbing> |
AllInvocationsFinder.findStubbings(Iterable<?> mocks)
Gets all stubbings from mocks.
|
Modifier and Type | Method and Description |
---|---|
Stubbing |
StubbingLookupEvent.getStubbingFound() |
Modifier and Type | Method and Description |
---|---|
Collection<Stubbing> |
StubbingLookupEvent.getAllStubbings() |
Modifier and Type | Method and Description |
---|---|
static void |
StubbingLookupNotifier.notifyStubbedAnswerLookup(Invocation invocation,
Stubbing stubbingFound,
Collection<Stubbing> allStubbings,
CreationSettings creationSettings) |
Modifier and Type | Method and Description |
---|---|
static void |
StubbingLookupNotifier.notifyStubbedAnswerLookup(Invocation invocation,
Stubbing stubbingFound,
Collection<Stubbing> allStubbings,
CreationSettings creationSettings) |
Modifier and Type | Class and Description |
---|---|
class |
StubbedInvocationMatcher |
Modifier and Type | Method and Description |
---|---|
Collection<Stubbing> |
InvocationContainerImpl.getStubbingsAscending()
Stubbings in ascending order, most recent last
|
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 |
---|---|
Collection<Stubbing> |
DefaultMockingDetails.getStubbings() |
Copyright © 2020. All rights reserved.