A B C D E F G H I L M N O P R S T U V W 
All Classes All Packages

A

ACROSS_CLASSLOADERS - org.mockito.mock.SerializableMode
Useful if the mock is deserialized in a different classloader / vm.
AdditionalAnswers - Class in org.mockito
Additional answers provides factory methods for answers.
AdditionalMatchers - Class in org.mockito
See ArgumentMatchers for general info about matchers.
addListener(MockitoListener) - Method in interface org.mockito.MockitoFramework
Adds listener to Mockito.
after(long) - Static method in class org.mockito.Mockito
Verification will be triggered after given amount of millis, allowing testing of async code.
After - Class in org.mockito.verification
See the javadoc for VerificationAfterDelay
After(long, VerificationMode) - Constructor for class org.mockito.verification.After
See the javadoc for VerificationAfterDelay
and(boolean, boolean) - Static method in class org.mockito.AdditionalMatchers
boolean argument that matches both given matchers.
and(byte, byte) - Static method in class org.mockito.AdditionalMatchers
byte argument that matches both given argument matchers.
and(char, char) - Static method in class org.mockito.AdditionalMatchers
char argument that matches both given argument matchers.
and(double, double) - Static method in class org.mockito.AdditionalMatchers
double argument that matches both given argument matchers.
and(float, float) - Static method in class org.mockito.AdditionalMatchers
float argument that matches both given argument matchers.
and(int, int) - Static method in class org.mockito.AdditionalMatchers
int argument that matches both given argument matchers.
and(long, long) - Static method in class org.mockito.AdditionalMatchers
long argument that matches both given argument matchers.
and(short, short) - Static method in class org.mockito.AdditionalMatchers
short argument that matches both given argument matchers.
and(T, T) - Static method in class org.mockito.AdditionalMatchers
Object argument that matches both given argument matchers.
AnnotationEngine - Interface in org.mockito.plugins
Configures test via annotations.
AnnotationEngine.NoAction - Class in org.mockito.plugins
 
answer() - Method in annotation type org.mockito.Mock
Mock will have custom answer, see MockSettings.defaultAnswer(Answer).
answer(A0) - Method in interface org.mockito.stubbing.Answer1
 
answer(A0) - Method in interface org.mockito.stubbing.VoidAnswer1
 
answer(A0, A1) - Method in interface org.mockito.stubbing.Answer2
 
answer(A0, A1) - Method in interface org.mockito.stubbing.VoidAnswer2
 
answer(A0, A1, A2) - Method in interface org.mockito.stubbing.Answer3
 
answer(A0, A1, A2) - Method in interface org.mockito.stubbing.VoidAnswer3
 
answer(A0, A1, A2, A3) - Method in interface org.mockito.stubbing.Answer4
 
answer(A0, A1, A2, A3) - Method in interface org.mockito.stubbing.VoidAnswer4
 
answer(A0, A1, A2, A3, A4) - Method in interface org.mockito.stubbing.Answer5
 
answer(A0, A1, A2, A3, A4) - Method in interface org.mockito.stubbing.VoidAnswer5
 
answer(A0, A1, A2, A3, A4, A5) - Method in interface org.mockito.stubbing.Answer6
 
answer(A0, A1, A2, A3, A4, A5) - Method in interface org.mockito.stubbing.VoidAnswer6
 
answer(InvocationOnMock) - Method in enum org.mockito.Answers
 
answer(InvocationOnMock) - Method in interface org.mockito.stubbing.Answer
 
