Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see Mockito class for for usage.
|
org.mockito.internal |
Internal classes, not to be used by clients.
|
org.mockito.internal.progress |
Mocking progress stateful classes.
|
org.mockito.internal.verification |
Verification logic.
|
org.mockito.internal.verification.checkers |
verification checkers
|
Modifier and Type | Method and Description |
---|---|
static VerificationMode |
Mockito.atLeast(int minNumberOfInvocations)
Allows at-least-x verification.
|
static VerificationMode |
Mockito.atLeastOnce()
Allows at-least-once verification.
|
static VerificationMode |
Mockito.atMost(int maxNumberOfInvocations)
Allows at-most-x verification.
|
static VerificationMode |
Mockito.never()
Alias to times(0), see
Mockito.times(int) |
static VerificationMode |
Mockito.only()
Allows checking if given method was the only one invoked.
|
static VerificationMode |
Mockito.times(int wantedNumberOfInvocations)
Allows verifying exact number of invocations.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
Mockito.verify(T mock,
VerificationMode mode)
Verifies certain behavior happened at least once / exact number of times / never.
|
<T> T |
InOrder.verify(T mock,
VerificationMode mode)
Verifies interaction in order.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
MockitoCore.verify(T mock,
VerificationMode mode) |
<T> T |
InOrderImpl.verify(T mock,
VerificationMode mode) |
Modifier and Type | Method and Description |
---|---|
VerificationMode |
ThreadSafeMockingProgress.pullVerificationMode() |
VerificationMode |
MockingProgressImpl.pullVerificationMode() |
VerificationMode |
MockingProgress.pullVerificationMode() |
Modifier and Type | Method and Description |
---|---|
void |
ThreadSafeMockingProgress.verificationStarted(VerificationMode verify) |
void |
MockingProgressImpl.verificationStarted(VerificationMode verify) |
void |
MockingProgress.verificationStarted(VerificationMode verificationMode) |
Modifier and Type | Class and Description |
---|---|
class |
AtLeast |
class |
AtMost |
class |
InOrderWrapper |
class |
MockAwareVerificationMode |
class |
NoMoreInteractions |
class |
Only |
class |
Times |
Modifier and Type | Method and Description |
---|---|
static VerificationMode |
VerificationModeFactory.atLeast(int minNumberOfInvocations) |
static VerificationMode |
VerificationModeFactory.atLeastOnce() |
static VerificationMode |
VerificationModeFactory.atMost(int maxNumberOfInvocations) |
static VerificationMode |
VerificationModeFactory.only() |
Constructor and Description |
---|
MockAwareVerificationMode(Object mock,
VerificationMode mode) |
Modifier and Type | Method and Description |
---|---|
void |
MissingInvocationInOrderChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
VerificationMode mode,
InOrderContext context) |
Copyright © 2018. All rights reserved.