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 voidReporter. noMoreInteractionsWanted(Invocation undesired, java.util.List<VerificationAwareInvocation> invocations)voidReporter. noMoreInteractionsWantedInOrder(Invocation undesired) -
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
Methods 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> 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 classInvocationImplMethod call on a mock object.Methods in org.mockito.internal.invocation that return Invocation Modifier and Type Method Description InvocationInvocationsFinder. findFirstMatchingUnverifiedInvocation(java.util.List<Invocation> invocations, InvocationMatcher wanted, InOrderContext context)InvocationInvocationsFinder. findFirstUnverified(java.util.List<Invocation> invocations)InvocationInvocationsFinder. findFirstUnverifiedInOrder(InOrderContext context, java.util.List<Invocation> orderedInvocations)i3 is unverified here: i1, i2, i3 v all good here: i1, i2, i3 v vInvocationInvocationsFinder. findPreviousVerifiedInOrder(java.util.List<Invocation> invocations, InOrderContext context)InvocationInvocationsFinder. findSimilarInvocation(java.util.List<Invocation> invocations, InvocationMatcher wanted)InvocationInvocationMatcher. 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 booleanArgumentsComparator. argumentsMatch(InvocationMatcher invocationMatcher, Invocation actual)InvocationMatcherMatchersBinder. 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 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)InvocationInvocationsFinder. findFirstMatchingUnverifiedInvocation(java.util.List<Invocation> invocations, InvocationMatcher wanted, InOrderContext context)InvocationInvocationsFinder. findFirstUnverified(java.util.List<Invocation> invocations)InvocationInvocationsFinder. 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,1InvocationInvocationsFinder. findPreviousVerifiedInOrder(java.util.List<Invocation> invocations, InOrderContext context)InvocationInvocationsFinder. findSimilarInvocation(java.util.List<Invocation> invocations, InvocationMatcher wanted)LocationInvocationsFinder. getLastLocation(java.util.List<Invocation> invocations)voidInvocationMarker. markVerified(java.util.List<Invocation> invocations, CapturesArgumensFromInvocation wanted)voidInvocationMarker. 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 newMethodInvocationReportwith a return value.NotifiedMethodInvocationReport(Invocation invocation, java.lang.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 Invocation Modifier and Type Method Description voidMockingProgress. 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 Invocation Modifier and Type Method Description java.lang.StringPrintSettings. print(java.util.List<org.hamcrest.Matcher> matchers, Invocation invocation)java.lang.StringPrintSettings. 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 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 voidAnswersValidator. 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 voidDefaultRegisteredInvocations. 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 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 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, 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 voidAtLeastXNumberOfInvocationsChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, int wantedCount)voidAtLeastXNumberOfInvocationsInOrderChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, int wantedCount)voidMissingInvocationChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted)voidMissingInvocationInOrderChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, VerificationMode mode, InOrderContext context)voidNonGreedyNumberOfInvocationsInOrderChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context)voidNumberOfInvocationsChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, int wantedCount)voidNumberOfInvocationsInOrderChecker. 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.ObjectMockHandler. handle(Invocation invocation)Takes an invocation object and handles it.
-