answer(Answer1<T, A>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answer(Answer2<T, A, B>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answer(Answer3<T, A, B, C>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answer(Answer4<T, A, B, C, D>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answer(Answer5<T, A, B, C, D, E>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answer(Answer6<T, A, B, C, D, E, F>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created idiomatically in Java 8
Answer<T> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer.
Answer1<T,​A0> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a single argument invocation.
Answer2<T,​A0,​A1> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a two argument invocation.
Answer3<T,​A0,​A1,​A2> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a three argument invocation.
Answer4<T,​A0,​A1,​A2,​A3> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a four argument invocation.
Answer5<T,​A0,​A1,​A2,​A3,​A4> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a five argument invocation.
Answer6<T,​A0,​A1,​A2,​A3,​A4,​A5> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer for a six argument invocation.
Answers - Enum in org.mockito
Enumeration of pre-configured mock answers
answersWithDelay(long, Answer<T>) - Static method in class org.mockito.AdditionalAnswers
Returns an answer after a delay with a defined length.
answerVoid(VoidAnswer1<A>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answerVoid(VoidAnswer2<A, B>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answerVoid(VoidAnswer3<A, B, C>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answerVoid(VoidAnswer4<A, B, C, D>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answerVoid(VoidAnswer5<A, B, C, D, E>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created ideally in Java 8
answerVoid(VoidAnswer6<A, B, C, D, E, F>) - Static method in class org.mockito.AdditionalAnswers
Creates an answer from a functional interface - allows for a strongly typed answer to be created idiomatically in Java 8
any() - Static method in class org.mockito.ArgumentMatchers
Matches anything, including nulls and varargs.
any(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Matches any object of given type, excluding nulls.
anyBoolean() - Static method in class org.mockito.ArgumentMatchers
Any boolean or non-null Boolean
anyByte() - Static method in class org.mockito.ArgumentMatchers
Any byte or non-null Byte.
anyChar() - Static method in class org.mockito.ArgumentMatchers
Any char or non-null Character.
anyCollection() - Static method in class org.mockito.ArgumentMatchers
Any non-null Collection.
anyDouble() - Static method in class org.mockito.ArgumentMatchers
Any double or non-null Double.
anyFloat() - Static method in class org.mockito.ArgumentMatchers
Any float or non-null Float.
anyInt() - Static method in class org.mockito.ArgumentMatchers
Any int or non-null Integer.
anyIterable() - Static method in class org.mockito.ArgumentMatchers
Any non-null Iterable.
anyList() - Static method in class org.mockito.ArgumentMatchers
Any non-null List.
anyLong() - Static method in class org.mockito.ArgumentMatchers
Any long or non-null Long.
anyMap() - Static method in class org.mockito.ArgumentMatchers
Any non-null Map.
anySet() - Static method in class org.mockito.ArgumentMatchers
Any non-null Set.
anyShort() - Static method in class org.mockito.ArgumentMatchers
Any short or non-null Short.
anyString() - Static method in class org.mockito.ArgumentMatchers
Any non-null String
apply() - Method in interface org.mockito.MockedStatic.Verification
 
argThat(Matcher<T>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Allows matching arguments with hamcrest matchers.
argThat(ArgumentMatcher<T>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom argument matchers.
ArgumentCaptor<T> - Class in org.mockito
Use it to capture argument values for further assertions.
ArgumentMatcher<T> - Interface in org.mockito
Allows creating customized argument matchers.
ArgumentMatchers - Class in org.mockito
Allow flexible verification or stubbing.
ArgumentMatchers() - Constructor for class org.mockito.ArgumentMatchers
 
arguments() - Method in interface org.mockito.MockedConstruction.Context
 
ArgumentsAreDifferent - Error in org.mockito.exceptions.verification
 
ArgumentsAreDifferent - Error in org.mockito.exceptions.verification.junit
 
ArgumentsAreDifferent - Error in org.mockito.exceptions.verification.opentest4j
 
ArgumentsAreDifferent(String) - Constructor for error org.mockito.exceptions.verification.ArgumentsAreDifferent
 
ArgumentsAreDifferent(String, String, String) - Constructor for error org.mockito.exceptions.verification.ArgumentsAreDifferent
Three-arg constructor for compatibility with ExceptionFactory's three-arg create method.
ArgumentsAreDifferent(String, String, String) - Constructor for error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
ArgumentsAreDifferent(String, String, String) - Constructor for error org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
 
aryEq(boolean[]) - Static method in class org.mockito.AdditionalMatchers
boolean array argument that is equal to the given array, i.e.
aryEq(byte[]) - Static method in class org.mockito.AdditionalMatchers
byte array argument that is equal to the given array, i.e.
aryEq(char[]) - Static method in class org.mockito.AdditionalMatchers
char array argument that is equal to the given array, i.e.
aryEq(double[]) - Static method in class org.mockito.AdditionalMatchers
double array argument that is equal to the given array, i.e.
aryEq(float[]) - Static method in class org.mockito.AdditionalMatchers
float array argument that is equal to the given array, i.e.
aryEq(int[]) - Static method in class org.mockito.AdditionalMatchers
int array argument that is equal to the given array, i.e.
aryEq(long[]) - Static method in class org.mockito.AdditionalMatchers
long array argument that is equal to the given array, i.e.
aryEq(short[]) - Static method in class org.mockito.AdditionalMatchers
short array argument that is equal to the given array, i.e.
aryEq(T[]) - Static method in class org.mockito.AdditionalMatchers
Object array argument that is equal to the given array, i.e.
assertLazily() - Method in interface org.mockito.junit.VerificationCollector
Enforce all verifications are performed lazily.
atLeast(int) - Static method in class org.mockito.Mockito
Allows at-least-x verification.
atLeast(int) - Method in interface org.mockito.verification.VerificationAfterDelay
Verifies that there is are least N invocations during the given period.
atLeast(int) - Method in interface org.mockito.verification.VerificationWithTimeout
Allows at-least-x verification within given timeout.
atLeastOnce() - Static method in class org.mockito.Mockito
Allows at-least-once verification.
atLeastOnce() - Method in interface org.mockito.verification.VerificationAfterDelay
Verifies that there is at least 1 invocation during the given period.
atLeastOnce() - Method in interface org.mockito.verification.VerificationWithTimeout
Allows at-least-once verification within given timeout.
atMost(int) - Static method in class org.mockito.Mockito
Allows at-most-x verification.
atMost(int) - Method in class org.mockito.verification.Timeout
 
atMost(int) - Method in interface org.mockito.verification.VerificationAfterDelay
Verifies that there is are most N invocations during the given period.
atMostOnce() - Static method in class org.mockito.Mockito
Allows at-most-once verification.
atMostOnce() - Method in interface org.mockito.verification.VerificationAfterDelay
Verifies that there is most 1 invocation during the given period.
A B C D E F G H I L M N O P R S T U V W 
All Classes All Packages