Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
N
- 21. New annotations: Captor, Spy, InjectMocks (Since 1.8.3) - Search tag in class org.mockito.Mockito
- Section
- 42. New API for integrations: listening on verification start events (Since 2.11.+) - Search tag in class org.mockito.Mockito
- Section
- 43. New API for integrations: MockitoSession is usable by testing frameworks (Since 2.15.+) - Search tag in class org.mockito.Mockito
- Section
- 45. New JUnit Jupiter (JUnit5+) extension - Search tag in class org.mockito.Mockito
- Section
- 46. New Mockito.lenient() and MockSettings.lenient() methods (Since 2.20.0) - Search tag in class org.mockito.Mockito
- Section
- 47. New API for clearing mock state in inline mocking (Since 2.25.0) - Search tag in class org.mockito.Mockito
- Section
- 52. New strictness attribute for @Mock annotation and MockSettings.strictness() methods (Since 4.6.0) - Search tag in class org.mockito.Mockito
- Section
- 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() - Element in annotation type org.mockito.Mock
-
Mock will have custom name (shown in verification errors), see
MockSettings.name(String)
. - name(String) - Method in class org.mockito.internal.creation.MockSettingsImpl
- name(String) - Method in class org.mockito.internal.session.DefaultMockitoSessionBuilder
- name(String) - Method in interface org.mockito.MockSettings
-
Specifies mock name.
- name(String) - Method in interface org.mockito.session.MockitoSessionBuilder
-
Configures the name of the
MockitoSession
instance. - NameBasedCandidateFilter - Class in org.mockito.internal.configuration.injection.filter
- NameBasedCandidateFilter(MockCandidateFilter) - Constructor for class org.mockito.internal.configuration.injection.filter.NameBasedCandidateFilter
- never() - Method in class org.mockito.internal.verification.VerificationWrapper
- never() - Static method in class org.mockito.Mockito
-
Alias to
times(0)
, seeMockito.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.
- neverWantedButInvoked(DescribedInvocation, List<Invocation>) - Static method in class org.mockito.internal.exceptions.Reporter
- NeverWantedButInvoked - Exception Class in org.mockito.exceptions.verification
- NeverWantedButInvoked(String) - Constructor for exception class org.mockito.exceptions.verification.NeverWantedButInvoked
- newInstance() - Method in interface org.mockito.plugins.MemberAccessor.ConstructionDispatcher
- newInstance(Class<T>) - Method in interface org.mockito.creation.instance.Instantiator
-
Creates instance of given class
- newInstance(Class<T>) - Method in class org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
- newInstance(Class<T>) - Method in class org.mockito.internal.creation.instance.ConstructorInstantiator
- newInstance(Constructor<?>, Object...) - Method in class org.mockito.internal.util.reflection.ModuleMemberAccessor
- newInstance(Constructor<?>, Object...) - Method in class org.mockito.internal.util.reflection.ReflectionMemberAccessor
- newInstance(Constructor<?>, Object...) - Method in interface org.mockito.plugins.MemberAccessor
- newInstance(Constructor<?>, MemberAccessor.OnConstruction, Object...) - Method in class org.mockito.internal.util.reflection.ModuleMemberAccessor
- newInstance(Constructor<?>, MemberAccessor.OnConstruction, Object...) - Method in class org.mockito.internal.util.reflection.ReflectionMemberAccessor
- newInstance(Constructor<?>, MemberAccessor.OnConstruction, Object...) - Method in interface org.mockito.plugins.MemberAccessor
- newInstance(String, Object...) - 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
- NO_OP - Static variable in class org.mockito.internal.invocation.InterceptedInvocation
- NoAction() - Constructor for class org.mockito.plugins.AnnotationEngine.NoAction
- noArgumentValueWasCaptured() - Static method in class org.mockito.internal.exceptions.Reporter
- noInteractions() - Static method in class org.mockito.internal.verification.VerificationModeFactory
- NoInteractions - Class in org.mockito.internal.verification
- NoInteractions() - Constructor for class org.mockito.internal.verification.NoInteractions
- noInteractionsWanted(Object, List<VerificationAwareInvocation>) - Static method in class org.mockito.internal.exceptions.Reporter
- NoInteractionsWanted - Exception Class in org.mockito.exceptions.verification
-
No interactions wanted.
- NoInteractionsWanted(String) - Constructor for exception class org.mockito.exceptions.verification.NoInteractionsWanted
- noMoreInteractions() - Static method in class org.mockito.internal.verification.VerificationModeFactory
- NoMoreInteractions - Class in org.mockito.internal.verification
- NoMoreInteractions() - Constructor for class org.mockito.internal.verification.NoMoreInteractions
- noMoreInteractionsWanted(Invocation, List<VerificationAwareInvocation>) - Static method in class org.mockito.internal.exceptions.Reporter
- noMoreInteractionsWantedInOrder(Invocation) - Static method in class org.mockito.internal.exceptions.Reporter
- NONE - Enum constant in enum org.mockito.mock.SerializableMode
-
No serialization.
- nonMockableReason() - Method in interface org.mockito.plugins.MockMaker.TypeMockability
-
informs why type is not mockable
- NoOpTestListener - Class in org.mockito.internal.junit
- NoOpTestListener() - Constructor for class org.mockito.internal.junit.NoOpTestListener
- 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(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(char) - Static method in class org.mockito.AdditionalMatchers
-
char 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(float) - Static method in class org.mockito.AdditionalMatchers
-
float 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(short) - Static method in class org.mockito.AdditionalMatchers
-
short argument that does not match the given argument matcher.
- not(T) - Static method in class org.mockito.AdditionalMatchers
-
Object argument that does not match the given argument matcher.
- Not - Class in org.mockito.internal.matchers
- Not(ArgumentMatcher<?>) - Constructor for class org.mockito.internal.matchers.Not
- NOT_NULL - Static variable in class org.mockito.internal.matchers.NotNull
- NotAMockException - Exception Class in org.mockito.exceptions.misusing
- NotAMockException(String) - Constructor for exception class org.mockito.exceptions.misusing.NotAMockException
- notAMockPassedToVerify(Class<?>) - Static method in class org.mockito.internal.exceptions.Reporter
- notAMockPassedToVerifyNoMoreInteractions() - Static method in class org.mockito.internal.exceptions.Reporter
- notAMockPassedToWhenMethod() - Static method in class org.mockito.internal.exceptions.Reporter
- notAMockPassedWhenCreatingInOrder() - Static method in class org.mockito.internal.exceptions.Reporter
- notAnException() - Static method in class org.mockito.internal.exceptions.Reporter
- NotExtensible - Annotation Type in org.mockito
-
Indicates to the user that she should not provide custom implementations of given type.
- NotifiedMethodInvocationReport - Class in org.mockito.internal.handler
-
Report on a method call
- NotifiedMethodInvocationReport(Invocation, Object) - Constructor for class org.mockito.internal.handler.NotifiedMethodInvocationReport
-
Build a new
MethodInvocationReport
with a return value. - NotifiedMethodInvocationReport(Invocation, Throwable) - Constructor for class org.mockito.internal.handler.NotifiedMethodInvocationReport
-
Build a new
MethodInvocationReport
with a return value. - notifyStubbedAnswerLookup(Invocation, Stubbing, Collection<Stubbing>, CreationSettings) - Static method in class org.mockito.internal.listeners.StubbingLookupNotifier
- notifyVerificationStarted(List<VerificationStartedListener>, MockingDetails) - Static method in class org.mockito.internal.listeners.VerificationStartedNotifier
- notNull() - Static method in class org.mockito.ArgumentMatchers
-
Not
null
argument. - notNull(Class<T>) - Static method in class org.mockito.ArgumentMatchers
-
Not
null
argument. - NotNull<T> - Class in org.mockito.internal.matchers
- NotNull(Class<T>) - Constructor for class org.mockito.internal.matchers.NotNull
- Null<T> - Class in org.mockito.internal.matchers
- Null(Class<T>) - Constructor for class org.mockito.internal.matchers.Null
- NULL - Static variable in class org.mockito.internal.matchers.Null
- nullable(Class<T>) - Static method in class org.mockito.ArgumentMatchers
-
Argument that is either
null
or of the given type. - NullInsteadOfMockException - Exception Class in org.mockito.exceptions.misusing
- NullInsteadOfMockException(String) - Constructor for exception class org.mockito.exceptions.misusing.NullInsteadOfMockException
- nullPassedToVerify() - Static method in class org.mockito.internal.exceptions.Reporter
- nullPassedToVerifyNoMoreInteractions() - Static method in class org.mockito.internal.exceptions.Reporter
- nullPassedToWhenMethod() - Static method in class org.mockito.internal.exceptions.Reporter
- nullPassedWhenCreatingInOrder() - Static method in class org.mockito.internal.exceptions.Reporter
- NumberOfInvocationsChecker - Class in org.mockito.internal.verification.checkers
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form