Uses of Interface
org.mockito.invocation.Invocation
Packages that use Invocation
Package
Description
Mockito is a mock library for java - see Mockito class for for usage.
Exception messages, exception hierarchies.
Internal classes, not to be used by clients.
Whatever helps in debugging failed tests
Invocation and related classes.
Mocking progress stateful classes.
Deals with nicely printing verification errors
Stubbing logic.
Answers for stubbed calls
Static utils
Verification logic.
This package should be open to public once verification API is fully finished
verification checkers
Public API related to invocation
-
Uses of Invocation in org.mockito
Methods in org.mockito that return types with arguments of type InvocationModifier and TypeMethodDescriptionMockingDetails.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 InvocationModifier and TypeMethodDescriptionvoid
Reporter.noMoreInteractionsWanted
(Invocation undesired, List<VerificationAwareInvocation> invocations) void
Reporter.noMoreInteractionsWantedInOrder
(Invocation undesired) -
Uses of Invocation in org.mockito.internal
Methods in org.mockito.internal that return InvocationMethods in org.mockito.internal with parameters of type InvocationModifier and TypeMethodDescriptionboolean
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 InvocationModifier and TypeMethodDescriptionvoid
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 InvocationModifierConstructorDescriptionWarningsFinder
(List<Invocation> unusedStubs, List<InvocationMatcher> allInvocations) WarningsPrinterImpl
(List<Invocation> unusedStubs, List<InvocationMatcher> unstubbedInvocations) WarningsPrinterImpl
(List<Invocation> unusedStubs, List<InvocationMatcher> allInvocations, boolean warnAboutUnstubbed) -
Uses of Invocation in org.mockito.internal.invocation
Classes in org.mockito.internal.invocation that implement InvocationMethods in org.mockito.internal.invocation that return InvocationModifier and TypeMethodDescriptionInvocationsFinder.findFirstMatchingUnverifiedInvocation
(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext context) InvocationsFinder.findFirstUnverified
(List<Invocation> invocations) InvocationsFinder.findFirstUnverifiedInOrder
(InOrderContext context, List<Invocation> orderedInvocations) i3 is unverified here: i1, i2, i3 v all good here: i1, i2, i3 v vInvocationsFinder.findPreviousVerifiedInOrder
(List<Invocation> invocations, InOrderContext context) InvocationsFinder.findSimilarInvocation
(List<Invocation> invocations, InvocationMatcher wanted) InvocationMatcher.getInvocation()
Methods in org.mockito.internal.invocation that return types with arguments of type InvocationModifier and TypeMethodDescriptionFinds all unused stubs for given mocksInvocationsFinder.findAllMatchingUnverifiedChunks
(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext orderingContext) InvocationsFinder.findInvocations
(List<Invocation> invocations, InvocationMatcher wanted) 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,1Methods in org.mockito.internal.invocation with parameters of type InvocationModifier and TypeMethodDescriptionboolean
ArgumentsComparator.argumentsMatch
(InvocationMatcher invocationMatcher, Invocation actual) 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 InvocationModifier and TypeMethodDescriptionstatic List<InvocationMatcher>
InvocationMatcher.createFrom
(List<Invocation> invocations) InvocationsFinder.findAllMatchingUnverifiedChunks
(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext orderingContext) InvocationsFinder.findFirstMatchingUnverifiedInvocation
(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext context) InvocationsFinder.findFirstUnverified
(List<Invocation> invocations) InvocationsFinder.findFirstUnverifiedInOrder
(InOrderContext context, List<Invocation> orderedInvocations) i3 is unverified here: i1, i2, i3 v all good here: i1, i2, i3 v vInvocationsFinder.findInvocations
(List<Invocation> invocations, InvocationMatcher wanted) 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,1InvocationsFinder.findPreviousVerifiedInOrder
(List<Invocation> invocations, InOrderContext context) InvocationsFinder.findSimilarInvocation
(List<Invocation> invocations, InvocationMatcher wanted) InvocationsFinder.getLastLocation
(List<Invocation> invocations) void
InvocationMarker.markVerified
(List<Invocation> invocations, CapturesArgumensFromInvocation wanted) void
InvocationMarker.markVerifiedInOrder
(List<Invocation> chunk, CapturesArgumensFromInvocation wanted, InOrderContext context) Constructors in org.mockito.internal.invocation with parameters of type InvocationModifierConstructorDescriptionInvocationMatcher
(Invocation invocation) InvocationMatcher
(Invocation invocation, 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 InvocationModifier and TypeMethodDescriptiongets all invocations from mocks. -
Uses of Invocation in org.mockito.internal.listeners
Constructors in org.mockito.internal.listeners with parameters of type InvocationModifierConstructorDescriptionNotifiedMethodInvocationReport
(Invocation invocation, Object returnedValue) Build a newMethodInvocationReport
with a return value.NotifiedMethodInvocationReport
(Invocation invocation, 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 InvocationModifier and TypeMethodDescriptionvoid
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 InvocationModifier and TypeMethodDescriptionPrintSettings.print
(List<org.hamcrest.Matcher> matchers, Invocation invocation) PrintSettings.print
(Invocation invocation) Constructors in org.mockito.internal.reporting with parameters of type InvocationModifierConstructorDescriptionSmartPrinter
(InvocationMatcher wanted, Invocation actual, Integer... indexesOfMatchersToBeDescribedWithExtraTypeInfo) -
Uses of Invocation in org.mockito.internal.stubbing
Methods in org.mockito.internal.stubbing that return types with arguments of type InvocationModifier and TypeMethodDescriptionInvocationContainer.getInvocations()
InvocationContainerImpl.getInvocations()
OngoingStubbingImpl.getRegisteredInvocations()
Methods in org.mockito.internal.stubbing with parameters of type Invocation -
Uses of Invocation in org.mockito.internal.stubbing.answers
Methods in org.mockito.internal.stubbing.answers with parameters of type InvocationModifier and TypeMethodDescriptionvoid
AnswersValidator.validate
(Answer<?> answer, Invocation invocation) Constructors in org.mockito.internal.stubbing.answers with parameters of type Invocation -
Uses of Invocation in org.mockito.internal.util
Methods in org.mockito.internal.util that return types with arguments of type Invocation -
Uses of Invocation in org.mockito.internal.verification
Methods in org.mockito.internal.verification that return types with arguments of type InvocationModifier and TypeMethodDescriptionDefaultRegisteredInvocations.getAll()
RegisteredInvocations.getAll()
SingleRegisteredInvocation.getAll()
VerificationDataImpl.getAllInvocations()
Methods in org.mockito.internal.verification with parameters of type InvocationModifier and TypeMethodDescriptionvoid
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 InvocationModifier and TypeMethodDescriptionVerificationData.getAllInvocations()
VerificationDataInOrder.getAllInvocations()
VerificationDataInOrderImpl.getAllInvocations()
Methods in org.mockito.internal.verification.api with parameters of type InvocationModifier and TypeMethodDescriptionboolean
InOrderContext.isVerified
(Invocation invocation) void
InOrderContext.markVerified
(Invocation i) Constructor parameters in org.mockito.internal.verification.api with type arguments of type InvocationModifierConstructorDescriptionVerificationDataInOrderImpl
(InOrderContext inOrder, 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 InvocationModifier and TypeMethodDescriptionvoid
AtLeastXNumberOfInvocationsChecker.check
(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) void
AtLeastXNumberOfInvocationsInOrderChecker.check
(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) void
MissingInvocationChecker.check
(List<Invocation> invocations, InvocationMatcher wanted) void
MissingInvocationInOrderChecker.check
(List<Invocation> invocations, InvocationMatcher wanted, VerificationMode mode, InOrderContext context) void
NonGreedyNumberOfInvocationsInOrderChecker.check
(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context) void
NumberOfInvocationsChecker.check
(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) void
NumberOfInvocationsInOrderChecker.check
(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 InvocationModifier and TypeMethodDescriptionMockHandler.handle
(Invocation invocation) Takes an invocation object and handles it.