- safelyDisableAccess(AccessibleObject) - Method in class org.mockito.internal.util.reflection.AccessibilityChanger
-
safely disables access
- Same - Class in org.mockito.internal.matchers
-
- Same(Object) - Constructor for class org.mockito.internal.matchers.Same
-
- same(T) - Static method in class org.mockito.Matchers
-
Object argument that is the same as the given value.
- ScenarioPrinter - Class in org.mockito.internal.exceptions.util
-
- ScenarioPrinter() - Constructor for class org.mockito.internal.exceptions.util.ScenarioPrinter
-
- SearchingClassLoader - Class in org.mockito.internal.creation.util
-
Inspired on jMock (thanks jMock guys!!!)
- SearchingClassLoader(ClassLoader, ClassLoader) - Constructor for class org.mockito.internal.creation.util.SearchingClassLoader
-
- SequenceNumber - Class in org.mockito.internal.progress
-
- SequenceNumber() - Constructor for class org.mockito.internal.progress.SequenceNumber
-
- serializable() - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- serializable(SerializableMode) - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- 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.
- SerializableMethod - Class in org.mockito.internal.invocation
-
- SerializableMethod(Method) - Constructor for class org.mockito.internal.invocation.SerializableMethod
-
- serializableMode - Variable in class org.mockito.internal.creation.settings.CreationSettings
-
- SerializableMode - Enum in org.mockito.mock
-
Mock serializable style.
- serializableWontWorkForObjectsThatDontImplementSerializable(Class) - Static method in class org.mockito.exceptions.Reporter
-
- set(Object) - Method in class org.mockito.internal.util.reflection.BeanPropertySetter
-
- set(Object) - Method in class org.mockito.internal.util.reflection.InstanceField
-
Set the given value to the field of this instance.
- setAnswersForStubbing(List<Answer>) - Method in interface org.mockito.internal.InternalMockHandler
-
- setAnswersForStubbing(List<Answer>) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- setExtraInterfaces(Set<Class<?>>) - Method in class org.mockito.internal.creation.settings.CreationSettings
-
- setField(Object, Field, Object) - Static method in class org.mockito.internal.util.reflection.FieldSetter
-
- setInternalState(Object, String, Object) - Static method in class org.mockito.internal.util.reflection.Whitebox
-
- setInvocationForPotentialStubbing(InvocationMatcher) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- setListener(MockingProgressListener) - Method in interface org.mockito.internal.progress.MockingProgress
-
- setListener(MockingProgressListener) - Method in class org.mockito.internal.progress.MockingProgressImpl
-
- setListener(MockingProgressListener) - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
-
- setMatchersToBeDescribedWithExtraTypeInfo(Integer[]) - Method in class org.mockito.internal.reporting.PrintSettings
-
- setMethodForStubbing(InvocationMatcher) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- setMockitoInterceptor(MockMethodInterceptor) - Method in interface org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.MockAccess
-
- setMockName(MockName) - Method in class org.mockito.internal.creation.settings.CreationSettings
-
- setMultiline(boolean) - Method in class org.mockito.internal.reporting.PrintSettings
-
- Sets - Class in org.mockito.internal.util.collections
-
- Sets() - Constructor for class org.mockito.internal.util.collections.Sets
-
- setTypeToMock(Class<T>) - Method in class org.mockito.internal.creation.settings.CreationSettings
-
- setVerificationStrategy(VerificationStrategy) - Method in interface org.mockito.internal.progress.MockingProgress
-
- setVerificationStrategy(VerificationStrategy) - Method in class org.mockito.internal.progress.MockingProgressImpl
-
- setVerificationStrategy(VerificationStrategy) - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
-
- shortThat(Matcher<Short>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
-
Enables integrating hamcrest matchers that match primitive short
arguments.
- shortThat(ArgumentMatcher<Short>) - Static method in class org.mockito.Matchers
-
Allows creating custom short
argument matchers.
- 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
-
- SimpleMockitoLogger - Class in org.mockito.internal.util
-
- SimpleMockitoLogger() - Constructor for class org.mockito.internal.util.SimpleMockitoLogger
-
- SingleRegisteredInvocation - Class in org.mockito.internal.verification
-
- SingleRegisteredInvocation() - Constructor for class org.mockito.internal.verification.SingleRegisteredInvocation
-
- size() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
-
- smartNullPointerException(String, Location) - Static method in class org.mockito.exceptions.Reporter
-
- SmartNullPointerException - Exception in org.mockito.exceptions.verification
-
- SmartNullPointerException(String) - Constructor for exception org.mockito.exceptions.verification.SmartNullPointerException
-
- SmartPrinter - Class in org.mockito.internal.reporting
-
Makes sure both wanted and actual are printed consistently (single line or multiline)
- SmartPrinter(InvocationMatcher, Invocation, Integer...) - Constructor for class org.mockito.internal.reporting.SmartPrinter
-
- sort(Collection<? extends Field>) - Method in class org.mockito.internal.util.reflection.SuperTypesLastSorter
-
Return a new collection with the fields sorted first by name,
then with any fields moved after their supertypes.
- spiedInstance(Object) - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- spiedInstance - Variable in class org.mockito.internal.creation.settings.CreationSettings
-
- 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.
- spyAndDelegateAreMutuallyExclusive() - Static method in class org.mockito.exceptions.Reporter
-
- SpyAnnotationEngine - Class in org.mockito.internal.configuration
-
Process fields annotated with @Spy.
- SpyAnnotationEngine() - Constructor for class org.mockito.internal.configuration.SpyAnnotationEngine
-
- SpyOnInjectedFieldsHandler - Class in org.mockito.internal.configuration.injection
-
Handler for field annotated with @InjectMocks and @Spy.
- SpyOnInjectedFieldsHandler() - Constructor for class org.mockito.internal.configuration.injection.SpyOnInjectedFieldsHandler
-
- 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
-
- StackTraceFilter - Class in org.mockito.internal.exceptions.stacktrace
-
- StackTraceFilter() - Constructor for class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
-
- start() - Method in class org.mockito.internal.util.Timer
-
Starts the timer count down.
- StartsWith - Class in org.mockito.internal.matchers
-
- StartsWith(String) - Constructor for class org.mockito.internal.matchers.StartsWith
-
- startsWith(String) - Static method in class org.mockito.Matchers
-
String
argument that starts with the given prefix.
- StringJoiner - Class in org.mockito.internal.util
-
Joins Strings together producing yet another String
- StringJoiner() - Constructor for class org.mockito.internal.util.StringJoiner
-
- stubbedAt() - Method in class org.mockito.internal.invocation.StubInfoImpl
-
- stubbedAt() - Method in interface org.mockito.invocation.StubInfo
-
- StubbedInvocationMatcher - Class in org.mockito.internal.stubbing
-
- StubbedInvocationMatcher(InvocationMatcher, Answer) - Constructor for class org.mockito.internal.stubbing.StubbedInvocationMatcher
-
- stubber() - Method in class org.mockito.internal.MockitoCore
-
- Stubber - Interface in org.mockito.stubbing
-
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
- StubberImpl - Class in org.mockito.internal.stubbing
-
- StubberImpl() - Constructor for class org.mockito.internal.stubbing.StubberImpl
-
- stubbingCompleted(Invocation) - Method in interface org.mockito.internal.progress.MockingProgress
-
- stubbingCompleted(Invocation) - Method in class org.mockito.internal.progress.MockingProgressImpl
-
- stubbingCompleted(Invocation) - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
-
- stubbingStarted() - Method in interface org.mockito.internal.progress.MockingProgress
-
- stubbingStarted() - Method in class org.mockito.internal.progress.MockingProgressImpl
-
- stubbingStarted() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
-
- stubInfo() - Method in class org.mockito.internal.invocation.InvocationImpl
-
- stubInfo() - Method in interface org.mockito.invocation.Invocation
-
- StubInfo - Interface in org.mockito.invocation
-
The information about stubbing, for example the location of stubbing.
- StubInfoImpl - Class in org.mockito.internal.invocation
-
- StubInfoImpl(DescribedInvocation) - Constructor for class org.mockito.internal.invocation.StubInfoImpl
-
- stubOnly() - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- stubOnly - Variable in class org.mockito.internal.creation.settings.CreationSettings
-
- stubOnly() - Method in interface org.mockito.MockSettings
-
A stub-only mock does not record method
invocations, thus saving memory but
disallowing verification of invocations.
- stubPassedToVerify() - Static method in class org.mockito.exceptions.Reporter
-
- stubVoid(T) - Method in class org.mockito.internal.MockitoCore
-
- SuperTypesLastSorter - Class in org.mockito.internal.util.reflection
-
Sort fields in an order suitable for injection, by name with superclasses
moved after their subclasses.
- SuperTypesLastSorter() - Constructor for class org.mockito.internal.util.reflection.SuperTypesLastSorter
-
- syntheticField() - Static method in class org.mockito.internal.util.reflection.Fields
-
Accept fields with non null value.