Mockito 2.0.15-beta API
A B C D E F G H I J L M N O P R S T U V W _ 

N

name(String) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
name - Variable in class org.mockito.internal.creation.settings.CreationSettings
 
name() - Method in class org.mockito.internal.util.reflection.InstanceField
Returns the name of the field.
name(String) - Method in interface org.mockito.MockSettings
Specifies mock name.
NameBasedCandidateFilter - Class in org.mockito.internal.configuration.injection.filter
 
NameBasedCandidateFilter(MockCandidateFilter) - Constructor for class org.mockito.internal.configuration.injection.filter.NameBasedCandidateFilter
 
names() - Method in class org.mockito.internal.util.reflection.Fields.InstanceFields
 
never() - Static method in class org.mockito.Mockito
Alias to times(0), see Mockito.times(int)
never() - Method in class org.mockito.verification.Timeout
 
never() - Method in interface org.mockito.verification.VerificationAfterDelay
Allows verification that there are no invocations at any point during the given period.
never() - Method in interface org.mockito.verification.VerificationWithTimeout
Deprecated.
Validation with timeout combined with never simply does not make sense, as never() will typically immediately pass, and therefore not wait the timeout. The behaviour you may be looking for is actually provided by after().never().

To avoid compilation errors upon upgrade the method is deprecated and it throws a "friendly reminder" exception.

In a future release we will remove timeout(x).atMost(y) and timeout(x).never() from the API.

Do you want to find out more? See issue 235

never() - Method in class org.mockito.verification.VerificationWrapper
 
neverWantedButInvoked(DescribedInvocation, Location) - Method in class org.mockito.exceptions.Reporter
 
NeverWantedButInvoked - Error in org.mockito.exceptions.verification
 
NeverWantedButInvoked(String) - Constructor for error org.mockito.exceptions.verification.NeverWantedButInvoked
 
newIdentitySet() - Static method in class org.mockito.internal.util.collections.Sets
 
newInstance(Class<T>) - Method in class org.mockito.internal.creation.instance.ConstructorInstantiator
 
newInstance(Class<T>) - Method in interface org.mockito.internal.creation.instance.Instantiator
Creates instance of given class
newInstance(String, Class<?>) - Method in class org.mockito.internal.runners.util.RunnerProvider
 
newMockSafeHashSet(Iterable<Object>) - Static method in class org.mockito.internal.util.collections.Sets
 
newMockSafeHashSet(Object...) - Static method in class org.mockito.internal.util.collections.Sets
 
newSet(T...) - Static method in class org.mockito.internal.util.collections.Sets
 
next() - Static method in class org.mockito.internal.progress.SequenceNumber
 
noArgConstructorOf(Class<?>) - Static method in class org.mockito.internal.util.reflection.Constructors
Returns the no arg constructor of the type if any.
noArgumentValueWasCaptured() - Method in class org.mockito.exceptions.Reporter
 
NoInteractionsWanted - Error in org.mockito.exceptions.verification
No interactions wanted.
NoInteractionsWanted(String) - Constructor for error org.mockito.exceptions.verification.NoInteractionsWanted
 
NoMoreInteractions - Class in org.mockito.internal.verification
 
NoMoreInteractions() - Constructor for class org.mockito.internal.verification.NoMoreInteractions
 
noMoreInteractions() - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
noMoreInteractionsWanted(Invocation, List<VerificationAwareInvocation>) - Method in class org.mockito.exceptions.Reporter
 
noMoreInteractionsWantedInOrder(Invocation) - Method in class org.mockito.exceptions.Reporter
 
NON_PUBLIC_PARENT - Static variable in class org.mockito.internal.exceptions.MockitoLimitations
 
NonGreedyNumberOfInvocationsInOrderChecker - Class in org.mockito.internal.verification.checkers
 
NonGreedyNumberOfInvocationsInOrderChecker() - Constructor for class org.mockito.internal.verification.checkers.NonGreedyNumberOfInvocationsInOrderChecker
 
