Package | Description |
---|---|
org.mockito.internal.debugging |
Whatever helps in debugging failed tests.
|
org.mockito.internal.exceptions | |
org.mockito.internal.invocation |
Invocation machinery and related classes.
|
org.mockito.internal.matchers |
Argument matchers for verification and stubbing.
|
org.mockito.invocation |
Public API related to mock method invocations.
|
Modifier and Type | Class and Description |
---|---|
class |
LocationImpl |
Modifier and Type | Method and Description |
---|---|
Location |
Localized.getLocation() |
Modifier and Type | Method and Description |
---|---|
static AssertionError |
Reporter.argumentsAreDifferent(String wanted,
String actual,
Location actualLocation) |
static MockitoException |
Reporter.smartNullPointerException(String invocation,
Location location) |
static MockitoException |
Reporter.unfinishedStubbing(Location location) |
static MockitoException |
Reporter.unfinishedVerificationException(Location location) |
Modifier and Type | Method and Description |
---|---|
static MockitoAssertionError |
Reporter.neverWantedButInvoked(DescribedInvocation wanted,
List<Location> invocations) |
static MockitoAssertionError |
Reporter.tooLittleActualInvocations(Discrepancy discrepancy,
DescribedInvocation wanted,
List<Location> allLocations) |
static MockitoAssertionError |
Reporter.tooLittleActualInvocationsInOrder(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) |
Modifier and Type | Method and Description |
---|---|
static Location |
InvocationsFinder.getLastLocation(List<Invocation> invocations) |
Location |
InterceptedInvocation.getLocation() |
Location |
InvocationMatcher.getLocation() |
Location |
StubInfoImpl.stubbedAt() |
Modifier and Type | Method and Description |
---|---|
static List<Location> |
InvocationsFinder.getAllLocations(List<Invocation> invocations) |
Modifier and Type | Method and Description |
---|---|
static InterceptedInvocation |
DefaultInvocationFactory.createInvocation(Object mock,
Method invokedMethod,
Object[] arguments,
RealMethod realMethod,
MockCreationSettings settings,
Location location) |
Constructor and Description |
---|
InterceptedInvocation(MockReference<Object> mockRef,
MockitoMethod mockitoMethod,
Object[] arguments,
RealMethod realMethod,
Location location,
int sequenceNumber) |
Modifier and Type | Method and Description |
---|---|
Location |
LocalizedMatcher.getLocation() |
Modifier and Type | Method and Description |
---|---|
Location |
DescribedInvocation.getLocation()
The place in the code where the invocation happened.
|
Location |
Invocation.getLocation() |
Location |
StubInfo.stubbedAt() |
Copyright © 2023. All rights reserved.