Uses of Interface
org.mockito.invocation.Invocation
-
Packages that use Invocation Package Description org.mockito Mockito is a mock library for java - see Mockito class for for usage.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 testsorg.mockito.internal.invocation Invocation and related classes.org.mockito.internal.invocation.finder org.mockito.internal.listeners org.mockito.internal.progress Mocking progress stateful classes.org.mockito.internal.reporting Deals with nicely printing verification errorsorg.mockito.internal.stubbing Stubbing logic.org.mockito.internal.stubbing.answers Answers for stubbed callsorg.mockito.internal.util Static utilsorg.mockito.internal.verification Verification logic.org.mockito.internal.verification.api This package should be open to public once verification API is fully finishedorg.mockito.internal.verification.checkers verification checkersorg.mockito.invocation Public API related to invocation -
-
Uses of Invocation in org.mockito
Methods in org.mockito that return types with arguments of type Invocation Modifier and Type Method Description java.util.Collection<Invocation>
MockingDetails. getInvocations()
Provides a collection of methods indicating the invocations of the object -
Uses of Invocation in org.mockito.exceptions
Methods in org.mockito.exceptions with parameters of type Invocation Modifier and Type Method Description void
Reporter. noMoreInteractionsWanted(Invocation undesired, java.util.List<VerificationAwareInvocation> invocations)
void
Reporter. noMoreInteractionsWantedInOrder(Invocation undesired)
-
Uses of Invocation in org.mockito.internal
Methods in org.mockito.internal that return Invocation Modifier and Type Method Description Invocation
MockitoCore. getLastInvocation()
For testing purposes only.Methods in org.mockito.internal with parameters of type Invocation Modifier and Type Method Description boolean
InOrderImpl. isVerified(Invocation i)
void
InOrderImpl. markVerified(Invocation i)
-
Uses of Invocation in org.mockito.internal.debugging
Methods in org.mockito.internal.debugging with parameters of type Invocation Modifier and Type Method Description void
FindingsListener. foundStubCalledWithDifferentArgs(Invocation unused, InvocationMatcher unstubbed)
void
LoggingListener. foundStubCalledWithDifferentArgs(Invocation unused, InvocationMatcher unstubbed)
void
FindingsListener. foundUnusedStub(Invocation unused)
void
LoggingListener. foundUnusedStub(Invocation unused)
Constructor parameters in org.mockito.internal.debugging with type arguments of type Invocation Constructor Description WarningsFinder(java.util.List<Invocation> unusedStubs, java.util.List<InvocationMatcher> allInvocations)
WarningsPrinterImpl(java.util.List<Invocation> unusedStubs, java.util.List<InvocationMatcher> unstubbedInvocations)
WarningsPrinterImpl(java.util.List<Invocation> unusedStubs, java.util.List<InvocationMatcher> allInvocations, boolean warnAboutUnstubbed)
-
Uses of Invocation in org.mockito.internal.invocation
Classes in org.mockito.internal.invocation that implement Invocation Modifier and Type Class Description class
InvocationImpl
Method call on a mock object.Methods in org.mockito.internal.invocation that return Invocation Modifier and Type Method Description Invocation
InvocationsFinder. findFirstMatchingUnverifiedInvocation(java.util.List<Invocation> invocations, InvocationMatcher wanted, InOrderContext context)
Invocation
InvocationsFinder. findFirstUnverified(java.util.List<Invocation> invocations)
Invocation
InvocationsFinder. findFirstUnverifiedInOrder(InOrderContext context, java.util.List<Invocation> orderedInvocations)
i3 is unverified here: i1, i2, i3 v all good here: i1, i2, i3 v vInvocation
InvocationsFinder. findPreviousVerifiedInOrder(java.util.List<Invocation> invocations, InOrderContext context)
Invocation
InvocationsFinder. findSimilarInvocation(java.util.List<Invocation> invocations, InvocationMatcher wanted)
Invocation
InvocationMatcher. getInvocation()
Methods in org.mockito.internal.invocation that return types with arguments of type Invocation Modifier and Type Method Description java.util.List<Invocation>
UnusedStubsFinder. find(java.util.List<?> mocks)
Finds all unused stubs for given mocksjava.util.List<Invocation>
InvocationsFinder. findAllMatchingUnverifiedChunks(java.util.List<Invocation> invocations, InvocationMatcher wanted, InOrderContext orderingContext)
java.util.List<Invocation>
InvocationsFinder. findInvocations(java.util.List<Invocation> invocations, InvocationMatcher wanted)
java.util.List<Invocation>
InvocationsFinder. findMatchingChunk(java.util.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,1Methods in org.mockito.internal.invocation with parameters of type Invocation Modifier and Type Method Description boolean
ArgumentsComparator. argumentsMatch(InvocationMatcher invocationMatcher, Invocation actual)
InvocationMatcher
MatchersBinder. bindMatchers(ArgumentMatcherStorage argumentMatcherStorage, Invocation invocation)
void
CapturesArgumensFromInvocation. captureArgumentsFrom(Invocation i)
void
InvocationMatcher. captureArgumentsFrom(Invocation invocation)
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 overloadedvoid
InvocationMarker. markVerified(Invocation invocation, CapturesArgumensFromInvocation wanted)
boolean
InvocationMatcher. matches(Invocation actual)
Method parameters in org.mockito.internal.invocation with type arguments of type Invocation Modifier and Type Method Description static java.util.List<InvocationMatcher>
InvocationMatcher. createFrom(java.util.List<Invocation> invocations)
java.util.List<Invocation>
InvocationsFinder. findAllMatchingUnverifiedChunks(java.util.List<Invocation> invocations, InvocationMatcher wanted, InOrderContext orderingContext)
Invocation
InvocationsFinder. findFirstMatchingUnverifiedInvocation(java.util.List<Invocation> invocations, InvocationMatcher wanted, InOrderContext context)
Invocation
InvocationsFinder. findFirstUnverified(java.util.List<Invocation> invocations)
Invocation
InvocationsFinder. findFirstUnverifiedInOrder(InOrderContext context, java.util.List<Invocation> orderedInvocations)
i3 is unverified here: i1, i2, i3 v all good here: i1, i2, i3 v vjava.util.List<Invocation>
InvocationsFinder. findInvocations(java.util.List<Invocation> invocations, InvocationMatcher wanted)
java.util.List<Invocation>
InvocationsFinder. findMatchingChunk(java.util.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,1Invocation
InvocationsFinder. findPreviousVerifiedInOrder(java.util.List<Invocation> invocations, InOrderContext context)
Invocation
InvocationsFinder. findSimilarInvocation(java.util.List<Invocation> invocations, InvocationMatcher wanted)
Location
InvocationsFinder. getLastLocation(java.util.List<Invocation> invocations)
void
InvocationMarker. markVerified(java.util.List<Invocation> invocations, CapturesArgumensFromInvocation wanted)
void
InvocationMarker. markVerifiedInOrder(java.util.List<Invocation> chunk, CapturesArgumensFromInvocation wanted, InOrderContext context)
Constructors in org.mockito.internal.invocation with parameters of type Invocation Constructor Description InvocationMatcher(Invocation invocation)
InvocationMatcher(Invocation invocation, java.util.List<org.hamcrest.Matcher> matchers)
-
Uses of Invocation in org.mockito.internal.invocation.finder
Methods in org.mockito.internal.invocation.finder that return types with arguments of type Invocation Modifier and Type Method Description java.util.List<Invocation>
AllInvocationsFinder. find(java.util.List<?> mocks)
gets all invocations from mocks.java.util.List<Invocation>
VerifiableInvocationsFinder. find(java.util.List<?> mocks)
-
Uses of Invocation in org.mockito.internal.listeners
Constructors in org.mockito.internal.listeners with parameters of type Invocation Constructor Description NotifiedMethodInvocationReport(Invocation invocation, java.lang.Object returnedValue)
Build a newMethodInvocationReport
with a return value.NotifiedMethodInvocationReport(Invocation invocation, java.lang.Throwable throwable)
Build a newMethodInvocationReport
with a return value. -
Uses of Invocation in org.mockito.internal.progress
Methods in org.mockito.internal.progress with parameters of type Invocation Modifier and Type Method Description void
MockingProgress. stubbingCompleted(Invocation invocation)
void
MockingProgressImpl. stubbingCompleted(Invocation invocation)
void
ThreadSafeMockingProgress. stubbingCompleted(Invocation invocation)
-
Uses of Invocation in org.mockito.internal.reporting
Methods in org.mockito.internal.reporting with parameters of type Invocation Modifier and Type Method Description java.lang.String
PrintSettings. print(java.util.List<org.hamcrest.Matcher> matchers, Invocation invocation)
java.lang.String
PrintSettings. print(Invocation invocation)
Constructors in org.mockito.internal.reporting with parameters of type Invocation Constructor Description SmartPrinter(InvocationMatcher wanted, Invocation actual, java.lang.Integer... indexesOfMatchersToBeDescribedWithExtraTypeInfo)
-
Uses of Invocation in org.mockito.internal.stubbing
Methods in org.mockito.internal.stubbing that return types with arguments of type Invocation Modifier and Type Method Description java.util.List<Invocation>
InvocationContainer. getInvocations()
java.util.List<Invocation>
InvocationContainerImpl. getInvocations()
java.util.List<Invocation>
OngoingStubbingImpl. getRegisteredInvocations()
Methods in org.mockito.internal.stubbing with parameters of type Invocation Modifier and Type Method Description StubbedInvocationMatcher
InvocationContainerImpl. findAnswerFor(Invocation invocation)
-
Uses of Invocation in org.mockito.internal.stubbing.answers
Methods in org.mockito.internal.stubbing.answers with parameters of type Invocation Modifier and Type Method Description void
AnswersValidator. validate(Answer<?> answer, Invocation invocation)
Constructors in org.mockito.internal.stubbing.answers with parameters of type Invocation Constructor Description MethodInfo(Invocation theInvocation)
-
Uses of Invocation in org.mockito.internal.util
Methods in org.mockito.internal.util that return types with arguments of type Invocation Modifier and Type Method Description java.util.Collection<Invocation>
DefaultMockingDetails. getInvocations()
-
Uses of Invocation in org.mockito.internal.verification
Methods in org.mockito.internal.verification that return types with arguments of type Invocation Modifier and Type Method Description java.util.List<Invocation>
DefaultRegisteredInvocations. getAll()
java.util.List<Invocation>
RegisteredInvocations. getAll()
java.util.List<Invocation>
SingleRegisteredInvocation. getAll()
java.util.List<Invocation>
VerificationDataImpl. getAllInvocations()
Methods in org.mockito.internal.verification with parameters of type Invocation Modifier and Type Method Description void
DefaultRegisteredInvocations. add(Invocation invocation)
void
RegisteredInvocations. add(Invocation invocation)
void
SingleRegisteredInvocation. add(Invocation invocation)
boolean
InOrderContextImpl. isVerified(Invocation invocation)
void
InOrderContextImpl. markVerified(Invocation i)
-
Uses of Invocation in org.mockito.internal.verification.api
Methods in org.mockito.internal.verification.api that return types with arguments of type Invocation Modifier and Type Method Description java.util.List<Invocation>
VerificationData. getAllInvocations()
java.util.List<Invocation>
VerificationDataInOrder. getAllInvocations()
java.util.List<Invocation>
VerificationDataInOrderImpl. getAllInvocations()
Methods in org.mockito.internal.verification.api with parameters of type Invocation Modifier and Type Method Description boolean
InOrderContext. isVerified(Invocation invocation)
void
InOrderContext. markVerified(Invocation i)
Constructor parameters in org.mockito.internal.verification.api with type arguments of type Invocation Constructor Description VerificationDataInOrderImpl(InOrderContext inOrder, java.util.List<Invocation> allInvocations, InvocationMatcher wanted)
-
Uses of Invocation in org.mockito.internal.verification.checkers
Method parameters in org.mockito.internal.verification.checkers with type arguments of type Invocation Modifier and Type Method Description void
AtLeastXNumberOfInvocationsChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, int wantedCount)
void
AtLeastXNumberOfInvocationsInOrderChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, int wantedCount)
void
MissingInvocationChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted)
void
MissingInvocationInOrderChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, VerificationMode mode, InOrderContext context)
void
NonGreedyNumberOfInvocationsInOrderChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context)
void
NumberOfInvocationsChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, int wantedCount)
void
NumberOfInvocationsInOrderChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context)
-
Uses of Invocation in org.mockito.invocation
Methods in org.mockito.invocation with parameters of type Invocation Modifier and Type Method Description java.lang.Object
MockHandler. handle(Invocation invocation)
Takes an invocation object and handles it.
-