Uses of Class
org.mockito.exceptions.base.MockitoAssertionError
Packages that use MockitoAssertionError
Package
Description
Base classes for exceptions and errors, stack trace filtering/removing logic.
Verification errors.
JUnit integration support classes.
Mockito JUnit integration ; rule and runners.
-
Uses of MockitoAssertionError in org.mockito.exceptions.base
Constructors in org.mockito.exceptions.base with parameters of type MockitoAssertionErrorModifierConstructorDescriptionMockitoAssertionError
(MockitoAssertionError error, String message) Creates a copy of the given assertion error with the custom failure message prepended. -
Uses of MockitoAssertionError in org.mockito.exceptions.verification
Subclasses of MockitoAssertionError in org.mockito.exceptions.verificationModifier and TypeClassDescriptionclass
class
Thrown when atMost(x) verification fails.class
class
No interactions wanted.class
class
class
class
-
Uses of MockitoAssertionError in org.mockito.internal.exceptions
Methods in org.mockito.internal.exceptions that return MockitoAssertionErrorModifier and TypeMethodDescriptionstatic MockitoAssertionError
Reporter.neverWantedButInvoked
(DescribedInvocation wanted, List<Invocation> invocations) static MockitoAssertionError
Reporter.noInteractionsWanted
(Object mock, List<VerificationAwareInvocation> invocations) static MockitoAssertionError
Reporter.noMoreInteractionsWanted
(Invocation undesired, List<VerificationAwareInvocation> invocations) static MockitoAssertionError
Reporter.noMoreInteractionsWantedInOrder
(Invocation undesired) static MockitoAssertionError
Reporter.tooFewActualInvocations
(Discrepancy discrepancy, DescribedInvocation wanted, List<Location> allLocations) static MockitoAssertionError
Reporter.tooFewActualInvocationsInOrder
(Discrepancy discrepancy, DescribedInvocation wanted, List<Location> locations) static MockitoAssertionError
Reporter.tooManyActualInvocations
(int wantedCount, int actualCount, DescribedInvocation wanted, List<Location> locations) static MockitoAssertionError
Reporter.tooManyActualInvocationsInOrder
(int wantedCount, int actualCount, DescribedInvocation wanted, List<Location> invocations) static MockitoAssertionError
Reporter.wantedButNotInvoked
(DescribedInvocation wanted) static MockitoAssertionError
Reporter.wantedButNotInvoked
(DescribedInvocation wanted, List<? extends DescribedInvocation> invocations) static MockitoAssertionError
Reporter.wantedButNotInvokedInOrder
(DescribedInvocation wanted, DescribedInvocation previous) -
Uses of MockitoAssertionError in org.mockito.internal.junit
Methods in org.mockito.internal.junit that throw MockitoAssertionError -
Uses of MockitoAssertionError in org.mockito.junit
Methods in org.mockito.junit that throw MockitoAssertionErrorModifier and TypeMethodDescriptionvoid
VerificationCollector.collectAndReport()
Collect all lazily verified behaviour.