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
- 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.
- 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 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 interface org.mockito.stubbing.OngoingStubbing
-
Sets a generic Answer for the method.
- thenCallRealMethod() - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets the real implementation to be called when the method is called on a mock object.
- 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(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 interface org.mockito.stubbing.OngoingStubbing
-
Sets Throwable classes to be thrown when the method is called.
- thenThrow(Throwable...) - Method in interface org.mockito.stubbing.OngoingStubbing
-
Sets Throwable objects to be thrown when the method is called.
- threwException() - Method in interface org.mockito.listeners.MethodInvocationReport
- ThrowingConsumer<T> - Interface in org.mockito
- 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
- 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
- TooFewActualInvocations - Exception Class in org.mockito.exceptions.verification
- TooFewActualInvocations(String) - Constructor for exception class org.mockito.exceptions.verification.TooFewActualInvocations
- TooManyActualInvocations - Exception Class in org.mockito.exceptions.verification
- TooManyActualInvocations(String) - Constructor for exception class org.mockito.exceptions.verification.TooManyActualInvocations
- 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 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
- type() - Method in interface org.mockito.ArgumentMatcher
-
The type of the argument this matcher matches.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form