- TerminalMockCandidateFilter - Class in org.mockito.internal.configuration.injection.filter
-
This node returns an actual injecter which will be either :
an
OngoingInjector
that do nothing if a candidate couldn't be found
an
OngoingInjector
that will try to inject the candidate trying first the property setter then if not possible try the field access
- TerminalMockCandidateFilter() - Constructor for class org.mockito.internal.configuration.injection.filter.TerminalMockCandidateFilter
-
- testFinished(Description) - Method in class org.mockito.internal.runners.util.FrameworkUsageValidator
-
- TestMethodsFinder - Class in org.mockito.internal.runners.util
-
- TestMethodsFinder() - Constructor for class org.mockito.internal.runners.util.TestMethodsFinder
-
- then(T) - Static method in class org.mockito.BDDMockito
-
Bdd style verification of mock behavior.
- then(Answer<?>) - Method in class org.mockito.internal.stubbing.ConsecutiveStubbing
-
- then(Answer<?>) - Method in class org.mockito.internal.stubbing.OngoingStubbingImpl
-
- then(Answer<?>) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets a generic Answer for the method.
- thenAnswer(Answer<?>) - Method in class org.mockito.internal.stubbing.ConsecutiveStubbing
-
- thenAnswer(Answer<?>) - Method in class org.mockito.internal.stubbing.OngoingStubbingImpl
-
- thenAnswer(Answer<?>) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets a generic Answer for the method.
- thenCallRealMethod() - Method in class org.mockito.internal.stubbing.BaseStubbing
-
- thenCallRealMethod() - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets the real implementation to be called when the method is called on a mock object.
- thenInject() - Method in interface org.mockito.internal.configuration.injection.filter.OngoingInjector
-
Inject the mock.
- thenReturn(T) - Method in class org.mockito.internal.stubbing.BaseStubbing
-
- thenReturn(T, T...) - Method in class org.mockito.internal.stubbing.BaseStubbing
-
- thenReturn(T) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets a return value to be returned when the method is called.
- thenReturn(T, T...) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets consecutive return values to be returned when the method is called.
- thenThrow(Throwable...) - Method in class org.mockito.internal.stubbing.BaseStubbing
-
- thenThrow(Class<? extends Throwable>...) - Method in class org.mockito.internal.stubbing.BaseStubbing
-
- thenThrow(Throwable...) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets Throwable objects to be thrown when the method is called.
- thenThrow(Class<? extends Throwable>...) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets Throwable classes to be thrown when the method is called.
- thenTry(MockInjectionStrategy) - Method in class org.mockito.internal.configuration.injection.MockInjectionStrategy
-
Enqueue next injection strategy.
- ThreadSafeMockingProgress - Class in org.mockito.internal.progress
-
- ThreadSafeMockingProgress() - Constructor for class org.mockito.internal.progress.ThreadSafeMockingProgress
-
- threwException() - Method in class org.mockito.internal.listeners.NotifiedMethodInvocationReport
-
- threwException() - Method in interface org.mockito.listeners.MethodInvocationReport
-
- ThrowsException - Class in org.mockito.internal.stubbing.answers
-
- ThrowsException(Throwable) - Constructor for class org.mockito.internal.stubbing.answers.ThrowsException
-
- ThrowsExceptionClass - Class in org.mockito.internal.stubbing.answers
-
- ThrowsExceptionClass(Class<? extends Throwable>) - Constructor for class org.mockito.internal.stubbing.answers.ThrowsExceptionClass
-
- timeout(long) - Static method in class org.mockito.Mockito
-
Allows verifying with timeout.
- Timeout - Class in org.mockito.verification
-
- Timeout(long, VerificationMode) - Constructor for class org.mockito.verification.Timeout
-
- Timer - Class in org.mockito.internal.util
-
- Timer(long) - Constructor for class org.mockito.internal.util.Timer
-
- Times - Class in org.mockito.internal.verification
-
- Times(int) - Constructor for class org.mockito.internal.verification.Times
-
- times(int) - Static method in class org.mockito.internal.verification.VerificationModeFactory
-
- times(int) - Static method in class org.mockito.Mockito
-
Allows verifying exact number of invocations.
- times(int) - Method in interface org.mockito.verification.VerificationAfterDelay
-
Verifies that there are exactly N invocations during the given period.
- times(int) - Method in interface org.mockito.verification.VerificationWithTimeout
-
Allows verifying exact number of invocations within given timeout
verify(mock, timeout(100).times(2)).someMethod("some arg");
- times(int) - Method in class org.mockito.verification.VerificationWrapper
-
- toAnswer(Answer<?>) - Method in class org.mockito.internal.stubbing.ConsecutiveStubbing
-
- toAnswer(Answer<?>) - Method in class org.mockito.internal.stubbing.OngoingStubbingImpl
-
- toAnswer(Answer<?>) - Method in class org.mockito.internal.stubbing.VoidMethodStubbableImpl
-
- toAnswer(Answer<?>) - Method in interface org.mockito.stubbing.DeprecatedOngoingStubbing
-
Set a generic Answer for the stubbed method.
- toAnswer(Answer<?>) - Method in interface org.mockito.stubbing.VoidMethodStubbable
-
Stubs a void method with generic
Answer
- toArray() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
-
- toArray(T[]) - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
-
- toIterable(Enumeration<T>) - Static method in class org.mockito.internal.util.collections.Iterables
-
Converts enumeration into iterable
- tooLittleActualInvocations(Discrepancy, DescribedInvocation, Location) - Method in class org.mockito.exceptions.Reporter
-
- TooLittleActualInvocations - Error in org.mockito.exceptions.verification
-
- TooLittleActualInvocations(String) - Constructor for error org.mockito.exceptions.verification.TooLittleActualInvocations
-
- tooLittleActualInvocationsInOrder(Discrepancy, DescribedInvocation, Location) - Method in class org.mockito.exceptions.Reporter
-
- tooManyActualInvocations(int, int, DescribedInvocation, Location) - Method in class org.mockito.exceptions.Reporter
-
- TooManyActualInvocations - Error in org.mockito.exceptions.verification
-
- TooManyActualInvocations(String) - Constructor for error org.mockito.exceptions.verification.TooManyActualInvocations
-
- tooManyActualInvocationsInOrder(int, int, DescribedInvocation, Location) - Method in class org.mockito.exceptions.Reporter
-
- toReturn(T) - Method in class org.mockito.internal.stubbing.BaseStubbing
-
- toReturn() - Method in class org.mockito.internal.stubbing.VoidMethodStubbableImpl
-
- toReturn(T) - Method in interface org.mockito.stubbing.DeprecatedOngoingStubbing
-
Set a return value for the stubbed method.
- toReturn() - Method in interface org.mockito.stubbing.VoidMethodStubbable
-
Stubs void method to 'just return' (e.g.
- toString() - Method in interface org.mockito.exceptions.PrintableInvocation
-
Deprecated.
- toString() - Method in error org.mockito.exceptions.verification.ArgumentsAreDifferent
-
- toString() - Method in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
-
- toString() - Method in error org.mockito.exceptions.verification.WantedButNotInvoked
-
- toString() - Method in class org.mockito.internal.debugging.LocationImpl
-
- toString() - Method in class org.mockito.internal.hamcrest.HamcrestArgumentMatcher
-
- toString() - Method in class org.mockito.internal.invocation.InvocationImpl
-
- toString() - Method in class org.mockito.internal.invocation.InvocationMatcher
-
- toString() - Method in class org.mockito.internal.matchers.And
-
- toString() - Method in class org.mockito.internal.matchers.Any
-
- toString() - Method in class org.mockito.internal.matchers.AnyVararg
-
- toString() - Method in class org.mockito.internal.matchers.apachecommons.ReflectionEquals
-
- toString() - Method in class org.mockito.internal.matchers.ArrayEquals
-
- toString() - Method in class org.mockito.internal.matchers.CapturingMatcher
-
- toString() - Method in class org.mockito.internal.matchers.CompareTo
-
- toString() - Method in class org.mockito.internal.matchers.Contains
-
- toString() - Method in class org.mockito.internal.matchers.EndsWith
-
- toString() - Method in class org.mockito.internal.matchers.Equals
-
- toString() - Method in class org.mockito.internal.matchers.EqualsWithDelta
-
- toString() - Method in class org.mockito.internal.matchers.Find
-
- toString() - Method in class org.mockito.internal.matchers.InstanceOf
-
- toString() - Method in class org.mockito.internal.matchers.Matches
-
- toString() - Method in class org.mockito.internal.matchers.Not
-
- toString() - Method in class org.mockito.internal.matchers.NotNull
-
- toString() - Method in class org.mockito.internal.matchers.Null
-
- toString() - Method in class org.mockito.internal.matchers.Or
-
- toString() - Method in class org.mockito.internal.matchers.Same
-
- toString() - Method in class org.mockito.internal.matchers.StartsWith
-
- toString() - Method in class org.mockito.internal.matchers.text.ValuePrinter
-
- toString() - Method in class org.mockito.internal.matchers.VarargCapturingMatcher
-
- toString() - Method in class org.mockito.internal.progress.MockingProgressImpl
-
- toString() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
-
- toString() - Method in class org.mockito.internal.stubbing.answers.Returns
-
- toString() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- toString() - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
-
- toString() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
-
- toString() - Method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
-
- toString() - Method in class org.mockito.internal.util.MockNameImpl
-
- toString() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
-
- toString() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
-
- toString() - Method in class org.mockito.internal.util.reflection.InstanceField
-
- toString() - Method in class org.mockito.internal.verification.AtLeast
-
- toString() - Method in class org.mockito.internal.verification.Calls
-
- toString() - Method in class org.mockito.internal.verification.Times
-
- toString() - Method in interface org.mockito.invocation.DescribedInvocation
-
Describes the invocation in the human friendly way.
- toString() - Method in interface org.mockito.invocation.Location
-
- toString() - Method in interface org.mockito.mock.MockName
-
the name
- toStringWithType() - Method in interface org.mockito.internal.matchers.ContainsExtraTypeInfo
-
Returns more verbose description of the object which include type information
- toStringWithType() - Method in class org.mockito.internal.matchers.Equals
-
- toThrow(Throwable) - Method in class org.mockito.internal.stubbing.BaseStubbing
-
- toThrow(Throwable) - Method in class org.mockito.internal.stubbing.VoidMethodStubbableImpl
-
- toThrow(Throwable) - Method in interface org.mockito.stubbing.DeprecatedOngoingStubbing
-
Set a Throwable to be thrown when the stubbed method is called.
- toThrow(Throwable) - Method in interface org.mockito.stubbing.VoidMethodStubbable
-
Stubs void method with an exception.
- tryConstructorInjection() - Method in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
-
- tryPropertyOrFieldInjection() - Method in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
-
- TWO_SUB_MATCHERS - Static variable in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
-
- TypeBasedCandidateFilter - Class in org.mockito.internal.configuration.injection.filter
-
- TypeBasedCandidateFilter(MockCandidateFilter) - Constructor for class org.mockito.internal.configuration.injection.filter.TypeBasedCandidateFilter
-
- typeMatches(Object) - Method in interface org.mockito.internal.matchers.ContainsExtraTypeInfo
-
Checks if target target has matching type.
- typeMatches(Object) - Method in class org.mockito.internal.matchers.Equals
-
- typeMockabilityOf(Class<?>) - Method in class org.mockito.internal.util.MockUtil
-
- typeToMock - Variable in class org.mockito.internal.creation.settings.CreationSettings
-
- typeVariable() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
-