Mockito 2.6.5 API
A B C D E F G H I L M N O P R S T U V W 

A

AdditionalAnswers - Class in org.mockito
Additional answers provides factory methods for answers.
AdditionalAnswers() - Constructor for class org.mockito.AdditionalAnswers
 
AdditionalMatchers - Class in org.mockito
See Matchers for general info about matchers.
AdditionalMatchers() - Constructor for class org.mockito.AdditionalMatchers
 
addListener(MockitoListener) - Method in interface org.mockito.MockitoFramework
Adds listener to Mockito.
after(long) - Static method in class org.mockito.Mockito
Allows verifying over a given period.
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.configuration
Deprecated.
Please use AnnotationEngine instead, this interface will probably be removed in mockito 3.
AnnotationEngine - Interface in org.mockito.plugins
Configures test via annotations.
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(InvocationOnMock) - Method in enum org.mockito.Answers
 
Answer<T> - Interface in org.mockito.stubbing
Generic interface to be used for configuring mock's answer.
answer(InvocationOnMock) - Method in interface org.mockito.stubbing.Answer
 
answer(A0) - Method in interface org.mockito.stubbing.Answer1
 
answer(A0, A1) - Method in interface org.mockito.stubbing.Answer2
 
answer(A0, A1, A2) - Method in interface org.mockito.stubbing.Answer3
 
answer(A0, A1, A2, A3) - Method in interface org.mockito.stubbing.Answer4
 
answer(A0, A1, A2, A3, A4) - Method in interface org.mockito.stubbing.Answer5
 
answer(A0) - Method in interface org.mockito.stubbing.VoidAnswer1
 
answer(A0, A1) - Method in interface org.mockito.stubbing.VoidAnswer2
 
answer(A0, A1, A2) - Method in interface org.mockito.stubbing.VoidAnswer3
 
answer(A0, A1, A2, A3) - Method in interface org.mockito.stubbing.VoidAnswer4
 
answer(A0, A1, A2, A3, A4) - Method in interface org.mockito.stubbing.VoidAnswer5
 
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.
Answers - Enum in org.mockito
Enumeration of pre-configured mock answers
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
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.
anyCollectionOf(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
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.
anyIterableOf(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
anyList() - Static method in class org.mockito.ArgumentMatchers
Any non-null List.
anyListOf(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
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.
anyMapOf(Class<K>, Class<V>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
anyObject() - Static method in class org.mockito.ArgumentMatchers
Deprecated.
This will be removed in Mockito 3.0 (which will be java 8 only)
anySet() - Static method in class org.mockito.ArgumentMatchers
Any non-null Set.
anySetOf(Class<T>) - Static method in class org.mockito.ArgumentMatchers
Deprecated.
With Java 8 this method will be removed in Mockito 3.0. This method is only used for generic friendliness to avoid casting, this is not anymore needed in Java 8.
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
anyVararg() - Static method in class org.mockito.ArgumentMatchers
Deprecated.
as of 2.1.0 use ArgumentMatchers.any()
argThat(ArgumentMatcher<T>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom argument matchers.
argThat(Matcher<T>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Allows matching arguments with hamcrest 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
 
ArgumentsAreDifferent - Error in org.mockito.exceptions.verification
 
ArgumentsAreDifferent(String) - Constructor for error org.mockito.exceptions.verification.ArgumentsAreDifferent
 
ArgumentsAreDifferent - Error in org.mockito.exceptions.verification.junit
 
ArgumentsAreDifferent(String, String, String) - Constructor for error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
 
aryEq(T[]) - Static method in class org.mockito.AdditionalMatchers
Object 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(long[]) - Static method in class org.mockito.AdditionalMatchers
long 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(float[]) - Static method in class org.mockito.AdditionalMatchers
float 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(char[]) - Static method in class org.mockito.AdditionalMatchers
char 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(boolean[]) - Static method in class org.mockito.AdditionalMatchers
boolean 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.
A B C D E F G H I L M N O P R S T U V W 
Mockito 2.6.5 API