Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
F
- 8. Finding redundant invocations - Search tag in class org.mockito.Mockito
- Section
- FailureDetector - Class in org.mockito.internal.runners.util
-
Implementation of JUnit run listener that knows when any of the tests failed
- FailureDetector() - Constructor for class org.mockito.internal.runners.util.FailureDetector
- fetchFrom(Thread) - Method in class org.mockito.internal.util.concurrent.DetachedThreadLocal
- FieldAnnotationProcessor<A> - Interface in org.mockito.internal.configuration
-
Simple annotation processor interface.
- fieldClass() - Method in class org.mockito.internal.util.reflection.FieldInitializationReport
-
Returns the class of the actual instance in the field.
- fieldInitialisationThrewException(Field, Throwable) - Static method in class org.mockito.internal.exceptions.Reporter
- FieldInitializationReport - Class in org.mockito.internal.util.reflection
-
Report on field initialization
- FieldInitializationReport(Object, boolean, boolean) - Constructor for class org.mockito.internal.util.reflection.FieldInitializationReport
- FieldInitializer - Class in org.mockito.internal.util.reflection
-
Initialize a field with type instance if a default constructor can be found.
- FieldInitializer(Object, Field) - Constructor for class org.mockito.internal.util.reflection.FieldInitializer
-
Prepare initializer with the given field on the given instance.
- FieldInitializer(Object, Field, FieldInitializer.ConstructorArgumentResolver) - Constructor for class org.mockito.internal.util.reflection.FieldInitializer
-
Prepare initializer with the given field on the given instance.
- FieldInitializer.ConstructorArgumentResolver - Interface in org.mockito.internal.util.reflection
-
Represents the strategy used to resolve actual instances to be given to a constructor given the argument types.
- fieldInstance() - Method in class org.mockito.internal.util.reflection.FieldInitializationReport
-
Returns the actual field instance.
- FieldReader - Class in org.mockito.internal.util.reflection
- FieldReader(Object, Field) - Constructor for class org.mockito.internal.util.reflection.FieldReader
- fieldWasInitialized() - Method in class org.mockito.internal.util.reflection.FieldInitializationReport
-
Indicate whether the field was created during the process or not.
- fieldWasInitializedUsingContructorArgs() - Method in class org.mockito.internal.util.reflection.FieldInitializationReport
-
Indicate whether the field was created using constructor args.
- filter(StackTraceElement[], boolean) - Method in class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
-
Example how the filter works (+/- means good/bad): [a+, b+, c-, d+, e+, f-, g+] -> [a+, b+, d+, e+, g+] Basically removes all bad from the middle.
- filter(Throwable) - Method in class org.mockito.internal.exceptions.stacktrace.ConditionalStackTraceFilter
- filter(Filter) - Method in class org.mockito.internal.runners.DefaultInternalRunner
- filter(Filter) - Method in class org.mockito.internal.runners.StrictRunner
- filter(Filter) - Method in class org.mockito.junit.MockitoJUnitRunner
- filterCandidate(Collection<Object>, Field, List<Field>, Object, Field) - Method in interface org.mockito.internal.configuration.injection.filter.MockCandidateFilter
- filterCandidate(Collection<Object>, Field, List<Field>, Object, Field) - Method in class org.mockito.internal.configuration.injection.filter.NameBasedCandidateFilter
- filterCandidate(Collection<Object>, Field, List<Field>, Object, Field) - Method in class org.mockito.internal.configuration.injection.filter.TerminalMockCandidateFilter
- filterCandidate(Collection<Object>, Field, List<Field>, Object, Field) - Method in class org.mockito.internal.configuration.injection.filter.TypeBasedCandidateFilter
- filterFirst(Throwable, boolean) - Method in class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
-
This filtering strategy makes use of a fast-path computation to retrieve stackTraceElements from a Stacktrace of a Throwable.
- find(Iterable<?>) - Static method in class org.mockito.internal.invocation.finder.AllInvocationsFinder
-
gets all invocations from mocks.
- find(String) - Static method in class org.mockito.AdditionalMatchers
-
String argument that contains a substring that matches the given regular expression.
- find(List<?>) - Static method in class org.mockito.internal.invocation.finder.VerifiableInvocationsFinder
- find(FindingsListener) - Method in class org.mockito.internal.debugging.WarningsFinder
- Find - Class in org.mockito.internal.matchers
- Find(String) - Constructor for class org.mockito.internal.matchers.Find
- findAllMatchingUnverifiedChunks(List<Invocation>, MatchableInvocation, InOrderContext) - Static method in class org.mockito.internal.invocation.InvocationsFinder
- findAnswerFor(Invocation) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
- findFirstMatchingUnverifiedInvocation(List<Invocation>, MatchableInvocation, InOrderContext) - Static method in class org.mockito.internal.invocation.InvocationsFinder
- findFirstUnverified(List<Invocation>) - Static method in class org.mockito.internal.invocation.InvocationsFinder
- findFirstUnverifiedInOrder(InOrderContext, List<Invocation>) - Static method in class org.mockito.internal.invocation.InvocationsFinder
-
i3 is unverified here: i1, i2, i3 v all good here: i1, i2, i3 v v
- FindingsListener - Interface in org.mockito.internal.debugging
- findInvocations(List<Invocation>, MatchableInvocation) - Static method in class org.mockito.internal.invocation.InvocationsFinder
- findMatchingChunk(List<Invocation>, MatchableInvocation, int, InOrderContext) - Static method in class org.mockito.internal.invocation.InvocationsFinder
-
some examples how it works: Given invocations sequence: 1,1,2,1 if wanted is 1 and mode is times(2) then returns 1,1 if wanted is 1 and mode is atLeast() then returns 1,1,1 if wanted is 1 and mode is times(x), where x != 2 then returns 1,1,1
- findPreviousVerifiedInOrder(List<Invocation>, InOrderContext) - Static method in class org.mockito.internal.invocation.InvocationsFinder
- findSimilarInvocation(List<Invocation>, MatchableInvocation) - Static method in class org.mockito.internal.invocation.InvocationsFinder
- findSourceFile(StackTraceElement[], String) - Method in class org.mockito.internal.exceptions.stacktrace.StackTraceFilter
-
Finds the source file of the target stack trace.
- findStubbedAnswer() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
- findStubbings(Iterable<?>) - Static method in class org.mockito.internal.invocation.finder.AllInvocationsFinder
-
Gets all stubbings from mocks.
- finishMocking() - Method in class org.mockito.internal.framework.DefaultMockitoSession
- finishMocking() - Method in interface org.mockito.MockitoSession
-
Must be invoked when the user is done with mocking for given session (test method).
- finishMocking(Throwable) - Method in class org.mockito.internal.framework.DefaultMockitoSession
- finishMocking(Throwable) - Method in interface org.mockito.MockitoSession
-
Must be invoked when the user is done with mocking for given session (test method).
- firstBound() - Method in interface org.mockito.internal.util.reflection.GenericMetadataSupport.BoundedType
- firstBound() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.TypeVarBoundedType
- firstBound() - Method in class org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
- firstOf(Iterable<T>) - Static method in class org.mockito.internal.util.collections.Iterables
-
Returns first element of provided iterable or fails fast when iterable is empty.
- floatThat(Matcher<Float>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
-
Enables integrating hamcrest matchers that match primitive
float
arguments. - floatThat(ArgumentMatcher<Float>) - Static method in class org.mockito.ArgumentMatchers
-
Allows creating custom
float
argument matchers. - forClass(Class<S>) - Static method in class org.mockito.ArgumentCaptor
-
Build a new
ArgumentCaptor
. - forEachMatcherAndArgument(ArgumentMatcherAction) - Method in class org.mockito.internal.invocation.MatcherApplicationStrategy
-
Applies the given
ArgumentMatcherAction
to all arguments and corresponding matchers - ForEquals() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.ForEquals
- formatUnncessaryStubbingException(Class<?>, Collection<Invocation>) - Static method in class org.mockito.internal.exceptions.Reporter
- ForReadObject() - Constructor for class org.mockito.internal.creation.bytebuddy.MockMethodAdvice.ForReadObject
- ForwardsInvocations - Class in org.mockito.internal.stubbing.defaultanswers
-
Internal answer to forward invocations on a real instance.
- ForwardsInvocations(Object) - Constructor for class org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations
- foundStubCalledWithDifferentArgs(Invocation, InvocationMatcher) - Method in interface org.mockito.internal.debugging.FindingsListener
- foundStubCalledWithDifferentArgs(Invocation, InvocationMatcher) - Method in class org.mockito.internal.debugging.LoggingListener
- foundUnstubbed(InvocationMatcher) - Method in interface org.mockito.internal.debugging.FindingsListener
- foundUnstubbed(InvocationMatcher) - Method in class org.mockito.internal.debugging.LoggingListener
- foundUnusedStub(Invocation) - Method in interface org.mockito.internal.debugging.FindingsListener
- foundUnusedStub(Invocation) - Method in class org.mockito.internal.debugging.LoggingListener
- framework() - Static method in class org.mockito.Mockito
-
For advanced users or framework integrators.
- FriendlyReminderException - Exception Class in org.mockito.exceptions.misusing
- FriendlyReminderException(String) - Constructor for exception class org.mockito.exceptions.misusing.FriendlyReminderException
- FromCallable(Callable<?>) - Constructor for class org.mockito.internal.invocation.RealMethod.FromCallable
- fullyQualifiedNameFor(String) - Method in class org.mockito.internal.reporting.PrintSettings
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form