nop - Static variable in interface org.mockito.internal.configuration.injection.filter.OngoingInjector
Injector that will do nothing, and will return null as no mocks will be injected
nop() - Static method in class org.mockito.internal.configuration.injection.MockInjectionStrategy
NOP Strategy that will always try the next strategy.
not(T) - Static method in class org.mockito.AdditionalMatchers
Object argument that does not match the given argument matcher.
not(short) - Static method in class org.mockito.AdditionalMatchers
short argument that does not match the given argument matcher.
not(int) - Static method in class org.mockito.AdditionalMatchers
int argument that does not match the given argument matcher.
not(long) - Static method in class org.mockito.AdditionalMatchers
long argument that does not match the given argument matcher.
not(float) - Static method in class org.mockito.AdditionalMatchers
float argument that does not match the given argument matcher.
not(double) - Static method in class org.mockito.AdditionalMatchers
double argument that does not match the given argument matcher.
not(char) - Static method in class org.mockito.AdditionalMatchers
char argument that does not match the given argument matcher.
not(boolean) - Static method in class org.mockito.AdditionalMatchers
boolean argument that does not match the given argument matcher.
not(byte) - Static method in class org.mockito.AdditionalMatchers
byte argument that does not match the given argument matcher.
Not - Class in org.mockito.internal.matchers
 
Not(Matcher) - Constructor for class org.mockito.internal.matchers.Not
 
NOT_NULL - Static variable in class org.mockito.internal.matchers.NotNull
 
NotAMockException - Exception in org.mockito.exceptions.misusing
 
NotAMockException(String) - Constructor for exception org.mockito.exceptions.misusing.NotAMockException
 
notAMockPassedToVerify(Class) - Method in class org.mockito.exceptions.Reporter
 
notAMockPassedToVerifyNoMoreInteractions() - Method in class org.mockito.exceptions.Reporter
 
notAMockPassedToWhenMethod() - Method in class org.mockito.exceptions.Reporter
 
notAMockPassedWhenCreatingInOrder() - Method in class org.mockito.exceptions.Reporter
 
NotifiedMethodInvocationReport - Class in org.mockito.internal.listeners
Report on a method call
NotifiedMethodInvocationReport(Invocation, Object) - Constructor for class org.mockito.internal.listeners.NotifiedMethodInvocationReport
Build a new MethodInvocationReport with a return value.
NotifiedMethodInvocationReport(Invocation, Throwable) - Constructor for class org.mockito.internal.listeners.NotifiedMethodInvocationReport
Build a new MethodInvocationReport with a return value.
NotNull - Class in org.mockito.internal.matchers
 
notNull() - Method in class org.mockito.internal.util.reflection.Fields.InstanceFields
 
notNull() - Static method in class org.mockito.Matchers
Not null argument.
notNull(Class<T>) - Static method in class org.mockito.Matchers
Not null argument, not necessary of the given class.
Null - Class in org.mockito.internal.matchers
 
NULL - Static variable in class org.mockito.internal.matchers.Null
 
NullInsteadOfMockException - Exception in org.mockito.exceptions.misusing
 
NullInsteadOfMockException(String) - Constructor for exception org.mockito.exceptions.misusing.NullInsteadOfMockException
 
nullPassedToVerify() - Method in class org.mockito.exceptions.Reporter
 
nullPassedToVerifyNoMoreInteractions() - Method in class org.mockito.exceptions.Reporter
 
nullPassedToWhenMethod() - Method in class org.mockito.exceptions.Reporter
 
nullPassedWhenCreatingInOrder() - Method in class org.mockito.exceptions.Reporter
 
NumberOfInvocationsChecker - Class in org.mockito.internal.verification.checkers
 
NumberOfInvocationsChecker() - Constructor for class org.mockito.internal.verification.checkers.NumberOfInvocationsChecker
 
NumberOfInvocationsInOrderChecker - Class in org.mockito.internal.verification.checkers
 
NumberOfInvocationsInOrderChecker() - Constructor for class org.mockito.internal.verification.checkers.NumberOfInvocationsInOrderChecker
 
A B C D E F G H I J L M N O P R S T U V W _ 
Mockito 2.0.15-beta API