Uses of Interface
org.mockito.invocation.Invocation
-
Packages that use Invocation Package Description org.mockito Mockito is a mock library for java - seeMockitoclass for usage.org.mockito.internal Internal classes, not to be used by clients.org.mockito.internal.debugging Whatever helps in debugging failed tests.org.mockito.internal.exceptions org.mockito.internal.handler org.mockito.internal.invocation Invocation machinery and related classes.org.mockito.internal.invocation.finder org.mockito.internal.junit JUnit integration support classes.org.mockito.internal.listeners org.mockito.internal.reporting Deals with nicely printing verification errors.org.mockito.internal.stubbing Stubbing logic.org.mockito.internal.stubbing.answers Answers for stubbed calls.org.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 finished.org.mockito.internal.verification.checkers Verification checkers.org.mockito.invocation Public API related to mock method invocations.org.mockito.listeners Public classes relative to the listener APIs.org.mockito.stubbing Stubbing related classes. -
-
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()All method invocations on this mock. -
Uses of Invocation in org.mockito.internal
Methods in org.mockito.internal that return Invocation Modifier and Type Method Description InvocationMockitoCore. getLastInvocation()For testing purposes only.Methods in org.mockito.internal with parameters of type Invocation Modifier and Type Method Description booleanInOrderImpl. isVerified(Invocation i)voidInOrderImpl. markVerified(Invocation i) -
Uses of Invocation in org.mockito.internal.debugging
Fields in org.mockito.internal.debugging with type parameters of type Invocation Modifier and Type Field Description private java.util.List<Invocation>WarningsFinder. baseUnusedStubsMethods in org.mockito.internal.debugging with parameters of type Invocation Modifier and Type Method Description voidFindingsListener. 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 Invocation Constructor Description WarningsFinder(java.util.List<Invocation> unusedStubs, java.util.List<InvocationMatcher> allInvocations)WarningsPrinterImpl(java.util.List<Invocation> unusedStubs, java.util.List<InvocationMatcher> allInvocations, boolean warnAboutUnstubbed) -
Uses of Invocation in org.mockito.internal.exceptions
Methods in org.mockito.internal.exceptions with parameters of type Invocation Modifier and Type Method Description private static voidReporter. appendNotMatchingPositions(Invocation actualInvocation, MatchableInvocation matchableInvocation, java.lang.StringBuilder messageBuilder)static java.lang.AssertionErrorReporter. argumentsAreDifferent(Invocation actualInvocation, MatchableInvocation matchableInvocation, java.lang.String wanted, java.util.List<java.lang.String> actualCalls, java.util.List<Location> actualLocations)static MockitoAssertionErrorReporter. noMoreInteractionsWanted(Invocation undesired, java.util.List<VerificationAwareInvocation> invocations)static MockitoAssertionErrorReporter. noMoreInteractionsWantedInOrder(Invocation undesired)static voidReporter. potentialStubbingProblem(Invocation actualInvocation, java.util.Collection<Invocation> argMismatchStubbings)Method parameters in org.mockito.internal.exceptions with type arguments of type Invocation Modifier and Type Method Description private static java.lang.StringReporter. createAllLocationsArgsMessage(java.util.List<Invocation> invocations)static UnnecessaryStubbingExceptionReporter. formatUnncessaryStubbingException(java.lang.Class<?> testClass, java.util.Collection<Invocation> unnecessaryStubbings)static MockitoAssertionErrorReporter. neverWantedButInvoked(DescribedInvocation wanted, java.util.List<Invocation> invocations)static voidReporter. potentialStubbingProblem(Invocation actualInvocation, java.util.Collection<Invocation> argMismatchStubbings)static voidReporter. unncessaryStubbingException(java.util.List<Invocation> unused) -
Uses of Invocation in org.mockito.internal.handler
Fields in org.mockito.internal.handler declared as Invocation Modifier and Type Field Description private InvocationNotifiedMethodInvocationReport. invocationMethods in org.mockito.internal.handler with parameters of type Invocation Modifier and Type Method Description java.lang.ObjectInvocationNotifierHandler. handle(Invocation invocation)java.lang.ObjectMockHandlerImpl. handle(Invocation invocation)java.lang.ObjectNullResultGuardian. handle(Invocation invocation)private voidInvocationNotifierHandler. notifyMethodCall(Invocation invocation, java.lang.Object returnValue)private voidInvocationNotifierHandler. notifyMethodCallException(Invocation invocation, java.lang.Throwable exception)Constructors in org.mockito.internal.handler with parameters of type Invocation Constructor Description NotifiedMethodInvocationReport(Invocation invocation, java.lang.Object returnedValue)Build a newMethodInvocationReportwith a return value.NotifiedMethodInvocationReport(Invocation invocation, java.lang.Throwable throwable)Build a newMethodInvocationReportwith a return value. -
Uses of Invocation in org.mockito.internal.invocation
Classes in org.mockito.internal.invocation that implement Invocation Modifier and Type Class Description classInterceptedInvocationFields in org.mockito.internal.invocation declared as Invocation Modifier and Type Field Description private InvocationInvocationMatcher. invocationprivate InvocationMatcherApplicationStrategy. invocationMethods in org.mockito.internal.invocation that return Invocation Modifier and Type Method Description InvocationDefaultInvocationFactory. createInvocation(java.lang.Object target, MockCreationSettings settings, java.lang.reflect.Method method, java.util.concurrent.Callable realMethod, java.lang.Object... args)private InvocationDefaultInvocationFactory. createInvocation(java.lang.Object target, MockCreationSettings settings, java.lang.reflect.Method method, RealMethod superMethod, java.lang.Object[] args)InvocationDefaultInvocationFactory. createInvocation(java.lang.Object target, MockCreationSettings settings, java.lang.reflect.Method method, InvocationFactory.RealMethodBehavior realMethod, java.lang.Object... args)static InvocationInvocationsFinder. findFirstMatchingUnverifiedInvocation(java.util.List<Invocation> invocations, MatchableInvocation wanted, InOrderContext context)static InvocationInvocationsFinder. findFirstUnverified(java.util.List<Invocation> invocations)(package private) static InvocationInvocationsFinder. findFirstUnverified(java.util.List<Invocation> invocations, java.lang.Object mock)static InvocationInvocationsFinder. findFirstUnverifiedInOrder(InOrderContext context, java.util.List<Invocation> orderedInvocations)i3 is unverified here: i1, i2, i3 v all good here: i1, i2, i3 v vstatic InvocationInvocationsFinder. findPreviousVerifiedInOrder(java.util.List<Invocation> invocations, InOrderContext context)static InvocationInvocationsFinder. findSimilarInvocation(java.util.List<Invocation> invocations, MatchableInvocation wanted)InvocationInvocationMatcher. getInvocation()Methods in org.mockito.internal.invocation that return types with arguments of type Invocation Modifier and Type Method Description static java.util.List<Invocation>InvocationsFinder. findAllMatchingUnverifiedChunks(java.util.List<Invocation> invocations, MatchableInvocation wanted, InOrderContext orderingContext)static java.util.List<Invocation>InvocationsFinder. findInvocations(java.util.List<Invocation> invocations, MatchableInvocation wanted)static java.util.List<Invocation>InvocationsFinder. findMatchingChunk(java.util.List<Invocation> invocations, MatchableInvocation 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,1private static java.util.List<Invocation>InvocationsFinder. getFirstMatchingChunk(MatchableInvocation wanted, java.util.List<Invocation> unverified)private static java.util.List<Invocation>InvocationsFinder. removeVerifiedInOrder(java.util.List<Invocation> invocations, InOrderContext orderingContext)Methods in org.mockito.internal.invocation with parameters of type Invocation Modifier and Type Method Description private booleanInvocationMatcher. argumentsMatch(Invocation actual)InvocationMatcherMatchersBinder. bindMatchers(ArgumentMatcherStorage argumentMatcherStorage, Invocation invocation)voidInvocationMatcher. captureArgumentsFrom(Invocation invocation)intInvocationComparator. compare(Invocation o1, Invocation o2)static MatcherApplicationStrategyMatcherApplicationStrategy. getMatcherApplicationStrategyFor(Invocation invocation, java.util.List<? extends ArgumentMatcher<?>> matchers)Returns theMatcherApplicationStrategythat must be used to capture the arguments of the given invocation using the given matchers.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 overloadedstatic voidInvocationMarker. markVerified(Invocation invocation, MatchableInvocation wanted)booleanInvocationMatcher. matches(Invocation candidate)private voidMatchersBinder. validateMatchers(Invocation invocation, java.util.List<LocalizedMatcher> lastMatchers)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)static java.util.List<Invocation>InvocationsFinder. findAllMatchingUnverifiedChunks(java.util.List<Invocation> invocations, MatchableInvocation wanted, InOrderContext orderingContext)static InvocationInvocationsFinder. findFirstMatchingUnverifiedInvocation(java.util.List<Invocation> invocations, MatchableInvocation wanted, InOrderContext context)static InvocationInvocationsFinder. findFirstUnverified(java.util.List<Invocation> invocations)(package private) static InvocationInvocationsFinder. findFirstUnverified(java.util.List<Invocation> invocations, java.lang.Object mock)static InvocationInvocationsFinder. findFirstUnverifiedInOrder(InOrderContext context, java.util.List<Invocation> orderedInvocations)i3 is unverified here: i1, i2, i3 v all good here: i1, i2, i3 v vstatic java.util.List<Invocation>InvocationsFinder. findInvocations(java.util.List<Invocation> invocations, MatchableInvocation wanted)static java.util.List<Invocation>InvocationsFinder. findMatchingChunk(java.util.List<Invocation> invocations, MatchableInvocation 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,1static InvocationInvocationsFinder. findPreviousVerifiedInOrder(java.util.List<Invocation> invocations, InOrderContext context)static InvocationInvocationsFinder. findSimilarInvocation(java.util.List<Invocation> invocations, MatchableInvocation wanted)static java.util.List<Location>InvocationsFinder. getAllLocations(java.util.List<Invocation> invocations)private static java.util.List<Invocation>InvocationsFinder. getFirstMatchingChunk(MatchableInvocation wanted, java.util.List<Invocation> unverified)static LocationInvocationsFinder. getLastLocation(java.util.List<Invocation> invocations)static voidInvocationMarker. markVerified(java.util.List<Invocation> invocations, MatchableInvocation wanted)static voidInvocationMarker. markVerifiedInOrder(java.util.List<Invocation> chunk, MatchableInvocation wanted, InOrderContext context)private static java.util.List<Invocation>InvocationsFinder. removeVerifiedInOrder(java.util.List<Invocation> invocations, InOrderContext orderingContext)Constructors in org.mockito.internal.invocation with parameters of type Invocation Constructor Description InvocationMatcher(Invocation invocation)InvocationMatcher(Invocation invocation, java.util.List<ArgumentMatcher> matchers)MatcherApplicationStrategy(Invocation invocation, java.util.List<? extends ArgumentMatcher<?>> 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 static java.util.List<Invocation>AllInvocationsFinder. find(java.lang.Iterable<?> mocks)gets all invocations from mocks.static java.util.List<Invocation>VerifiableInvocationsFinder. find(java.util.List<?> mocks) -
Uses of Invocation in org.mockito.internal.junit
Fields in org.mockito.internal.junit with type parameters of type Invocation Modifier and Type Field Description (package private) java.util.Map<Invocation,java.util.Set<Invocation>>StubbingArgMismatches. mismatches(package private) java.util.Map<Invocation,java.util.Set<Invocation>>StubbingArgMismatches. mismatchesMethods in org.mockito.internal.junit that return types with arguments of type Invocation Modifier and Type Method Description java.util.Collection<Invocation>UnusedStubbingsFinder. getUnusedStubbingsByLocation(java.lang.Iterable<java.lang.Object> mocks)Gets unused stubbings per location.private static java.util.List<Invocation>DefaultStubbingLookupListener. potentialArgMismatches(Invocation invocation, java.util.Collection<Stubbing> stubbings)Methods in org.mockito.internal.junit with parameters of type Invocation Modifier and Type Method Description voidStubbingArgMismatches. add(Invocation invocation, Invocation stubbing)private static java.util.List<Invocation>DefaultStubbingLookupListener. potentialArgMismatches(Invocation invocation, java.util.Collection<Stubbing> stubbings) -
Uses of Invocation in org.mockito.internal.listeners
Fields in org.mockito.internal.listeners declared as Invocation Modifier and Type Field Description private InvocationStubbingLookupNotifier.Event. invocationMethods in org.mockito.internal.listeners that return Invocation Modifier and Type Method Description InvocationStubbingLookupNotifier.Event. getInvocation()Methods in org.mockito.internal.listeners with parameters of type Invocation Modifier and Type Method Description static voidStubbingLookupNotifier. notifyStubbedAnswerLookup(Invocation invocation, Stubbing stubbingFound, java.util.Collection<Stubbing> allStubbings, CreationSettings creationSettings)Constructors in org.mockito.internal.listeners with parameters of type Invocation Constructor Description Event(Invocation invocation, Stubbing stubbing, java.util.Collection<Stubbing> allStubbings, MockCreationSettings mockSettings) -
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.StringPrintSettings. print(java.util.List<ArgumentMatcher> matchers, Invocation invocation)java.lang.StringPrintSettings. print(Invocation invocation)Method parameters in org.mockito.internal.reporting with type arguments of type Invocation Modifier and Type Method Description private static booleanSmartPrinter. isMultiLine(MatchableInvocation wanted, java.util.List<Invocation> allActualInvocations)Constructors in org.mockito.internal.reporting with parameters of type Invocation Constructor Description SmartPrinter(MatchableInvocation wanted, Invocation actual, java.lang.Integer... indexesOfMatchersToBeDescribedWithExtraTypeInfo)Constructor parameters in org.mockito.internal.reporting with type arguments of type Invocation Constructor Description SmartPrinter(MatchableInvocation wanted, java.util.List<Invocation> allActualInvocations, java.lang.Integer[] indexesOfMatchersToBeDescribedWithExtraTypeInfo, java.util.Set<java.lang.String> classNamesToBeDescribedWithFullName) -
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>InvocationContainerImpl. getInvocations()java.util.List<Invocation>OngoingStubbingImpl. getRegisteredInvocations()Methods in org.mockito.internal.stubbing with parameters of type Invocation Modifier and Type Method Description (package private) java.lang.ObjectInvocationContainerImpl. answerTo(Invocation invocation)StubbedInvocationMatcherInvocationContainerImpl. 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 private java.lang.Class<?>ReturnsArgumentAt. inferArgumentType(Invocation invocation, int argumentIndex)private voidReturnsArgumentAt. validateArgumentTypeCompatibility(Invocation invocation, int argumentPosition) -
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
Fields in org.mockito.internal.verification declared as Invocation Modifier and Type Field Description private InvocationSingleRegisteredInvocation. invocationFields in org.mockito.internal.verification with type parameters of type Invocation Modifier and Type Field Description private java.util.LinkedList<Invocation>DefaultRegisteredInvocations. invocationsMethods 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 voidDefaultRegisteredInvocations. add(Invocation invocation)voidRegisteredInvocations. add(Invocation invocation)voidSingleRegisteredInvocation. add(Invocation invocation)booleanInOrderContextImpl. isVerified(Invocation invocation)voidInOrderContextImpl. markVerified(Invocation i)Method parameters in org.mockito.internal.verification with type arguments of type Invocation Modifier and Type Method Description private voidAtMost. removeAlreadyVerified(java.util.List<Invocation> invocations) -
Uses of Invocation in org.mockito.internal.verification.api
Fields in org.mockito.internal.verification.api with type parameters of type Invocation Modifier and Type Field Description private java.util.List<Invocation>VerificationDataInOrderImpl. allInvocationsMethods 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()All invocations recorded on the mock object that is being verified.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 booleanInOrderContext. isVerified(Invocation invocation)voidInOrderContext. 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, MatchableInvocation 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 static voidAtLeastXNumberOfInvocationsChecker. checkAtLeastNumberOfInvocations(java.util.List<Invocation> invocations, MatchableInvocation wanted, int wantedCount)static voidAtLeastXNumberOfInvocationsChecker. checkAtLeastNumberOfInvocations(java.util.List<Invocation> invocations, MatchableInvocation wanted, int wantedCount, InOrderContext orderingContext)static voidMissingInvocationChecker. checkMissingInvocation(java.util.List<Invocation> invocations, MatchableInvocation wanted)static voidMissingInvocationChecker. checkMissingInvocation(java.util.List<Invocation> invocations, MatchableInvocation wanted, InOrderContext context)static voidNumberOfInvocationsChecker. checkNumberOfInvocations(java.util.List<Invocation> invocations, MatchableInvocation wanted, int wantedCount)static voidNumberOfInvocationsChecker. checkNumberOfInvocations(java.util.List<Invocation> invocations, MatchableInvocation wanted, int wantedCount, InOrderContext context)static voidNumberOfInvocationsChecker. checkNumberOfInvocationsNonGreedy(java.util.List<Invocation> invocations, MatchableInvocation wanted, int wantedCount, InOrderContext context) -
Uses of Invocation in org.mockito.invocation
Methods in org.mockito.invocation that return Invocation Modifier and Type Method Description InvocationInvocationFactory. createInvocation(java.lang.Object target, MockCreationSettings settings, java.lang.reflect.Method method, InvocationFactory.RealMethodBehavior realMethod, java.lang.Object... args)Creates instance of anInvocationobject.InvocationMatchableInvocation. getInvocation()The actual invocation Mockito will match against.Methods in org.mockito.invocation with parameters of type Invocation Modifier and Type Method Description voidMatchableInvocation. captureArgumentsFrom(Invocation invocation)This method is used by Mockito to implement argument captor functionality (seeArgumentCaptor.java.lang.ObjectMockHandler. handle(Invocation invocation)Takes an invocation object and handles it.booleanMatchableInvocation. hasSameMethod(Invocation candidate)Returns true if the candidate invocation has the same method (method name and parameter types)booleanMatchableInvocation. hasSimilarMethod(Invocation candidate)Candidate invocation has the similar method.booleanMatchableInvocation. matches(Invocation candidate)Same method, mock and all arguments match. -
Uses of Invocation in org.mockito.listeners
Methods in org.mockito.listeners that return Invocation Modifier and Type Method Description InvocationStubbingLookupEvent. getInvocation() -
Uses of Invocation in org.mockito.stubbing
Methods in org.mockito.stubbing that return Invocation Modifier and Type Method Description InvocationStubbing. getInvocation()Returns the method invocation that is stubbed.
-