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() - Element in annotation type org.mockito.Mock
-
Mock will have custom name (shown in verification errors), see
MockSettings.name(String)
. - 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. - 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 - 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(Constructor<?>, Object...) - Method in interface org.mockito.plugins.MemberAccessor
- newInstance(Constructor<?>, MemberAccessor.OnConstruction, Object...) - Method in interface org.mockito.plugins.MemberAccessor
- NoAction() - Constructor for class org.mockito.plugins.AnnotationEngine.NoAction
- NoInteractionsWanted - Exception Class in org.mockito.exceptions.verification
-
No interactions wanted.
- NoInteractionsWanted(String) - Constructor for exception class org.mockito.exceptions.verification.NoInteractionsWanted
- 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
- 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.
- NotAMockException - Exception Class in org.mockito.exceptions.misusing
- NotAMockException(String) - Constructor for exception class org.mockito.exceptions.misusing.NotAMockException
- NotExtensible - Annotation Type in org.mockito
-
Indicates to the user that she should not provide custom implementations of given type.
- notNull() - Static method in class org.mockito.ArgumentMatchers
-
Not
null
argument. - notNull(Class<T>) - Static method in class org.mockito.ArgumentMatchers
-
Not
null
argument. - 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
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form