Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
T
- 18. Troubleshooting and validating framework usage (Since 1.8.0) - Search tag in class org.mockito.Mockito
- Section
- target - Variable in class org.mockito.internal.util.concurrent.WeakConcurrentMap
- 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 anOngoingInjector
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
- TEST_LEVEL_DEFAULT - Enum constant in enum org.mockito.Mock.Strictness
-
Default value used to indicate the mock does not override the test level strictness.
- testFailure(Failure) - Method in class org.mockito.internal.runners.util.FailureDetector
- testFinished(TestFinishedEvent) - Method in class org.mockito.internal.junit.MismatchReportingTestListener
- testFinished(TestFinishedEvent) - Method in interface org.mockito.internal.junit.MockitoTestListener
- testFinished(TestFinishedEvent) - Method in class org.mockito.internal.junit.NoOpTestListener
- testFinished(TestFinishedEvent) - Method in class org.mockito.internal.junit.StrictStubsRunnerTestListener
- testFinished(TestFinishedEvent) - Method in class org.mockito.internal.junit.UniversalTestListener
- TestFinishedEvent - Interface in org.mockito.internal.junit
- TestMethodsFinder - Class in org.mockito.internal.runners.util
- testRule(Object) - Static method in class org.mockito.junit.MockitoJUnit
-
Creates a rule instance that initiates @Mocks and is a
TestRule
. - then(Answer<?>) - Method in class org.mockito.internal.stubbing.BaseStubbing
- then(Answer<?>) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets a generic Answer for the method.
- then(T) - Static method in class org.mockito.BDDMockito
-
Bdd style verification of mock behavior.
- 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) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets a return value to be returned when the method is called.
- thenReturn(T, T...) - Method in class org.mockito.internal.stubbing.BaseStubbing
- thenReturn(T, T...) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets consecutive return values to be returned when the method is called.
- thenThrow(Class<? extends Throwable>) - Method in class org.mockito.internal.stubbing.BaseStubbing
- thenThrow(Class<? extends Throwable>) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets a Throwable type to be thrown when the method is called.
- thenThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in class org.mockito.internal.stubbing.BaseStubbing
- thenThrow(Class<? extends Throwable>, Class<? extends Throwable>...) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets Throwable classes to be thrown when the method is called.
- thenThrow(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.
- thenTry(MockInjectionStrategy) - Method in class org.mockito.internal.configuration.injection.MockInjectionStrategy
-
Enqueue next injection strategy.
- THREAD - Enum constant in enum org.mockito.internal.util.concurrent.DetachedThreadLocal.Cleaner
- THREAD - Enum constant in enum org.mockito.internal.util.concurrent.WeakConcurrentSet.Cleaner
- ThreadSafeMockingProgress - Class in org.mockito.internal.progress
-
Provides access to the
MockingProgress
of a correspondingThread
. - threwException() - Method in class org.mockito.internal.handler.NotifiedMethodInvocationReport
- threwException() - Method in interface org.mockito.listeners.MethodInvocationReport
- ThrowingConsumer<T> - Interface in org.mockito
- ThrowsException - Class in org.mockito.internal.stubbing.answers
-
An answer that always throws the same throwable.
- ThrowsException(Throwable) - Constructor for class org.mockito.internal.stubbing.answers.ThrowsException
-
Creates a new answer always throwing the given throwable.
- ThrowsExceptionForClassType - Class in org.mockito.internal.stubbing.answers
- ThrowsExceptionForClassType(Class<? extends Throwable>) - Constructor for class org.mockito.internal.stubbing.answers.ThrowsExceptionForClassType
- timeout(long) - Static method in class org.mockito.Mockito
-
Verification will be triggered over and over until the given amount of millis, allowing testing of async code.
- Timeout - Class in org.mockito.verification
-
See the javadoc for
VerificationWithTimeout
- Timeout(long, VerificationMode) - Constructor for class org.mockito.verification.Timeout
-
See the javadoc for
VerificationWithTimeout
- Timer - Class in org.mockito.internal.util
- Timer(long) - Constructor for class org.mockito.internal.util.Timer
- times(int) - Static method in class org.mockito.internal.verification.VerificationModeFactory
- times(int) - Method in class org.mockito.internal.verification.VerificationWrapper
- 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
- Times - Class in org.mockito.internal.verification
- Times(int) - Constructor for class org.mockito.internal.verification.Times
- toAnswer(Answer1<T, A>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a two parameter answer interface
- toAnswer(Answer2<T, A, B>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a two parameter answer interface
- toAnswer(Answer3<T, A, B, C>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a three parameter answer interface
- toAnswer(Answer4<T, A, B, C, D>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a four parameter answer interface
- toAnswer(Answer5<T, A, B, C, D, E>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a five parameter answer interface
- toAnswer(Answer6<T, A, B, C, D, E, F>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a six parameter answer interface
- toAnswer(VoidAnswer1<A>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a two parameter answer interface
- toAnswer(VoidAnswer2<A, B>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a two parameter answer interface
- toAnswer(VoidAnswer3<A, B, C>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a three parameter answer interface
- toAnswer(VoidAnswer4<A, B, C, D>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a four parameter answer interface
- toAnswer(VoidAnswer5<A, B, C, D, E>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a five parameter answer interface
- toAnswer(VoidAnswer6<A, B, C, D, E, F>) - Static method in class org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces
-
Construct an answer from a five parameter answer interface
- 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
- tooFewActualInvocations(Discrepancy, DescribedInvocation, List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
- TooFewActualInvocations - Exception Class in org.mockito.exceptions.verification
- TooFewActualInvocations(String) - Constructor for exception class org.mockito.exceptions.verification.TooFewActualInvocations
- tooFewActualInvocationsInOrder(Discrepancy, DescribedInvocation, List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
- tooManyActualInvocations(int, int, DescribedInvocation, List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
- TooManyActualInvocations - Exception Class in org.mockito.exceptions.verification
- TooManyActualInvocations(String) - Constructor for exception class org.mockito.exceptions.verification.TooManyActualInvocations
- tooManyActualInvocationsInOrder(int, int, DescribedInvocation, List<Location>) - Static method in class org.mockito.internal.exceptions.Reporter
- toString() - Method in exception class org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
- toString() - Method in exception class org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent
- toString() - Method in exception class org.mockito.exceptions.verification.WantedButNotInvoked
- toString() - Method in class org.mockito.internal.hamcrest.HamcrestArgumentMatcher
- toString() - Method in class org.mockito.internal.invocation.InterceptedInvocation
- toString() - Method in class org.mockito.internal.invocation.InvocationMatcher
- toString() - Method in class org.mockito.internal.junit.UnusedStubbings
- 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.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.MockedStaticImpl
- toString() - Method in class org.mockito.internal.progress.MockingProgressImpl
- 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.AtMost
- toString() - Method in class org.mockito.internal.verification.Calls
- toString() - Method in class org.mockito.internal.verification.Only
- 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
-
Human readable location in the source code, see
Invocation.getLocation()
- toString() - Method in interface org.mockito.mock.MockName
-
the name
- toString() - Method in class org.mockito.verification.After
- toString() - Method in class org.mockito.verification.Timeout
- toStringWithType(String) - Method in interface org.mockito.internal.matchers.ContainsExtraTypeInfo
- toStringWithType(String) - Method in class org.mockito.internal.matchers.Equals
- transform(ClassLoader, String, Class<?>, ProtectionDomain, byte[]) - Method in class org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator
- TriesToReturnSelf - Class in org.mockito.internal.stubbing.defaultanswers
- TriesToReturnSelf() - Constructor for class org.mockito.internal.stubbing.defaultanswers.TriesToReturnSelf
- trimSuspendParameterTypes(Class<?>[]) - Static method in class org.mockito.internal.creation.SuspendMethod
- tryConstructorInjection() - Method in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
- tryGetPluginAnnotationEngine() - Method in class org.mockito.internal.configuration.GlobalConfiguration
- tryPropertyOrFieldInjection() - Method in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
- type() - Method in interface org.mockito.ArgumentMatcher
-
The type of the argument this matcher matches.
- type() - Method in class org.mockito.internal.hamcrest.HamcrestArgumentMatcher
- type() - Method in class org.mockito.internal.matchers.And
- type() - Method in class org.mockito.internal.matchers.Any
- type() - Method in class org.mockito.internal.matchers.CapturingMatcher
- type() - Method in class org.mockito.internal.matchers.Equals
- type() - Method in class org.mockito.internal.matchers.InstanceOf
- type() - Method in class org.mockito.internal.matchers.Not
- type() - Method in class org.mockito.internal.matchers.NotNull
- type() - Method in class org.mockito.internal.matchers.Null
- type() - Method in class org.mockito.internal.matchers.Or
- type() - Method in class org.mockito.internal.matchers.Same
- 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<?>, String) - Static method in class org.mockito.internal.util.MockUtil
- TypeSafeMatching - Class in org.mockito.internal.invocation
- typeToMock - Variable in class org.mockito.internal.creation.settings.CreationSettings
- TypeVarBoundedType(TypeVariable<?>) - Constructor for class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
- typeVariable() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form