Package | Description |
---|---|
org.mockito.exceptions |
Exception messages, exception hierarchies.
|
org.mockito.internal |
Internal classes, not to be used by clients.
|
org.mockito.internal.debugging |
Whatever helps in debugging failed tests
|
org.mockito.internal.invocation |
Invocation and related classes.
|
org.mockito.internal.progress |
Mocking progress stateful classes.
|
org.mockito.internal.stubbing |
Stubbing logic.
|
org.mockito.internal.stubbing.answers |
Answers for stubbed calls
|
org.mockito.internal.verification |
Verification logic.
|
org.mockito.internal.verification.api |
This package should be open to public once verification API is fully finished
|
org.mockito.internal.verification.checkers |
verification checkers
|
Modifier and Type | Method and Description |
---|---|
void |
Reporter.noMoreInteractionsWantedInOrder(Invocation undesired) |
Modifier and Type | Method and Description |
---|---|
Invocation |
MockitoCore.getLastInvocation()
For testing purposes only.
|
Modifier and Type | Method and Description |
---|---|
Object |
MockitoInvocationHandler.handle(Invocation invocation) |
Object |
MockHandler.handle(Invocation invocation) |
boolean |
InOrderImpl.isVerified(Invocation i) |
void |
InOrderImpl.markVerified(Invocation i) |
Modifier and Type | Method and Description |
---|---|
void |
LoggingListener.foundStubCalledWithDifferentArgs(Invocation unused,
InvocationMatcher unstubbed) |
void |
FindingsListener.foundStubCalledWithDifferentArgs(Invocation unused,
InvocationMatcher unstubbed) |
void |
LoggingListener.foundUnusedStub(Invocation unused) |
void |
FindingsListener.foundUnusedStub(Invocation unused) |
Constructor and Description |
---|
WarningsFinder(List<Invocation> unusedStubs,
List<InvocationMatcher> allInvocations) |
WarningsPrinterImpl(List<Invocation> unusedStubs,
List<InvocationMatcher> unstubbedInvocations) |
WarningsPrinterImpl(List<Invocation> unusedStubs,
List<InvocationMatcher> allInvocations,
boolean warnAboutUnstubbed) |
Modifier and Type | Method and Description |
---|---|
Invocation |
InvocationsFinder.findFirstUnverified(List<Invocation> invocations) |
Invocation |
InvocationsFinder.findFirstUnverifiedInOrder(InOrderContext context,
List<Invocation> orderedInvocations)
i3 is unverified here:
i1, i2, i3
v
all good here:
i1, i2, i3
v v
|
Invocation |
InvocationsFinder.findPreviousVerifiedInOrder(List<Invocation> invocations,
InOrderContext context) |
Invocation |
InvocationsFinder.findSimilarInvocation(List<Invocation> invocations,
InvocationMatcher wanted) |
Invocation |
InvocationMatcher.getInvocation() |
Modifier and Type | Method and Description |
---|---|
List<Invocation> |
UnusedStubsFinder.find(List<?> mocks)
Finds all unused stubs for given mocks
|
List<Invocation> |
AllInvocationsFinder.find(List<?> mocks)
gets all invocations from mocks.
|
List<Invocation> |
InvocationsFinder.findAllMatchingUnverifiedChunks(List<Invocation> invocations,
InvocationMatcher wanted,
InOrderContext orderingContext) |
List<Invocation> |
InvocationsFinder.findInvocations(List<Invocation> invocations,
InvocationMatcher wanted) |
List<Invocation> |
InvocationsFinder.findMatchingChunk(List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount,
InOrderContext context)
some examples how it works:
Given invocations sequence:
1,1,2,1
if wanted is 1 and mode is times(2) then returns
1,1
if wanted is 1 and mode is atLeast() then returns
1,1,1
if wanted is 1 and mode is times(x), where x != 2 then returns
1,1,1
|
Modifier and Type | Method and Description |
---|---|
boolean |
ArgumentsComparator.argumentsMatch(InvocationMatcher invocationMatcher,
Invocation actual) |
InvocationMatcher |
MatchersBinder.bindMatchers(ArgumentMatcherStorage argumentMatcherStorage,
Invocation invocation) |
void |
InvocationMatcher.captureArgumentsFrom(Invocation i) |
void |
CapturesArgumensFromInvocation.captureArgumentsFrom(Invocation i) |
boolean |
InvocationMatcher.hasSameMethod(Invocation candidate) |
boolean |
InvocationMatcher.hasSimilarMethod(Invocation candidate)
similar means the same method name, same mock, unverified
and: if arguments are the same cannot be overloaded
|
void |
InvocationMarker.markVerified(Invocation invocation,
CapturesArgumensFromInvocation wanted) |
boolean |
InvocationMatcher.matches(Invocation actual) |
Modifier and Type | Method and Description |
---|---|
static List<InvocationMatcher> |
InvocationMatcher.createFrom(List<Invocation> invocations) |
List<Invocation> |
InvocationsFinder.findAllMatchingUnverifiedChunks(List<Invocation> invocations,
InvocationMatcher wanted,
InOrderContext orderingContext) |
Invocation |
InvocationsFinder.findFirstUnverified(List<Invocation> invocations) |
Invocation |
InvocationsFinder.findFirstUnverifiedInOrder(InOrderContext context,
List<Invocation> orderedInvocations)
i3 is unverified here:
i1, i2, i3
v
all good here:
i1, i2, i3
v v
|
List<Invocation> |
InvocationsFinder.findInvocations(List<Invocation> invocations,
InvocationMatcher wanted) |
List<Invocation> |
InvocationsFinder.findMatchingChunk(List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount,
InOrderContext context)
some examples how it works:
Given invocations sequence:
1,1,2,1
if wanted is 1 and mode is times(2) then returns
1,1
if wanted is 1 and mode is atLeast() then returns
1,1,1
if wanted is 1 and mode is times(x), where x != 2 then returns
1,1,1
|
Invocation |
InvocationsFinder.findPreviousVerifiedInOrder(List<Invocation> invocations,
InOrderContext context) |
Invocation |
InvocationsFinder.findSimilarInvocation(List<Invocation> invocations,
InvocationMatcher wanted) |
Location |
InvocationsFinder.getLastLocation(List<Invocation> invocations) |
void |
InvocationMarker.markVerified(List<Invocation> invocations,
CapturesArgumensFromInvocation wanted) |
void |
InvocationMarker.markVerifiedInOrder(List<Invocation> chunk,
CapturesArgumensFromInvocation wanted,
InOrderContext context) |
Constructor and Description |
---|
InvocationMatcher(Invocation invocation) |
InvocationMatcher(Invocation invocation,
List<Matcher> matchers) |
Modifier and Type | Method and Description |
---|---|
void |
ThreadSafeMockingProgress.stubbingCompleted(Invocation invocation) |
void |
MockingProgressImpl.stubbingCompleted(Invocation invocation) |
void |
MockingProgress.stubbingCompleted(Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
List<Invocation> |
InvocationContainerImpl.getInvocations() |
List<Invocation> |
InvocationContainer.getInvocations() |
List<Invocation> |
OngoingStubbingImpl.getRegisteredInvocations() |
Modifier and Type | Method and Description |
---|---|
StubbedInvocationMatcher |
InvocationContainerImpl.findAnswerFor(Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
void |
AnswersValidator.validate(Answer<?> answer,
Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
List<Invocation> |
RegisteredInvocations.getAll() |
List<Invocation> |
VerificationDataImpl.getAllInvocations() |
Modifier and Type | Method and Description |
---|---|
void |
RegisteredInvocations.add(Invocation invocation) |
boolean |
InOrderContextImpl.isVerified(Invocation invocation) |
void |
InOrderContextImpl.markVerified(Invocation i) |
Constructor and Description |
---|
VerificationDataImpl(List<Invocation> allInvocations,
InvocationMatcher wanted) |
Modifier and Type | Method and Description |
---|---|
List<Invocation> |
VerificationDataInOrderImpl.getAllInvocations() |
List<Invocation> |
VerificationDataInOrder.getAllInvocations() |
List<Invocation> |
VerificationData.getAllInvocations() |
Modifier and Type | Method and Description |
---|---|
boolean |
InOrderContext.isVerified(Invocation invocation) |
void |
InOrderContext.markVerified(Invocation i) |
Constructor and Description |
---|
VerificationDataInOrderImpl(InOrderContext inOrder,
List<Invocation> allInvocations,
InvocationMatcher wanted) |
Modifier and Type | Method and Description |
---|---|
void |
MissingInvocationChecker.check(List<Invocation> invocations,
InvocationMatcher wanted) |
void |
NumberOfInvocationsChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
void |
AtLeastXNumberOfInvocationsInOrderChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
void |
AtLeastXNumberOfInvocationsChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
void |
NumberOfInvocationsInOrderChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount,
InOrderContext context) |
void |
MissingInvocationInOrderChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
VerificationMode mode,
InOrderContext context) |
Copyright © 2018. All rights reserved.