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 TypeMethodDescriptionvoidReporter.noMoreInteractionsWanted(Invocation undesired, List<VerificationAwareInvocation> invocations) voidReporter.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 TypeMethodDescriptionbooleanInOrderImpl.isVerified(Invocation i) voidInOrderImpl.markVerified(Invocation i) -
Uses of Invocation in org.mockito.internal.debugging
Methods in org.mockito.internal.debugging with parameters of type InvocationModifier and TypeMethodDescriptionvoidFindingsListener.foundStubCalledWithDifferentArgs(Invocation unused, InvocationMatcher unstubbed) voidLoggingListener.foundStubCalledWithDifferentArgs(Invocation unused, InvocationMatcher unstubbed) voidFindingsListener.foundUnusedStub(Invocation unused) voidLoggingListener.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 TypeMethodDescriptionbooleanArgumentsComparator.argumentsMatch(InvocationMatcher invocationMatcher, Invocation actual) MatchersBinder.bindMatchers(ArgumentMatcherStorage argumentMatcherStorage, Invocation invocation) voidCapturesArgumensFromInvocation.captureArgumentsFrom(Invocation i) voidInvocationMatcher.captureArgumentsFrom(Invocation invocation) booleanInvocationMatcher.hasSameMethod(Invocation candidate) booleanInvocationMatcher.hasSimilarMethod(Invocation candidate) similar means the same method name, same mock, unverified and: if arguments are the same cannot be overloadedvoidInvocationMarker.markVerified(Invocation invocation, CapturesArgumensFromInvocation wanted) booleanInvocationMatcher.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) voidInvocationMarker.markVerified(List<Invocation> invocations, CapturesArgumensFromInvocation wanted) voidInvocationMarker.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 newMethodInvocationReportwith a return value.NotifiedMethodInvocationReport(Invocation invocation, Throwable throwable) Build a newMethodInvocationReportwith a return value. -
Uses of Invocation in org.mockito.internal.progress
Methods in org.mockito.internal.progress with parameters of type InvocationModifier and TypeMethodDescriptionvoidMockingProgress.stubbingCompleted(Invocation invocation) voidMockingProgressImpl.stubbingCompleted(Invocation invocation) voidThreadSafeMockingProgress.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 TypeMethodDescriptionvoidAnswersValidator.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 TypeMethodDescriptionvoidDefaultRegisteredInvocations.add(Invocation invocation) voidRegisteredInvocations.add(Invocation invocation) voidSingleRegisteredInvocation.add(Invocation invocation) booleanInOrderContextImpl.isVerified(Invocation invocation) voidInOrderContextImpl.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 TypeMethodDescriptionbooleanInOrderContext.isVerified(Invocation invocation) voidInOrderContext.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 TypeMethodDescriptionvoidAtLeastXNumberOfInvocationsChecker.check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) voidAtLeastXNumberOfInvocationsInOrderChecker.check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) voidMissingInvocationChecker.check(List<Invocation> invocations, InvocationMatcher wanted) voidMissingInvocationInOrderChecker.check(List<Invocation> invocations, InvocationMatcher wanted, VerificationMode mode, InOrderContext context) voidNonGreedyNumberOfInvocationsInOrderChecker.check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context) voidNumberOfInvocationsChecker.check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) voidNumberOfInvocationsInOrderChecker.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.