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

S

same(T) - Static method in class org.mockito.ArgumentMatchers
Object argument that is the same as the given value.
serializable() - Method in interface org.mockito.MockSettings
Configures the mock to be serializable.
serializable(SerializableMode) - Method in interface org.mockito.MockSettings
Configures the mock to be serializable with a specific serializable mode.
SerializableMode - Enum in org.mockito.mock
Mock serializable style.
setMock(Object) - Method in interface org.mockito.listeners.VerificationStartedEvent
Replaces existing mock object for verification with a different one.
setStrictness(Strictness) - Method in interface org.mockito.MockitoSession
Changes the strictness of this MockitoSession.
shortThat(ArgumentMatcher<Short>) - Static method in class org.mockito.ArgumentMatchers
Allows creating custom short argument matchers.
shortThat(Matcher<Short>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
Enables integrating hamcrest matchers that match primitive short arguments.
should() - Method in interface org.mockito.BDDMockito.Then
 
should(VerificationMode) - Method in interface org.mockito.BDDMockito.Then
 
should(InOrder) - Method in interface org.mockito.BDDMockito.Then
 
should(InOrder, VerificationMode) - Method in interface org.mockito.BDDMockito.Then
 
shouldHaveNoMoreInteractions() - Method in interface org.mockito.BDDMockito.Then
 
shouldHaveZeroInteractions() - Method in interface org.mockito.BDDMockito.Then
 
Silent(Class<?>) - Constructor for class org.mockito.junit.MockitoJUnitRunner.Silent
 
silent() - Method in interface org.mockito.junit.MockitoRule
Rule will not report stubbing warnings during test execution.
Silent(Class<?>) - Constructor for class org.mockito.runners.MockitoJUnitRunner.Silent
Deprecated.
 
SmartNullPointerException - Exception in org.mockito.exceptions.verification
 
SmartNullPointerException(String) - Constructor for exception org.mockito.exceptions.verification.SmartNullPointerException
 
spiedInstance(Object) - Method in interface org.mockito.MockSettings
Specifies the instance to spy on.
spy(T) - Static method in class org.mockito.Mockito
Creates a spy of the real object.
spy(Class<T>) - Static method in class org.mockito.Mockito
Please refer to the documentation of Mockito.spy(Object).
Spy - Annotation Type in org.mockito
Allows shorthand wrapping of field instances in an spy object.
StackTraceCleaner - Interface in org.mockito.exceptions.stacktrace
Decides if particular StackTraceElement is excluded from the human-readable stack trace output.
StackTraceCleanerProvider - Interface in org.mockito.plugins
An extension point to register custom StackTraceCleaner.
startMocking() - Method in interface org.mockito.session.MockitoSessionBuilder
Starts new mocking session! Creates new MockitoSession instance to initialize the session.
startsWith(String) - Static method in class org.mockito.ArgumentMatchers
String argument that starts with the given prefix.
Strict(Class<?>) - Constructor for class org.mockito.junit.MockitoJUnitRunner.Strict
 
Strict(Class<?>) - Constructor for class org.mockito.runners.MockitoJUnitRunner.Strict
Deprecated.
 
strictness(Strictness) - Method in interface org.mockito.junit.MockitoRule
The strictness, especially "strict stubs" (Strictness.STRICT_STUBS) helps debugging and keeping tests clean.
Strictness - Enum in org.mockito.quality
Configures the "strictness" of Mockito during a mocking session.
strictness(Strictness) - Method in interface org.mockito.session.MockitoSessionBuilder
Configures strictness of MockitoSession instance.
StrictStubs(Class<?>) - Constructor for class org.mockito.junit.MockitoJUnitRunner.StrictStubs
 
stubbedAt() - Method in interface org.mockito.invocation.StubInfo
 
Stubber - Interface in org.mockito.stubbing
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
Stubbing - Interface in org.mockito.stubbing
Stubbing declared on the mock object.
stubInfo() - Method in interface org.mockito.invocation.Invocation
 
StubInfo - Interface in org.mockito.invocation
The information about stubbing, for example the location of stubbing.
stubOnly() - Method in interface org.mockito.MockSettings
A stub-only mock does not record method invocations, thus saving memory but disallowing verification of invocations.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links
Mockito 2.19.0 API