Package | Description |
---|---|
org.mockito.internal.creation.bytebuddy |
ByteBuddy related stuff.
|
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.internal.progress |
Mocking progress stateful classes.
|
org.mockito.internal.stubbing.defaultanswers |
Implementations of default Answers.
|
org.mockito.invocation |
Public API related to mock method invocations.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Object |
MockMethodInterceptor.doIntercept(java.lang.Object mock,
java.lang.reflect.Method invokedMethod,
java.lang.Object[] arguments,
RealMethod realMethod,
Location location) |
Modifier and Type | Class and Description |
---|---|
class |
LocationImpl |
Modifier and Type | Field and Description |
---|---|
private Location |
Localized.location |
Modifier and Type | Method and Description |
---|---|
Location |
Localized.getLocation() |
Modifier and Type | Method and Description |
---|---|
static java.lang.AssertionError |
Reporter.argumentsAreDifferent(java.lang.String wanted,
java.lang.String actual,
Location actualLocation) |
static MockitoException |
Reporter.smartNullPointerException(java.lang.String invocation,
Location location) |
static MockitoException |
Reporter.unfinishedStubbing(Location location) |
static MockitoException |
Reporter.unfinishedVerificationException(Location location) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
Reporter.createAllLocationsMessage(java.util.List<Location> locations) |
private static java.lang.String |
Reporter.createTooLittleInvocationsMessage(Discrepancy discrepancy,
DescribedInvocation wanted,
java.util.List<Location> locations) |
private static java.lang.String |
Reporter.createTooManyInvocationsMessage(int wantedCount,
int actualCount,
DescribedInvocation wanted,
java.util.List<Location> invocations) |
static MockitoAssertionError |
Reporter.neverWantedButInvoked(DescribedInvocation wanted,
java.util.List<Location> invocations) |
static MockitoAssertionError |
Reporter.tooLittleActualInvocations(Discrepancy discrepancy,
DescribedInvocation wanted,
java.util.List<Location> allLocations) |
static MockitoAssertionError |
Reporter.tooLittleActualInvocationsInOrder(Discrepancy discrepancy,
DescribedInvocation wanted,
java.util.List<Location> locations) |
static MockitoAssertionError |
Reporter.tooManyActualInvocations(int wantedCount,
int actualCount,
DescribedInvocation wanted,
java.util.List<Location> locations) |
static MockitoAssertionError |
Reporter.tooManyActualInvocationsInOrder(int wantedCount,
int actualCount,
DescribedInvocation wanted,
java.util.List<Location> invocations) |
Modifier and Type | Field and Description |
---|---|
private Location |
InterceptedInvocation.location |
Modifier and Type | Method and Description |
---|---|
static Location |
InvocationsFinder.getLastLocation(java.util.List<Invocation> invocations) |
Location |
InterceptedInvocation.getLocation() |
Location |
InvocationMatcher.getLocation() |
Location |
StubInfoImpl.stubbedAt() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Location> |
InvocationsFinder.getAllLocations(java.util.List<Invocation> invocations) |
Modifier and Type | Method and Description |
---|---|
static InterceptedInvocation |
DefaultInvocationFactory.createInvocation(java.lang.Object mock,
java.lang.reflect.Method invokedMethod,
java.lang.Object[] arguments,
RealMethod realMethod,
MockCreationSettings settings,
Location location) |
Constructor and Description |
---|
InterceptedInvocation(MockReference<java.lang.Object> mockRef,
MockitoMethod mockitoMethod,
java.lang.Object[] arguments,
RealMethod realMethod,
Location location,
int sequenceNumber) |
Modifier and Type | Field and Description |
---|---|
private Location |
LocalizedMatcher.location |
Modifier and Type | Method and Description |
---|---|
Location |
LocalizedMatcher.getLocation() |
Modifier and Type | Field and Description |
---|---|
private Location |
MockingProgressImpl.stubbingInProgress |
Modifier and Type | Field and Description |
---|---|
private Location |
ReturnsSmartNulls.ThrowsSmartNullPointer.location |
Constructor and Description |
---|
ThrowsSmartNullPointer(InvocationOnMock unstubbedInvocation,
Location location) |
Modifier and Type | Method and Description |
---|---|
Location |
Invocation.getLocation() |
Location |
DescribedInvocation.getLocation()
The place in the code where the invocation happened.
|
Location |
StubInfo.stubbedAt() |