Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
W
- wantedAtMostX(int, int) - Static method in class org.mockito.internal.exceptions.Reporter
- wantedButNotInvoked(DescribedInvocation) - Static method in class org.mockito.internal.exceptions.Reporter
- wantedButNotInvoked(DescribedInvocation, List<? extends DescribedInvocation>) - Static method in class org.mockito.internal.exceptions.Reporter
- WantedButNotInvoked - Exception Class in org.mockito.exceptions.verification
- WantedButNotInvoked(String) - Constructor for exception class org.mockito.exceptions.verification.WantedButNotInvoked
- wantedButNotInvokedInOrder(DescribedInvocation, DescribedInvocation) - Static method in class org.mockito.internal.exceptions.Reporter
- WARN - Enum constant in enum org.mockito.Mock.Strictness
-
See
Strictness.WARN
- WARN - Enum constant in enum org.mockito.quality.Strictness
-
Helps keeping tests clean and improves debuggability only if you read the console output.
- warnForVM(String, String, String, String) - Static method in class org.mockito.internal.util.Platform
- WarningsFinder - Class in org.mockito.internal.debugging
- WarningsFinder(List<Invocation>, List<InvocationMatcher>) - Constructor for class org.mockito.internal.debugging.WarningsFinder
- WarningsPrinterImpl - Class in org.mockito.internal.debugging
- WarningsPrinterImpl(List<Invocation>, List<InvocationMatcher>, boolean) - Constructor for class org.mockito.internal.debugging.WarningsPrinterImpl
- wasUsed() - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
- wasUsed() - Method in interface org.mockito.stubbing.Stubbing
-
Informs if the stubbing was used
- WeakConcurrentMap<K,
V> - Class in org.mockito.internal.util.concurrent -
A thread-safe map with weak keys.
- WeakConcurrentMap(boolean) - Constructor for class org.mockito.internal.util.concurrent.WeakConcurrentMap
- WeakConcurrentMap.WithInlinedExpunction<K,
V> - Class in org.mockito.internal.util.concurrent -
A
WeakConcurrentMap
where stale entries are removed as a side effect of interacting with this map. - WeakConcurrentSet<V> - Class in org.mockito.internal.util.concurrent
-
A thread-safe set with weak values.
- WeakConcurrentSet(WeakConcurrentSet.Cleaner) - Constructor for class org.mockito.internal.util.concurrent.WeakConcurrentSet
- WeakConcurrentSet.Cleaner - Enum in org.mockito.internal.util.concurrent
-
Determines the cleaning format.
- were_exactly_x_interactions(int) - Static method in class org.mockito.internal.reporting.Pluralizer
- when(MockedStatic.Verification) - Method in class org.mockito.internal.MockedStaticImpl
- when(MockedStatic.Verification) - Method in interface org.mockito.MockedStatic
-
See
Mockito.when(Object)
. - when(T) - Method in class org.mockito.internal.MockitoCore
- when(T) - Method in class org.mockito.internal.stubbing.DefaultLenientStubber
- when(T) - Method in class org.mockito.internal.stubbing.StubberImpl
- when(T) - Static method in class org.mockito.Mockito
-
Enables stubbing methods.
- when(T) - Method in interface org.mockito.stubbing.LenientStubber
-
Allows declaring the method to stub.
- when(T) - Method in interface org.mockito.stubbing.Stubber
-
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
- wildCard() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
- WildCardBoundedType(WildcardType) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
- will(Answer<?>) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
See original
OngoingStubbing.then(Answer)
- will(Answer<?>) - Method in interface org.mockito.BDDMockito.BDDStubber
-
See original
BaseStubber.doAnswer(Answer)
- will(Answer<?>) - Static method in class org.mockito.BDDMockito
-
see original
Mockito.doAnswer(Answer)
- willAnswer(Answer<?>) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
See original
OngoingStubbing.thenAnswer(Answer)
- willAnswer(Answer<?>) - Method in interface org.mockito.BDDMockito.BDDStubber
-
See original
BaseStubber.doAnswer(Answer)
- willAnswer(Answer<?>) - Static method in class org.mockito.BDDMockito
-
see original
Mockito.doAnswer(Answer)
- willCallRealMethod() - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
See original
OngoingStubbing.thenCallRealMethod()
- willCallRealMethod() - Method in interface org.mockito.BDDMockito.BDDStubber
-
See original
BaseStubber.doCallRealMethod()
- willCallRealMethod() - Static method in class org.mockito.BDDMockito
-
see original
Mockito.doCallRealMethod()
- willDoNothing() - Method in interface org.mockito.BDDMockito.BDDStubber
-
See original
BaseStubber.doNothing()
- willDoNothing() - Static method in class org.mockito.BDDMockito
-
see original
Mockito.doNothing()
- willReturn(Object) - Method in interface org.mockito.BDDMockito.BDDStubber
-
See original
BaseStubber.doReturn(Object)
- willReturn(Object) - Static method in class org.mockito.BDDMockito
-
see original
Mockito.doReturn(Object)
- willReturn(Object, Object...) - Method in interface org.mockito.BDDMockito.BDDStubber
-
See original
BaseStubber.doReturn(Object)
- willReturn(Object, Object...) - Static method in class org.mockito.BDDMockito
-
see original
Mockito.doReturn(Object, Object...)
- willReturn(T) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
See original
OngoingStubbing.thenReturn(Object)
- willReturn(T, T...) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
See original
OngoingStubbing.thenReturn(Object, Object[])
- willThrow(Class<? extends Throwable>) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
See original
OngoingStubbing.thenThrow(Class)
- willThrow(Class<? extends Throwable>) - Method in interface org.mockito.BDDMockito.BDDStubber
-
See original
BaseStubber.doThrow(Class)
- willThrow(Class<? extends Throwable>) - Static method in class org.mockito.BDDMockito
-
see original
Mockito.doThrow(Class)
- willThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
See original
OngoingStubbing.thenThrow(Class, Class[])
- willThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in interface org.mockito.BDDMockito.BDDStubber
-
See original
BaseStubber.doThrow(Class, Class[])
- willThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Static method in class org.mockito.BDDMockito
-
see original
Mockito.doThrow(Class)
- willThrow(Throwable...) - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
See original
OngoingStubbing.thenThrow(Throwable...)
- willThrow(Throwable...) - Method in interface org.mockito.BDDMockito.BDDStubber
-
See original
BaseStubber.doThrow(Throwable...)
- willThrow(Throwable...) - Static method in class org.mockito.BDDMockito
-
see original
Mockito.doThrow(Throwable[])
- WithInlinedExpunction() - Constructor for class org.mockito.internal.util.concurrent.WeakConcurrentMap.WithInlinedExpunction
- withMocks(Set<Object>) - Method in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
- withoutAnnotations() - Method in class org.mockito.internal.creation.MockSettingsImpl
- withoutAnnotations() - Element in annotation type org.mockito.Mock
-
Mock will not attempt to preserve all annotation metadata, see
MockSettings.withoutAnnotations()
. - withoutAnnotations() - Method in interface org.mockito.MockSettings
-
By default, Mockito makes an attempt to preserve all annotation metadata on the mocked type and its methods to mirror the mocked type as closely as possible.
- withSettings() - Static method in class org.mockito.Mockito
-
Allows mock creation with additional mock settings.
- wrappedVerification - Variable in class org.mockito.internal.verification.VerificationWrapper
- writeText(String, File) - Static method in class org.mockito.internal.util.io.IOUtil
-
Writes text to file in UTF-8.
- wrongTypeOfArgumentToReturn(InvocationOnMock, String, Class<?>, int) - Static method in class org.mockito.internal.exceptions.Reporter
- wrongTypeOfReturnValue(String, String, String) - Static method in class org.mockito.internal.exceptions.Reporter
- WrongTypeOfReturnValue - Exception Class in org.mockito.exceptions.misusing
- WrongTypeOfReturnValue(String) - Constructor for exception class org.mockito.exceptions.misusing.WrongTypeOfReturnValue
- wrongTypeReturnedByDefaultAnswer(Object, String, String, String) - Static method in class org.mockito.internal.exceptions.Reporter
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form