- 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.
- 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() - Method in interface org.mockito.junit.MockitoRule
-
Rule will not report stubbing warnings during test execution.
- 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
-
- 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
-
- startsWith(String) - Static method in class org.mockito.ArgumentMatchers
-
String
argument that starts with the given prefix.
- 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.