- AbstractMockitoMethodProxy - Class in org.mockito.internal.creation
-
- AbstractMockitoMethodProxy() - Constructor for class org.mockito.internal.creation.AbstractMockitoMethodProxy
-
- AccessibilityChanger - Class in org.mockito.internal.util.reflection
-
- AccessibilityChanger() - Constructor for class org.mockito.internal.util.reflection.AccessibilityChanger
-
- add(Object) - Method in class org.mockito.internal.util.IdentitySet
-
- add(Invocation) - Method in class org.mockito.internal.verification.RegisteredInvocations
-
- addAnswer(Answer) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- addAnswer(Answer, boolean) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- addAnswer(Answer) - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
-
- addAnswerForVoidMethod(Answer) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- addConsecutiveAnswer(Answer) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- AdditionalMatchers - Class in org.mockito
-
See
Matchers
for general info about matchers.
- AdditionalMatchers() - Constructor for class org.mockito.AdditionalMatchers
-
- AllInvocationsFinder - Class in org.mockito.internal.invocation.finder
-
- AllInvocationsFinder() - Constructor for class org.mockito.internal.invocation.finder.AllInvocationsFinder
-
- and(boolean, boolean) - Static method in class org.mockito.AdditionalMatchers
-
boolean argument that matches both given matchers.
- and(byte, byte) - Static method in class org.mockito.AdditionalMatchers
-
byte argument that matches both given argument matchers.
- and(char, char) - Static method in class org.mockito.AdditionalMatchers
-
char argument that matches both given argument matchers.
- and(double, double) - Static method in class org.mockito.AdditionalMatchers
-
double argument that matches both given argument matchers.
- and(float, float) - Static method in class org.mockito.AdditionalMatchers
-
float argument that matches both given argument matchers.
- and(int, int) - Static method in class org.mockito.AdditionalMatchers
-
int argument that matches both given argument matchers.
- and(long, long) - Static method in class org.mockito.AdditionalMatchers
-
long argument that matches both given argument matchers.
- and(short, short) - Static method in class org.mockito.AdditionalMatchers
-
short argument that matches both given argument matchers.
- and(T, T) - Static method in class org.mockito.AdditionalMatchers
-
Object argument that matches both given argument matchers.
- And - Class in org.mockito.internal.matchers
-
- And(List<Matcher>) - Constructor for class org.mockito.internal.matchers.And
-
- AnnotationEngine - Interface in org.mockito.configuration
-
Configures mock creation logic behind @Mock, @Captor and @Spy annotations
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.AnswerReturnValuesAdapter
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.CallsRealMethods
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.ClonesArguments
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.DoesNothing
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.Returns
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.ThrowsException
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.ThrowsExceptionClass
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.GloballyConfiguredAnswer
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsMocks
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsMoreEmptyValues
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls
-
- answer(InvocationOnMock) - Method in class org.mockito.internal.stubbing.StubbedInvocationMatcher
-
- Answer<T> - Interface in org.mockito.stubbing
-
Generic interface to be used for configuring mock's answer.
- answer(InvocationOnMock) - Method in interface org.mockito.stubbing.Answer
-
- answer(InvocationOnMock) - Method in class org.mockito.stubbing.answers.ReturnsElementsOf
-
- AnswerReturnValuesAdapter - Class in org.mockito.internal.stubbing.answers
-
- AnswerReturnValuesAdapter(ReturnValues) - Constructor for class org.mockito.internal.stubbing.answers.AnswerReturnValuesAdapter
-
- Answers - Enum in org.mockito
-
Enumeration of pre-configured mock answers
- Answers - Enum in org.mockito.internal.stubbing.defaultanswers
-
- AnswersValidator - Class in org.mockito.internal.stubbing.answers
-
- AnswersValidator() - Constructor for class org.mockito.internal.stubbing.answers.AnswersValidator
-
- Any - Class in org.mockito.internal.matchers
-
- ANY - Static variable in class org.mockito.internal.matchers.Any
-
- any(Class<T>) - Static method in class org.mockito.Matchers
-
Any kind object, not necessary of the given class.
- any() - Static method in class org.mockito.Matchers
-
Any object or null
.
- ANY_VARARG - Static variable in class org.mockito.internal.matchers.AnyVararg
-
- anyBoolean() - Static method in class org.mockito.Matchers
-
Any boolean
, Boolean
or null
.
- anyByte() - Static method in class org.mockito.Matchers
-
Any byte
, Byte
or null
.
- anyChar() - Static method in class org.mockito.Matchers
-
Any char
, Character
or null
.
- anyCollection() - Static method in class org.mockito.Matchers
-
Any Collection
or null
.
- anyCollectionOf(Class<T>) - Static method in class org.mockito.Matchers
-
- anyDouble() - Static method in class org.mockito.Matchers
-
Any double
, Double
or null
.
- anyFloat() - Static method in class org.mockito.Matchers
-
Any float
, Float
or null
.
- anyInt() - Static method in class org.mockito.Matchers
-
Any int, Integer or null
.
- anyList() - Static method in class org.mockito.Matchers
-
Any List
or null
.
- anyListOf(Class<T>) - Static method in class org.mockito.Matchers
-
- anyLong() - Static method in class org.mockito.Matchers
-
Any long
, Long
or null
.
- anyMap() - Static method in class org.mockito.Matchers
-
Any Map
or null
.
- anyMapOf(Class<K>, Class<V>) - Static method in class org.mockito.Matchers
-
- anyObject() - Static method in class org.mockito.Matchers
-
Any Object
or null
.
- anySet() - Static method in class org.mockito.Matchers
-
Any Set
or null
.
- anySetOf(Class<T>) - Static method in class org.mockito.Matchers
-
- anyShort() - Static method in class org.mockito.Matchers
-
Any short
, Short
or null
.
- anyString() - Static method in class org.mockito.Matchers
-
Any String
or null
.
- AnyVararg - Class in org.mockito.internal.matchers
-
- AnyVararg() - Constructor for class org.mockito.internal.matchers.AnyVararg
-
- anyVararg() - Static method in class org.mockito.Matchers
-
Any vararg, meaning any number and values of arguments.
- appendWarnings(Failure, String) - Method in class org.mockito.internal.util.junit.JUnitFailureHacker
-
- apply() - Method in class org.mockito.internal.configuration.injection.MockInjection.OngoingMockInjection
-
- areEqual(Object, Object) - Static method in class org.mockito.internal.matchers.Equality
-
- argThat(Matcher<T>) - Static method in class org.mockito.Matchers
-
Allows creating custom argument matchers.
- ArgumentCaptor<T> - Class in org.mockito
-
Use it to capture argument values for further assertions.
- ArgumentCaptor() - Constructor for class org.mockito.ArgumentCaptor
-
- ArgumentMatcher<T> - Class in org.mockito
-
Allows creating customized argument matchers.
- ArgumentMatcher() - Constructor for class org.mockito.ArgumentMatcher
-
- ArgumentMatcherStorage - Interface in org.mockito.internal.progress
-
- ArgumentMatcherStorageImpl - Class in org.mockito.internal.progress
-
- ArgumentMatcherStorageImpl() - Constructor for class org.mockito.internal.progress.ArgumentMatcherStorageImpl
-
- ArgumentMatchingTool - Class in org.mockito.internal.verification.argumentmatching
-
- ArgumentMatchingTool() - Constructor for class org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
-
- argumentsAreDifferent(String, String, Location) - Method in class org.mockito.exceptions.Reporter
-
- ArgumentsAreDifferent - Error in org.mockito.exceptions.verification
-
- ArgumentsAreDifferent(String) - Constructor for error org.mockito.exceptions.verification.ArgumentsAreDifferent
-
- ArgumentsAreDifferent - Error in org.mockito.exceptions.verification.junit
-
- ArgumentsAreDifferent(String, String, String) - Constructor for error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
-
- ArgumentsComparator - Class in org.mockito.internal.invocation
-
- ArgumentsComparator() - Constructor for class org.mockito.internal.invocation.ArgumentsComparator
-
- argumentsMatch(InvocationMatcher, Invocation) - Method in class org.mockito.internal.invocation.ArgumentsComparator
-
- argumentsMatch(InvocationMatcher, Object[]) - Method in class org.mockito.internal.invocation.ArgumentsComparator
-
- argumentsToMatchers() - Method in class org.mockito.internal.invocation.Invocation
-
- ArrayEquals - Class in org.mockito.internal.matchers
-
- ArrayEquals(Object) - Constructor for class org.mockito.internal.matchers.ArrayEquals
-
- ArrayUtils - Class in org.mockito.internal.util
-
- ArrayUtils() - Constructor for class org.mockito.internal.util.ArrayUtils
-
- aryEq(T[]) - Static method in class org.mockito.AdditionalMatchers
-
Object array argument that is equal to the given array, i.e.
- aryEq(short[]) - Static method in class org.mockito.AdditionalMatchers
-
short array argument that is equal to the given array, i.e.
- aryEq(long[]) - Static method in class org.mockito.AdditionalMatchers
-
long array argument that is equal to the given array, i.e.
- aryEq(int[]) - Static method in class org.mockito.AdditionalMatchers
-
int array argument that is equal to the given array, i.e.
- aryEq(float[]) - Static method in class org.mockito.AdditionalMatchers
-
float array argument that is equal to the given array, i.e.
- aryEq(double[]) - Static method in class org.mockito.AdditionalMatchers
-
double array argument that is equal to the given array, i.e.
- aryEq(char[]) - Static method in class org.mockito.AdditionalMatchers
-
char array argument that is equal to the given array, i.e.
- aryEq(byte[]) - Static method in class org.mockito.AdditionalMatchers
-
byte array argument that is equal to the given array, i.e.
- aryEq(boolean[]) - Static method in class org.mockito.AdditionalMatchers
-
boolean array argument that is equal to the given array, i.e.
- AtLeast - Class in org.mockito.internal.verification
-
- AtLeast(int) - Constructor for class org.mockito.internal.verification.AtLeast
-
- atLeast(int) - Static method in class org.mockito.internal.verification.VerificationModeFactory
-
- atLeast(int) - Static method in class org.mockito.Mockito
-
Allows at-least-x verification.
- atLeast(int) - Method in class org.mockito.verification.Timeout
-
- atLeast(int) - Method in interface org.mockito.verification.VerificationWithTimeout
-
Allows at-least-x verification withing given timeout.
- AtLeastDiscrepancy - Class in org.mockito.internal.verification.checkers
-
- AtLeastDiscrepancy(int, int) - Constructor for class org.mockito.internal.verification.checkers.AtLeastDiscrepancy
-
- atLeastOnce() - Static method in class org.mockito.internal.verification.VerificationModeFactory
-
- atLeastOnce() - Static method in class org.mockito.Mockito
-
Allows at-least-once verification.
- atLeastOnce() - Method in class org.mockito.verification.Timeout
-
- atLeastOnce() - Method in interface org.mockito.verification.VerificationWithTimeout
-
Allows at-least-once verification withing given timeout.
- AtLeastXNumberOfInvocationsChecker - Class in org.mockito.internal.verification.checkers
-
- AtLeastXNumberOfInvocationsChecker() - Constructor for class org.mockito.internal.verification.checkers.AtLeastXNumberOfInvocationsChecker
-
- AtLeastXNumberOfInvocationsInOrderChecker - Class in org.mockito.internal.verification.checkers
-
- AtLeastXNumberOfInvocationsInOrderChecker(InOrderContext) - Constructor for class org.mockito.internal.verification.checkers.AtLeastXNumberOfInvocationsInOrderChecker
-
- AtMost - Class in org.mockito.internal.verification
-
- AtMost(int) - Constructor for class org.mockito.internal.verification.AtMost
-
- atMost(int) - Static method in class org.mockito.internal.verification.VerificationModeFactory
-
- atMost(int) - Static method in class org.mockito.Mockito
-
Allows at-most-x verification.
- atMost(int) - Method in class org.mockito.verification.Timeout
-
- atMost(int) - Method in interface org.mockito.verification.VerificationWithTimeout
-
- atMostShouldNotBeUsedWithTimeout() - Method in class org.mockito.exceptions.Reporter
-
- enableAccess(AccessibleObject) - Method in class org.mockito.internal.util.reflection.AccessibilityChanger
-
changes the accessibleObject accessibility and returns true if accessibility was changed
- EndsWith - Class in org.mockito.internal.matchers
-
- EndsWith(String) - Constructor for class org.mockito.internal.matchers.EndsWith
-
- endsWith(String) - Static method in class org.mockito.Matchers
-
String
argument that ends with the given suffix.
- eq(double, double) - Static method in class org.mockito.AdditionalMatchers
-
double argument that has an absolute difference to the given value that
is less than the given delta details.
- eq(float, float) - Static method in class org.mockito.AdditionalMatchers
-
float argument that has an absolute difference to the given value that is
less than the given delta details.
- eq(boolean) - Static method in class org.mockito.Matchers
-
boolean
argument that is equal to the given value.
- eq(byte) - Static method in class org.mockito.Matchers
-
byte
argument that is equal to the given value.
- eq(char) - Static method in class org.mockito.Matchers
-
char
argument that is equal to the given value.
- eq(double) - Static method in class org.mockito.Matchers
-
double
argument that is equal to the given value.
- eq(float) - Static method in class org.mockito.Matchers
-
float
argument that is equal to the given value.
- eq(int) - Static method in class org.mockito.Matchers
-
int
argument that is equal to the given value.
- eq(long) - Static method in class org.mockito.Matchers
-
long
argument that is equal to the given value.
- eq(short) - Static method in class org.mockito.Matchers
-
short
argument that is equal to the given value.
- eq(T) - Static method in class org.mockito.Matchers
-
Object argument that is equal to the given value.
- Equality - Class in org.mockito.internal.matchers
-
- Equality() - Constructor for class org.mockito.internal.matchers.Equality
-
- equals(Object) - Method in class org.mockito.internal.creation.DelegatingMethod
-
- equals(Object) - Method in class org.mockito.internal.invocation.Invocation
-
- equals(Object) - Method in class org.mockito.internal.invocation.SerializableMethod
-
- equals(Object) - Method in class org.mockito.internal.listeners.NotifiedMethodInvocationReport
-
- Equals - Class in org.mockito.internal.matchers
-
- Equals(Object) - Constructor for class org.mockito.internal.matchers.Equals
-
- equals(Object) - Method in class org.mockito.internal.matchers.Equals
-
- EqualsWithDelta - Class in org.mockito.internal.matchers
-
- EqualsWithDelta(Number, Number) - Constructor for class org.mockito.internal.matchers.EqualsWithDelta
-
- ExceptionIncludingMockitoWarnings - Exception in org.mockito.internal.exceptions
-
- ExceptionIncludingMockitoWarnings(String, Throwable) - Constructor for exception org.mockito.internal.exceptions.ExceptionIncludingMockitoWarnings
-
- extraInterfaces(Class<?>...) - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- extraInterfaces(Class<?>...) - Method in interface org.mockito.MockSettings
-
Specifies extra interfaces the mock should implement.
- extraInterfacesAcceptsOnlyInterfaces(Class<?>) - Method in class org.mockito.exceptions.Reporter
-
- extraInterfacesCannotContainMockedType(Class<?>) - Method in class org.mockito.exceptions.Reporter
-
- extraInterfacesDoesNotAcceptNullParameters() - Method in class org.mockito.exceptions.Reporter
-
- extraInterfacesRequiresAtLeastOneInterface() - Method in class org.mockito.exceptions.Reporter
-
- extraTypeInfoFor(int) - Method in class org.mockito.internal.reporting.PrintSettings
-
- fieldClass() - Method in class org.mockito.internal.util.reflection.FieldInitializationReport
-
- FieldCopier - Class in org.mockito.internal.util.reflection
-
- FieldCopier() - Constructor for class org.mockito.internal.util.reflection.FieldCopier
-
- fieldInitialisationThrewException(Field, Throwable) - Method in class org.mockito.exceptions.Reporter
-
- FieldInitializationReport - Class in org.mockito.internal.util.reflection
-
- FieldInitializationReport(Object, 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
-
- FieldReader - Class in org.mockito.internal.util.reflection
-
- FieldReader(Object, Field) - Constructor for class org.mockito.internal.util.reflection.FieldReader
-
- FieldSetter - Class in org.mockito.internal.util.reflection
-
- FieldSetter(Object, Field) - Constructor for class org.mockito.internal.util.reflection.FieldSetter
-
- fieldWasInitialized() - Method in class org.mockito.internal.util.reflection.FieldInitializationReport
-
- filter(Throwable) - Method in class org.mockito.internal.exceptions.base.ConditionalStackTraceFilter
-
- filter(StackTraceElement[], boolean) - Method in class org.mockito.internal.exceptions.base.StackTraceFilter
-
Example how the filter works (+/- means good/bad):
[a+, b+, c-, d+, e+, f-, g+] -> [a+, b+, g+]
Basically removes all bad from the middle.
- filter(Filter) - Method in class org.mockito.internal.runners.JUnit44RunnerImpl
-
- filter(Filter) - Method in class org.mockito.internal.runners.JUnit45AndHigherRunnerImpl
-
- filter(Collection<T>, ListUtil.Filter<T>) - Static method in class org.mockito.internal.util.ListUtil
-
- filter(Filter) - Method in class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
-
- filter(Filter) - Method in class org.mockito.runners.MockitoJUnitRunner
-
- filter(Filter) - Method in class org.mockito.runners.VerboseMockitoJUnitRunner
-
- filterCandidate(Collection<Object>, Field, Object) - Method in class org.mockito.internal.configuration.injection.filter.FinalMockCandidateFilter
-
- filterCandidate(Collection<Object>, Field, Object) - Method in interface org.mockito.internal.configuration.injection.filter.MockCandidateFilter
-
- filterCandidate(Collection<Object>, Field, Object) - Method in class org.mockito.internal.configuration.injection.filter.NameBasedCandidateFilter
-
- filterCandidate(Collection<Object>, Field, Object) - Method in class org.mockito.internal.configuration.injection.filter.TypeBasedCandidateFilter
-
- FilteredCGLIBProxyRealMethod - Class in org.mockito.internal.invocation.realmethod
-
- FilteredCGLIBProxyRealMethod(MockitoMethodProxy) - Constructor for class org.mockito.internal.invocation.realmethod.FilteredCGLIBProxyRealMethod
-
- FilteredCGLIBProxyRealMethod(RealMethod) - Constructor for class org.mockito.internal.invocation.realmethod.FilteredCGLIBProxyRealMethod
-
- FinalMockCandidateFilter - Class in org.mockito.internal.configuration.injection.filter
-
This node returns an actual injecter which will be either :
an
OngoingInjecter
that do nothing if a candidate couldn't be found
an
OngoingInjecter
that will try to inject the candidate trying first the property setter then if not possible try the field access
- FinalMockCandidateFilter() - Constructor for class org.mockito.internal.configuration.injection.filter.FinalMockCandidateFilter
-
- find(String) - Static method in class org.mockito.AdditionalMatchers
-
String argument that contains a substring that matches the given regular
expression.
- find(FindingsListener) - Method in class org.mockito.internal.debugging.WarningsFinder
-
- find(List<?>) - Method in class org.mockito.internal.invocation.finder.AllInvocationsFinder
-
gets all invocations from mocks.
- find(List<?>) - Method in class org.mockito.internal.invocation.finder.VerifiableInvocationsFinder
-
- find(List<?>) - Method in class org.mockito.internal.invocation.UnusedStubsFinder
-
Finds all unused stubs for given mocks
- Find - Class in org.mockito.internal.matchers
-
- Find(String) - Constructor for class org.mockito.internal.matchers.Find
-
- findAllMatchingUnverifiedChunks(List<Invocation>, InvocationMatcher, InOrderContext) - Method in class org.mockito.internal.invocation.InvocationsFinder
-
- findAnswerFor(Invocation) - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- findClass(String) - Method in class org.mockito.internal.creation.jmock.SearchingClassLoader
-
- findFirstUnverified(List<Invocation>) - Method in class org.mockito.internal.invocation.InvocationsFinder
-
- findFirstUnverifiedInOrder(InOrderContext, List<Invocation>) - 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>, InvocationMatcher) - Method in class org.mockito.internal.invocation.InvocationsFinder
-
- findMatchingChunk(List<Invocation>, InvocationMatcher, int, InOrderContext) - 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) - Method in class org.mockito.internal.invocation.InvocationsFinder
-
- findSimilarInvocation(List<Invocation>, InvocationMatcher) - Method in class org.mockito.internal.invocation.InvocationsFinder
-
- floatThat(Matcher<Float>) - Static method in class org.mockito.Matchers
-
Allows creating custom Float
argument matchers.
- forClass(Class<T>) - Static method in class org.mockito.ArgumentCaptor
-
Build a new ArgumentCaptor
.
- 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
-
- FrameworkUsageValidator - Class in org.mockito.internal.runners.util
-
- FrameworkUsageValidator(RunNotifier) - Constructor for class org.mockito.internal.runners.util.FrameworkUsageValidator
-
- FriendlyReminderException - Exception in org.mockito.exceptions.misusing
-
- FriendlyReminderException(String) - Constructor for exception org.mockito.exceptions.misusing.FriendlyReminderException
-
- GenericMaster - Class in org.mockito.internal.util.reflection
-
- GenericMaster() - Constructor for class org.mockito.internal.util.reflection.GenericMaster
-
- geq(Comparable<T>) - Static method in class org.mockito.AdditionalMatchers
-
argument greater than or equal the given value.
- geq(byte) - Static method in class org.mockito.AdditionalMatchers
-
byte argument greater than or equal to the given value.
- geq(double) - Static method in class org.mockito.AdditionalMatchers
-
double argument greater than or equal to the given value.
- geq(float) - Static method in class org.mockito.AdditionalMatchers
-
float argument greater than or equal to the given value.
- geq(int) - Static method in class org.mockito.AdditionalMatchers
-
int argument greater than or equal to the given value.
- geq(long) - Static method in class org.mockito.AdditionalMatchers
-
long argument greater than or equal to the given value.
- geq(short) - Static method in class org.mockito.AdditionalMatchers
-
short argument greater than or equal to the given value.
- get() - Method in enum org.mockito.Answers
-
- get() - Method in enum org.mockito.internal.stubbing.defaultanswers.Answers
-
Deprecated.
- getActual() - Method in class org.mockito.internal.reporting.SmartPrinter
-
- getActualCount() - Method in class org.mockito.exceptions.Discrepancy
-
- getActualMatcher() - Method in class org.mockito.internal.matchers.LocalizedMatcher
-
- getActualMatcher() - Method in interface org.mockito.internal.matchers.MatcherDecorator
-
- getAll() - Method in class org.mockito.internal.verification.RegisteredInvocations
-
- getAllInvocations() - Method in interface org.mockito.internal.verification.api.VerificationData
-
- getAllInvocations() - Method in interface org.mockito.internal.verification.api.VerificationDataInOrder
-
- getAllInvocations() - Method in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
-
- getAllInvocations() - Method in class org.mockito.internal.verification.VerificationDataImpl
-
- getAllValues() - Method in class org.mockito.ArgumentCaptor
-
Returns all captured values.
- getAllValues() - Method in class org.mockito.internal.matchers.CapturingMatcher
-
- getAnnotationEngine() - Method in class org.mockito.configuration.DefaultMockitoConfiguration
-
- getAnnotationEngine() - Method in interface org.mockito.configuration.IMockitoConfiguration
-
Configures annotations for mocks
- getAnnotationEngine() - Method in class org.mockito.internal.configuration.GlobalConfiguration
-
- getArgumentMatcherStorage() - Method in interface org.mockito.internal.progress.MockingProgress
-
- getArgumentMatcherStorage() - Method in class org.mockito.internal.progress.MockingProgressImpl
-
- getArgumentMatcherStorage() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
-
- getArguments() - Method in class org.mockito.internal.invocation.Invocation
-
- getArguments() - Method in interface org.mockito.invocation.InvocationOnMock
-
returns arguments passed to the method
- getArgumentsBlock(List<Matcher>, PrintSettings) - Method in class org.mockito.internal.matchers.MatchersPrinter
-
- getArgumentsCount() - Method in class org.mockito.internal.invocation.Invocation
-
- getArgumentsLine(List<Matcher>, PrintSettings) - Method in class org.mockito.internal.matchers.MatchersPrinter
-
- getDefaultAnswer() - Method in class org.mockito.configuration.DefaultMockitoConfiguration
-
- getDefaultAnswer() - Method in interface org.mockito.configuration.IMockitoConfiguration
-
Allows configuring the default answers of unstubbed invocations
- getDefaultAnswer() - Method in class org.mockito.internal.configuration.GlobalConfiguration
-
- getDefaultAnswer() - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- getDelegate() - Method in class org.mockito.internal.verification.VerificationWithTimeoutImpl
-
- getDescription() - Method in class org.mockito.internal.runners.JUnit44RunnerImpl
-
- getDescription() - Method in class org.mockito.internal.runners.JUnit45AndHigherRunnerImpl
-
- getDescription() - Method in interface org.mockito.internal.runners.RunnerImpl
-
- getDescription() - Method in class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
-
- getDescription() - Method in class org.mockito.runners.MockitoJUnitRunner
-
- getDescription() - Method in class org.mockito.runners.VerboseMockitoJUnitRunner
-
- getExceptionTypes() - Method in class org.mockito.internal.creation.DelegatingMethod
-
- getExceptionTypes() - Method in interface org.mockito.internal.invocation.MockitoMethod
-
- getExceptionTypes() - Method in class org.mockito.internal.invocation.SerializableMethod
-
- getExtraInterfaces() - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- getGenericType(Field) - Method in class org.mockito.internal.util.reflection.GenericMaster
-
Finds the generic type (parametrized type) of the field.
- getHandler() - Method in class org.mockito.internal.creation.MethodInterceptorFilter
-
- getInternalState(Object, String) - Static method in class org.mockito.internal.util.reflection.Whitebox
-
- getInvocation() - Method in class org.mockito.internal.invocation.InvocationMatcher
-
- getInvocation() - Method in class org.mockito.internal.listeners.NotifiedMethodInvocationReport
-
- getInvocation() - Method in interface org.mockito.listeners.MethodInvocationReport
-
- getInvocationContainer() - Method in class org.mockito.internal.InvocationNotifierHandler
-
- getInvocationContainer() - Method in class org.mockito.internal.MockHandler
-
- getInvocationContainer() - Method in interface org.mockito.internal.MockHandlerInterface
-
- getInvocationListeners() - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- getInvocations() - Method in interface org.mockito.internal.stubbing.InvocationContainer
-
- getInvocations() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- getJavaMethod() - Method in class org.mockito.internal.creation.DelegatingMethod
-
- getJavaMethod() - Method in interface org.mockito.internal.invocation.MockitoMethod
-
- getJavaMethod() - Method in class org.mockito.internal.invocation.SerializableMethod
-
- getLastInvocation() - Method in class org.mockito.internal.MockitoCore
-
For testing purposes only.
- getLastLocation(List<Invocation>) - Method in class org.mockito.internal.invocation.InvocationsFinder
-
- getLastValue() - Method in class org.mockito.internal.matchers.CapturingMatcher
-
- getLocation() - Method in interface org.mockito.exceptions.PrintableInvocation
-
- getLocation() - Method in class org.mockito.internal.debugging.Localized
-
- getLocation() - Method in class org.mockito.internal.invocation.Invocation
-
- getLocation() - Method in class org.mockito.internal.invocation.InvocationMatcher
-
- getLocation() - Method in class org.mockito.internal.matchers.LocalizedMatcher
-
- getLocationOfStubbing() - Method in class org.mockito.internal.listeners.NotifiedMethodInvocationReport
-
- getLocationOfStubbing() - Method in interface org.mockito.listeners.MethodInvocationReport
-
- getLoggedInfo() - Method in class org.mockito.internal.util.SimpleMockitoLogger
-
- getLogger() - Method in class org.mockito.internal.debugging.LoggingListener
-
- getMatchers() - Method in class org.mockito.internal.invocation.InvocationMatcher
-
- getMessage() - Method in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
-
- getMethod() - Method in class org.mockito.internal.invocation.Invocation
-
- getMethod() - Method in class org.mockito.internal.invocation.InvocationMatcher
-
- getMethod() - Method in interface org.mockito.invocation.InvocationOnMock
-
returns the method
- getMethodName() - Method in class org.mockito.internal.invocation.Invocation
-
- getMethodProxy() - Method in class org.mockito.internal.creation.DelegatingMockitoMethodProxy
-
- getMethodProxy() - Method in interface org.mockito.internal.creation.MockitoMethodProxy
-
- getMethodProxy() - Method in class org.mockito.internal.creation.SerializableMockitoMethodProxy
-
- getMethodProxy() - Method in class org.mockito.internal.invocation.realmethod.CGLIBProxyRealMethod
-
- getMethodProxy() - Method in class org.mockito.internal.invocation.realmethod.FilteredCGLIBProxyRealMethod
-
- getMethodProxy() - Method in interface org.mockito.internal.invocation.realmethod.HasCGLIBMethodProxy
-
- getMock() - Method in interface org.mockito.BDDMockito.BDDMyOngoingStubbing
-
- getMock() - Method in class org.mockito.BDDMockito.BDDOngoingStubbingImpl
-
- getMock() - Method in class org.mockito.internal.invocation.Invocation
-
- getMock() - Method in class org.mockito.internal.stubbing.ConsecutiveStubbing
-
- getMock() - Method in class org.mockito.internal.stubbing.OngoingStubbingImpl
-
- getMock() - Method in class org.mockito.internal.verification.MockAwareVerificationMode
-
- getMock() - Method in interface org.mockito.invocation.InvocationOnMock
-
returns the mock object
- getMock() - Method in interface org.mockito.stubbing.OngoingStubbing
-
Returns the mock that was used for this stub.
- getMockHandler(T) - Method in class org.mockito.internal.util.MockUtil
-
- getMockName() - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- getMockName(Object) - Method in class org.mockito.internal.util.MockUtil
-
- getMockSettings() - Method in class org.mockito.internal.InvocationNotifierHandler
-
- getMockSettings() - Method in class org.mockito.internal.MockHandler
-
- getMockSettings() - Method in interface org.mockito.internal.MockHandlerInterface
-
- getMocksToBeVerifiedInOrder() - Method in class org.mockito.internal.InOrderImpl
-
- getName() - Method in class org.mockito.internal.creation.DelegatingMethod
-
- getName() - Method in interface org.mockito.internal.invocation.MockitoMethod
-
- getName() - Method in class org.mockito.internal.invocation.SerializableMethod
-
- getName() - Method in class org.mockito.internal.matchers.CompareEqual
-
- getName() - Method in class org.mockito.internal.matchers.CompareTo
-
- getName() - Method in class org.mockito.internal.matchers.GreaterOrEqual
-
- getName() - Method in class org.mockito.internal.matchers.GreaterThan
-
- getName() - Method in class org.mockito.internal.matchers.LessOrEqual
-
- getName() - Method in class org.mockito.internal.matchers.LessThan
-
- getObject() - Method in class org.mockito.internal.debugging.Localized
-
- getOrderingContext() - Method in interface org.mockito.internal.verification.api.VerificationDataInOrder
-
- getOrderingContext() - Method in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
-
- getParameterTypes() - Method in class org.mockito.internal.creation.DelegatingMethod
-
- getParameterTypes() - Method in interface org.mockito.internal.invocation.MockitoMethod
-
- getParameterTypes() - Method in class org.mockito.internal.invocation.SerializableMethod
-
- getPluralizedActualCount() - Method in class org.mockito.exceptions.Discrepancy
-
- getPluralizedWantedCount() - Method in class org.mockito.exceptions.Discrepancy
-
- getPluralizedWantedCount() - Method in class org.mockito.internal.verification.checkers.AtLeastDiscrepancy
-
- getRawArguments() - Method in class org.mockito.internal.invocation.Invocation
-
- getRegisteredInvocations() - Method in class org.mockito.internal.stubbing.OngoingStubbingImpl
-
- getReturnedValue() - Method in class org.mockito.internal.listeners.NotifiedMethodInvocationReport
-
- getReturnedValue() - Method in interface org.mockito.listeners.MethodInvocationReport
-
- getReturnType() - Method in class org.mockito.internal.creation.DelegatingMethod
-
- getReturnType() - Method in interface org.mockito.internal.invocation.MockitoMethod
-
- getReturnType() - Method in class org.mockito.internal.invocation.SerializableMethod
-
- getReturnType() - Method in class org.mockito.internal.stubbing.answers.Returns
-
- getReturnValues() - Method in class org.mockito.configuration.DefaultMockitoConfiguration
-
Deprecated.
- getReturnValues() - Method in interface org.mockito.configuration.IMockitoConfiguration
-
- getReturnValues() - Method in class org.mockito.internal.configuration.GlobalConfiguration
-
- getSequenceNumber() - Method in class org.mockito.internal.invocation.Invocation
-
- getSpiedInstance() - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- getStubbedInvocations() - Method in interface org.mockito.internal.stubbing.InvocationContainer
-
- getStubbedInvocations() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- getSuspiciouslyNotMatchingArgsIndexes(List<Matcher>, Object[]) - Method in class org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
-
Suspiciously not matching arguments are those that don't match, the toString() representation is the same but types are different.
- getTag() - Method in class org.mockito.internal.creation.cglib.MockitoNamingPolicy
-
- getThrowable() - Method in class org.mockito.internal.listeners.NotifiedMethodInvocationReport
-
- getThrowable() - Method in class org.mockito.internal.stubbing.answers.ThrowsException
-
- getThrowable() - Method in interface org.mockito.listeners.MethodInvocationReport
-
- getThrowableClass() - Method in class org.mockito.internal.stubbing.answers.ThrowsExceptionClass
-
- getTimeout() - Method in class org.mockito.internal.verification.VerificationWithTimeoutImpl
-
- getTreshhold() - Method in class org.mockito.internal.verification.VerificationWithTimeoutImpl
-
- getUnfilteredStackTrace() - Method in error org.mockito.exceptions.base.MockitoAssertionError
-
- getUnfilteredStackTrace() - Method in exception org.mockito.exceptions.base.MockitoException
-
- getUnfilteredStackTrace() - Method in error org.mockito.exceptions.verification.junit.ArgumentsAreDifferent
-
- getValue() - Method in class org.mockito.ArgumentCaptor
-
Returns the captured value of the argument.
- getWanted() - Method in class org.mockito.internal.matchers.Equals
-
- getWanted() - Method in class org.mockito.internal.reporting.SmartPrinter
-
- getWanted() - Method in interface org.mockito.internal.verification.api.VerificationData
-
- getWanted() - Method in interface org.mockito.internal.verification.api.VerificationDataInOrder
-
- getWanted() - Method in class org.mockito.internal.verification.api.VerificationDataInOrderImpl
-
- getWanted() - Method in class org.mockito.internal.verification.VerificationDataImpl
-
- getWantedCount() - Method in class org.mockito.exceptions.Discrepancy
-
- getWarnings() - Method in class org.mockito.internal.debugging.WarningsCollector
-
- given(T) - Method in interface org.mockito.BDDMockito.BDDStubber
-
- given(T) - Method in class org.mockito.BDDMockito.BDDStubberImpl
-
- given(T) - Static method in class org.mockito.BDDMockito
-
- GlobalConfiguration - Class in org.mockito.internal.configuration
-
Thread-safe wrapper on user-defined org.mockito.configuration.MockitoConfiguration implementation
- GlobalConfiguration() - Constructor for class org.mockito.internal.configuration.GlobalConfiguration
-
- GloballyConfiguredAnswer - Class in org.mockito.internal.stubbing.defaultanswers
-
Globally configured Answer.
- GloballyConfiguredAnswer() - Constructor for class org.mockito.internal.stubbing.defaultanswers.GloballyConfiguredAnswer
-
- GreaterOrEqual<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
-
- GreaterOrEqual(Comparable<T>) - Constructor for class org.mockito.internal.matchers.GreaterOrEqual
-
- GreaterThan<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
-
- GreaterThan(Comparable<T>) - Constructor for class org.mockito.internal.matchers.GreaterThan
-
- gt(Comparable<T>) - Static method in class org.mockito.AdditionalMatchers
-
comparable argument greater than the given value.
- gt(byte) - Static method in class org.mockito.AdditionalMatchers
-
byte argument greater than the given value.
- gt(double) - Static method in class org.mockito.AdditionalMatchers
-
double argument greater than the given value.
- gt(float) - Static method in class org.mockito.AdditionalMatchers
-
float argument greater than the given value.
- gt(int) - Static method in class org.mockito.AdditionalMatchers
-
int argument greater than the given value.
- gt(long) - Static method in class org.mockito.AdditionalMatchers
-
long argument greater than the given value.
- gt(short) - Static method in class org.mockito.AdditionalMatchers
-
short argument greater than the given value.
- IdentitySet - Class in org.mockito.internal.util
-
- IdentitySet() - Constructor for class org.mockito.internal.util.IdentitySet
-
- ignoreForVerification() - Method in class org.mockito.internal.invocation.Invocation
-
- ignoreStubs(Object...) - Method in class org.mockito.internal.MockitoCore
-
- ignoreStubs(Object...) - Static method in class org.mockito.Mockito
-
Ignores stubbed methods of given mocks for the sake of verification.
- IMockitoConfiguration - Interface in org.mockito.configuration
-
Use it to configure Mockito.
- imposterise(MethodInterceptor, Class<T>, Class<?>...) - Method in class org.mockito.internal.creation.jmock.ClassImposterizer
-
- incorrectUseOfApi() - Method in class org.mockito.exceptions.Reporter
-
- initialize() - Method in class org.mockito.internal.util.reflection.FieldInitializer
-
Initialize field if no initialized and return the actual instance.
- initiateMockName(Class) - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- initMocks(Object) - Static method in class org.mockito.MockitoAnnotations
-
- InjectingAnnotationEngine - Class in org.mockito.internal.configuration
-
- InjectingAnnotationEngine() - Constructor for class org.mockito.internal.configuration.InjectingAnnotationEngine
-
- InjectMocks - Annotation Type in org.mockito
-
Allows shorthand mock and spy injection.
Minimizes repetitive mock and spy injection.
- injectMocks(Object) - Method in class org.mockito.internal.configuration.InjectingAnnotationEngine
-
Initializes mock/spies dependencies for objects annotated with
@InjectMocks for given testClass.
- injectMocksOnFields(Set<Field>, Set<Object>, Object) - Method in class org.mockito.internal.configuration.DefaultInjectionEngine
-
- InOrder - Interface in org.mockito
-
Allows verification in order.
- inOrder(Object...) - Method in class org.mockito.internal.MockitoCore
-
- inOrder(Object...) - Static method in class org.mockito.Mockito
-
Creates
InOrder
object that allows verifying mocks in order.
- InOrderContext - Interface in org.mockito.internal.verification.api
-
- InOrderContextImpl - Class in org.mockito.internal.verification
-
- InOrderContextImpl() - Constructor for class org.mockito.internal.verification.InOrderContextImpl
-
- InOrderImpl - Class in org.mockito.internal
-
Allows verifying in order.
- InOrderImpl(List<Object>) - Constructor for class org.mockito.internal.InOrderImpl
-
- inOrderRequiresFamiliarMock() - Method in class org.mockito.exceptions.Reporter
-
- InOrderWrapper - Class in org.mockito.internal.verification
-
- InOrderWrapper(VerificationInOrderMode, InOrderImpl) - Constructor for class org.mockito.internal.verification.InOrderWrapper
-
- INSTANCE - Static variable in class org.mockito.internal.creation.cglib.MockitoNamingPolicy
-
- INSTANCE - Static variable in class org.mockito.internal.creation.jmock.ClassImposterizer
-
- InstanceOf - Class in org.mockito.internal.matchers
-
- InstanceOf(Class<?>) - Constructor for class org.mockito.internal.matchers.InstanceOf
-
- intercept(Object, Method, Object[], MethodProxy) - Method in class org.mockito.internal.creation.MethodInterceptorFilter
-
- intThat(Matcher<Integer>) - Static method in class org.mockito.Matchers
-
Allows creating custom Integer
argument matchers.
- invalidUseOfMatchers(int, int) - Method in class org.mockito.exceptions.Reporter
-
- InvalidUseOfMatchersException - Exception in org.mockito.exceptions.misusing
-
- InvalidUseOfMatchersException(String) - Constructor for exception org.mockito.exceptions.misusing.InvalidUseOfMatchersException
-
- InvalidUseOfMatchersException() - Constructor for exception org.mockito.exceptions.misusing.InvalidUseOfMatchersException
-
- Invocation - Class in org.mockito.internal.invocation
-
Method call on a mock object.
- Invocation(Object, MockitoMethod, Object[], int, RealMethod) - Constructor for class org.mockito.internal.invocation.Invocation
-
- InvocationContainer - Interface in org.mockito.internal.stubbing
-
- InvocationContainerImpl - Class in org.mockito.internal.stubbing
-
- InvocationContainerImpl(MockingProgress) - Constructor for class org.mockito.internal.stubbing.InvocationContainerImpl
-
- InvocationListener - Interface in org.mockito.listeners
-
This listener can be notified of method invocations on a mock.
- invocationListenerDoesNotAcceptNullParameters() - Method in class org.mockito.exceptions.Reporter
-
- invocationListeners(InvocationListener...) - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- invocationListeners(InvocationListener...) - Method in interface org.mockito.MockSettings
-
Registers a listener for method invocations on this mock.
- invocationListenersRequiresAtLeastOneListener() - Method in class org.mockito.exceptions.Reporter
-
- invocationListenerThrewException(InvocationListener, Throwable) - Method in class org.mockito.exceptions.Reporter
-
- InvocationMarker - Class in org.mockito.internal.invocation
-
- InvocationMarker() - Constructor for class org.mockito.internal.invocation.InvocationMarker
-
- InvocationMatcher - Class in org.mockito.internal.invocation
-
- InvocationMatcher(Invocation, List<Matcher>) - Constructor for class org.mockito.internal.invocation.InvocationMatcher
-
- InvocationMatcher(Invocation) - Constructor for class org.mockito.internal.invocation.InvocationMatcher
-
- InvocationNotifierHandler<T> - Class in org.mockito.internal
-
Handler, that call all listeners wanted for this mock, before delegating it
to the parameterized handler.
- InvocationNotifierHandler(MockHandler<T>, MockSettingsImpl) - Constructor for class org.mockito.internal.InvocationNotifierHandler
-
- InvocationOnMock - Interface in org.mockito.invocation
-
An invocation on a mock
- InvocationsFinder - Class in org.mockito.internal.invocation
-
- InvocationsFinder() - Constructor for class org.mockito.internal.invocation.InvocationsFinder
-
- invoke(Object, Object[]) - Method in class org.mockito.internal.invocation.realmethod.CGLIBProxyRealMethod
-
- invoke(Object, Object[]) - Method in class org.mockito.internal.invocation.realmethod.FilteredCGLIBProxyRealMethod
-
- invoke(Object, Object[]) - Method in interface org.mockito.internal.invocation.realmethod.RealMethod
-
- invokedMock() - Method in class org.mockito.internal.stubbing.InvocationContainerImpl
-
- invokeSuper(Object, Object[]) - Method in class org.mockito.internal.creation.AbstractMockitoMethodProxy
-
- invokeSuper(Object, Object[]) - Method in interface org.mockito.internal.creation.MockitoMethodProxy
-
- IOngoingStubbing - Interface in org.mockito.internal.progress
-
Marking interface to be removed when DeprecatedOngoingStubbing gets deleted
- isA(Class<T>) - Static method in class org.mockito.Matchers
-
Object
argument that implements the given class.
- isBad(StackTraceElement) - Method in class org.mockito.internal.exceptions.base.StackTraceFilter
-
- isCompareToMethod(Method) - Method in class org.mockito.internal.util.ObjectMethodsGuru
-
- isDeclaredOnInterface() - Method in class org.mockito.internal.invocation.Invocation
-
- isEmpty() - Method in class org.mockito.internal.verification.RegisteredInvocations
-
- isEqualsMethod(Method) - Method in class org.mockito.internal.util.ObjectMethodsGuru
-
- isHashCodeMethod(Method) - Method in class org.mockito.internal.util.ObjectMethodsGuru
-
- isIgnoredForVerification() - Method in class org.mockito.internal.invocation.Invocation
-
- isJUnit45OrHigherAvailable() - Method in class org.mockito.internal.runners.util.RunnerProvider
-
- isMock(Object) - Method in class org.mockito.internal.util.MockUtil
-
- isMultiline() - Method in class org.mockito.internal.reporting.PrintSettings
-
- isNotNull() - Static method in class org.mockito.Matchers
-
Not null
argument.
- isNotNull(Class<T>) - Static method in class org.mockito.Matchers
-
Not null
argument, not necessary of the given class.
- isNull() - Method in class org.mockito.internal.util.reflection.FieldReader
-
- isNull() - Static method in class org.mockito.Matchers
-
null
argument.
- isNull(Class<T>) - Static method in class org.mockito.Matchers
-
null
argument.
- isOut(T) - Method in interface org.mockito.internal.util.ListUtil.Filter
-
- isPrimitiveWrapper(Class<?>) - Static method in class org.mockito.internal.util.Primitives
-
- isSerializable() - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- isSurrogate() - Method in class org.mockito.internal.util.MockName
-
- isToString() - Method in class org.mockito.internal.invocation.Invocation
-
- isToString(Method) - Method in class org.mockito.internal.util.ObjectMethodsGuru
-
- isToString(MockitoMethod) - Method in class org.mockito.internal.util.ObjectMethodsGuru
-
- isTypeMockable(Class<?>) - Method in class org.mockito.internal.util.MockCreationValidator
-
- isValidException(Throwable) - Method in class org.mockito.internal.invocation.Invocation
-
- isValidReturnType(Class) - Method in class org.mockito.internal.invocation.Invocation
-
- isVarArgs() - Method in class org.mockito.internal.creation.DelegatingMethod
-
- isVarArgs() - Method in interface org.mockito.internal.invocation.MockitoMethod
-
- isVarArgs() - Method in class org.mockito.internal.invocation.SerializableMethod
-
- isVerified() - Method in interface org.mockito.internal.exceptions.VerificationAwareInvocation
-
- isVerified(Invocation) - Method in class org.mockito.internal.InOrderImpl
-
- isVerified() - Method in class org.mockito.internal.invocation.Invocation
-
- isVerified(Invocation) - Method in interface org.mockito.internal.verification.api.InOrderContext
-
- isVerified(Invocation) - Method in class org.mockito.internal.verification.InOrderContextImpl
-
- isVoid() - Method in class org.mockito.internal.invocation.Invocation
-
- isWarnAboutUnstubbed() - Method in class org.mockito.internal.debugging.LoggingListener
-
- LenientCopyTool - Class in org.mockito.internal.util.reflection
-
- LenientCopyTool() - Constructor for class org.mockito.internal.util.reflection.LenientCopyTool
-
- leq(Comparable<T>) - Static method in class org.mockito.AdditionalMatchers
-
comparable argument less than or equal the given value details.
- leq(byte) - Static method in class org.mockito.AdditionalMatchers
-
byte argument less than or equal to the given value.
- leq(double) - Static method in class org.mockito.AdditionalMatchers
-
double argument less than or equal to the given value.
- leq(float) - Static method in class org.mockito.AdditionalMatchers
-
float argument less than or equal to the given value.
- leq(int) - Static method in class org.mockito.AdditionalMatchers
-
int argument less than or equal to the given value.
- leq(long) - Static method in class org.mockito.AdditionalMatchers
-
long argument less than or equal to the given value.
- leq(short) - Static method in class org.mockito.AdditionalMatchers
-
short argument less than or equal to the given value.
- LessOrEqual<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
-
- LessOrEqual(Comparable<T>) - Constructor for class org.mockito.internal.matchers.LessOrEqual
-
- LessThan<T extends java.lang.Comparable<T>> - Class in org.mockito.internal.matchers
-
- LessThan(Comparable<T>) - Constructor for class org.mockito.internal.matchers.LessThan
-
- ListUtil - Class in org.mockito.internal.util
-
- ListUtil() - Constructor for class org.mockito.internal.util.ListUtil
-
- ListUtil.Filter<T> - Interface in org.mockito.internal.util
-
- loadConfiguration() - Method in class org.mockito.internal.configuration.ClassPathLoader
-
- Localized<T> - Class in org.mockito.internal.debugging
-
- Localized(T) - Constructor for class org.mockito.internal.debugging.Localized
-
- LocalizedMatcher - Class in org.mockito.internal.matchers
-
- LocalizedMatcher(Matcher) - Constructor for class org.mockito.internal.matchers.LocalizedMatcher
-
- Location - Class in org.mockito.internal.debugging
-
- Location() - Constructor for class org.mockito.internal.debugging.Location
-
- Location(StackTraceFilter) - Constructor for class org.mockito.internal.debugging.Location
-
- log(Object) - Method in class org.mockito.internal.util.ConsoleMockitoLogger
-
- log(Object) - Method in interface org.mockito.internal.util.MockitoLogger
-
- log(Object) - Method in class org.mockito.internal.util.SimpleMockitoLogger
-
- LoggingListener - Class in org.mockito.internal.debugging
-
- LoggingListener(boolean, MockitoLogger) - Constructor for class org.mockito.internal.debugging.LoggingListener
-
- longThat(Matcher<Long>) - Static method in class org.mockito.Matchers
-
Allows creating custom Long
argument matchers.
- lt(Comparable<T>) - Static method in class org.mockito.AdditionalMatchers
-
comparable argument less than the given value.
- lt(byte) - Static method in class org.mockito.AdditionalMatchers
-
byte argument less than the given value.
- lt(double) - Static method in class org.mockito.AdditionalMatchers
-
double argument less than the given value.
- lt(float) - Static method in class org.mockito.AdditionalMatchers
-
float argument less than the given value.
- lt(int) - Static method in class org.mockito.AdditionalMatchers
-
int argument less than the given value.
- lt(long) - Static method in class org.mockito.AdditionalMatchers
-
long argument less than the given value.
- lt(short) - Static method in class org.mockito.AdditionalMatchers
-
short argument less than the given value.
- ObjectMethodsGuru - Class in org.mockito.internal.util
-
- ObjectMethodsGuru() - Constructor for class org.mockito.internal.util.ObjectMethodsGuru
-
- of(String) - Method in class org.mockito.internal.util.RemoveFirstLine
-
- on() - Method in class org.mockito.internal.stubbing.VoidMethodStubbableImpl
-
- on() - Method in interface org.mockito.stubbing.VoidMethodStubbable
-
Choose void method for stubbing.
- onField(Field, Object) - Static method in class org.mockito.internal.configuration.injection.MockInjection
-
Create a new configuration setup for a field
- onFields(Set<Field>, Object) - Static method in class org.mockito.internal.configuration.injection.MockInjection
-
Create a new configuration setup for fields
- OngoingInjecter - Interface in org.mockito.internal.configuration.injection.filter
-
Allow the ongoing injection of a mock candidate.
- OngoingStubbing<T> - Interface in org.mockito.stubbing
-
Simply put: "When the x method is called then return y".
- OngoingStubbingImpl<T> - Class in org.mockito.internal.stubbing
-
- OngoingStubbingImpl(InvocationContainerImpl) - Constructor for class org.mockito.internal.stubbing.OngoingStubbingImpl
-
- Only - Class in org.mockito.internal.verification
-
- Only() - Constructor for class org.mockito.internal.verification.Only
-
- only() - Static method in class org.mockito.internal.verification.VerificationModeFactory
-
- only() - Static method in class org.mockito.Mockito
-
Allows checking if given method was the only one invoked.
- only() - Method in class org.mockito.verification.Timeout
-
- only() - Method in interface org.mockito.verification.VerificationWithTimeout
-
Allows checking if given method was the only one invoked.
- onlyVoidMethodsCanBeSetToDoNothing() - Method in class org.mockito.exceptions.Reporter
-
- or(boolean, boolean) - Static method in class org.mockito.AdditionalMatchers
-
boolean argument that matches any of the given argument matchers.
- or(T, T) - Static method in class org.mockito.AdditionalMatchers
-
Object argument that matches any of the given argument matchers.
- or(short, short) - Static method in class org.mockito.AdditionalMatchers
-
short argument that matches any of the given argument matchers.
- or(long, long) - Static method in class org.mockito.AdditionalMatchers
-
long argument that matches any of the given argument matchers.
- or(int, int) - Static method in class org.mockito.AdditionalMatchers
-
int argument that matches any of the given argument matchers.
- or(float, float) - Static method in class org.mockito.AdditionalMatchers
-
float argument that matches any of the given argument matchers.
- or(double, double) - Static method in class org.mockito.AdditionalMatchers
-
double argument that matches any of the given argument matchers.
- or(char, char) - Static method in class org.mockito.AdditionalMatchers
-
char argument that matches any of the given argument matchers.
- or(byte, byte) - Static method in class org.mockito.AdditionalMatchers
-
byte argument that matches any of the given argument matchers.
- Or - Class in org.mockito.internal.matchers
-
- Or(List<Matcher>) - Constructor for class org.mockito.internal.matchers.Or
-
- org.mockito - package org.mockito
-
Mockito is a mock library for java - see Mockito class for for usage.
- org.mockito.configuration - package org.mockito.configuration
-
Mockito configuration utilities
- org.mockito.exceptions - package org.mockito.exceptions
-
Exception messages, exception hierarchies.
- org.mockito.exceptions.base - package org.mockito.exceptions.base
-
Base classes for exceptions and errors, stack trace filtering/removing logic.
- org.mockito.exceptions.misusing - package org.mockito.exceptions.misusing
-
Exceptions thrown when Mockito is misused.
- org.mockito.exceptions.verification - package org.mockito.exceptions.verification
-
Verification errors.
- org.mockito.exceptions.verification.junit - package org.mockito.exceptions.verification.junit
-
JUnit integration to provide better support for junit runners in IDEs.
- org.mockito.internal - package org.mockito.internal
-
Internal classes, not to be used by clients.
- org.mockito.internal.configuration - package org.mockito.internal.configuration
-
Mockito configuration
- org.mockito.internal.configuration.injection - package org.mockito.internal.configuration.injection
-
- org.mockito.internal.configuration.injection.filter - package org.mockito.internal.configuration.injection.filter
-
- org.mockito.internal.creation - package org.mockito.internal.creation
-
Mock object creation.
- org.mockito.internal.creation.cglib - package org.mockito.internal.creation.cglib
-
CGLIB related stuff
- org.mockito.internal.creation.jmock - package org.mockito.internal.creation.jmock
-
Borrowed from jmock codebase
- org.mockito.internal.debugging - package org.mockito.internal.debugging
-
Whatever helps in debugging failed tests
- org.mockito.internal.exceptions - package org.mockito.internal.exceptions
-
- org.mockito.internal.exceptions.base - package org.mockito.internal.exceptions.base
-
internal implementations of exceptions stuff
- org.mockito.internal.exceptions.util - package org.mockito.internal.exceptions.util
-
- org.mockito.internal.invocation - package org.mockito.internal.invocation
-
Invocation and related classes.
- org.mockito.internal.invocation.finder - package org.mockito.internal.invocation.finder
-
- org.mockito.internal.invocation.realmethod - package org.mockito.internal.invocation.realmethod
-
implementations of real method calls
- org.mockito.internal.listeners - package org.mockito.internal.listeners
-
- org.mockito.internal.matchers - package org.mockito.internal.matchers
-
Argument matchers for verification and stubbing.
- org.mockito.internal.matchers.apachecommons - package org.mockito.internal.matchers.apachecommons
-
Argument matchers that use Apache Commons Lang reflection-equality.
- org.mockito.internal.progress - package org.mockito.internal.progress
-
Mocking progress stateful classes.
- org.mockito.internal.reporting - package org.mockito.internal.reporting
-
Deals with nicely printing verification errors
- org.mockito.internal.runners - package org.mockito.internal.runners
-
Internal classes for runners implementations
- org.mockito.internal.runners.util - package org.mockito.internal.runners.util
-
Internal utils for runner implementations
- org.mockito.internal.stubbing - package org.mockito.internal.stubbing
-
Stubbing logic.
- org.mockito.internal.stubbing.answers - package org.mockito.internal.stubbing.answers
-
Answers for stubbed calls
- org.mockito.internal.stubbing.defaultanswers - package org.mockito.internal.stubbing.defaultanswers
-
Implementations of ReturnValues
- org.mockito.internal.util - package org.mockito.internal.util
-
Static utils
- org.mockito.internal.util.junit - package org.mockito.internal.util.junit
-
- org.mockito.internal.util.reflection - package org.mockito.internal.util.reflection
-
reflection utilities
- org.mockito.internal.verification - package org.mockito.internal.verification
-
Verification logic.
- org.mockito.internal.verification.api - package org.mockito.internal.verification.api
-
This package should be open to public once verification API is fully finished
- org.mockito.internal.verification.argumentmatching - package org.mockito.internal.verification.argumentmatching
-
Deals with matching arguments
- org.mockito.internal.verification.checkers - package org.mockito.internal.verification.checkers
-
verification checkers
- org.mockito.invocation - package org.mockito.invocation
-
Publicly visible classes related to invocation
- org.mockito.listeners - package org.mockito.listeners
-
Public classes relative to the call listener.
- org.mockito.runners - package org.mockito.runners
-
JUnit runners.
- org.mockito.stubbing - package org.mockito.stubbing
-
External stubbing related classes
- org.mockito.stubbing.answers - package org.mockito.stubbing.answers
-
- org.mockito.verification - package org.mockito.verification
-
- validate() - Static method in class org.mockito.internal.configuration.GlobalConfiguration
-
- validate(Answer<?>, Invocation) - Method in class org.mockito.internal.stubbing.answers.AnswersValidator
-
- validateExtraInterfaces(Class, Class...) - Method in class org.mockito.internal.util.MockCreationValidator
-
- validateMockedType(Class, Object) - Method in class org.mockito.internal.util.MockCreationValidator
-
- validateMockitoUsage() - Method in class org.mockito.internal.MockitoCore
-
- validateMockitoUsage() - Static method in class org.mockito.Mockito
-
- validateState() - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
-
- validateState() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
-
- validateState() - Method in interface org.mockito.internal.progress.MockingProgress
-
- validateState() - Method in class org.mockito.internal.progress.MockingProgressImpl
-
- validateState() - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
-
- validateType(Class) - Method in class org.mockito.internal.util.MockCreationValidator
-
- valueFor(InvocationOnMock) - Method in interface org.mockito.ReturnValues
-
Deprecated.
return value for an unstubbed invocation
- valueOf(String) - Static method in enum org.mockito.Answers
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.mockito.internal.stubbing.defaultanswers.Answers
-
Deprecated.
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.mockito.Answers
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.mockito.internal.stubbing.defaultanswers.Answers
-
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
- VarargMatcher - Interface in org.mockito.internal.matchers
-
- verboseLogging() - Method in class org.mockito.internal.creation.MockSettingsImpl
-
- verboseLogging() - Method in interface org.mockito.MockSettings
-
Enables real-time logging of method invocations on this mock.
- verboseMatchers(Integer...) - Static method in class org.mockito.internal.reporting.PrintSettings
-
- VerboseMockInvocationLogger - Class in org.mockito.internal.debugging
-
Logs all invocations to standard output.
- VerboseMockInvocationLogger() - Constructor for class org.mockito.internal.debugging.VerboseMockInvocationLogger
-
- VerboseMockInvocationLogger(PrintStream) - Constructor for class org.mockito.internal.debugging.VerboseMockInvocationLogger
-
- VerboseMockitoJUnitRunner - Class in org.mockito.runners
-
Experimental implementation that suppose to improve tdd/testing experience.
- VerboseMockitoJUnitRunner(Class<?>) - Constructor for class org.mockito.runners.VerboseMockitoJUnitRunner
-
- VerifiableInvocationsFinder - Class in org.mockito.internal.invocation.finder
-
Author: Szczepan Faber, created at: 4/3/11
- VerifiableInvocationsFinder() - Constructor for class org.mockito.internal.invocation.finder.VerifiableInvocationsFinder
-
- VerificationAwareInvocation - Interface in org.mockito.internal.exceptions
-
- VerificationData - Interface in org.mockito.internal.verification.api
-
- VerificationDataImpl - Class in org.mockito.internal.verification
-
- VerificationDataImpl(InvocationContainer, InvocationMatcher) - Constructor for class org.mockito.internal.verification.VerificationDataImpl
-
- VerificationDataInOrder - Interface in org.mockito.internal.verification.api
-
- VerificationDataInOrderImpl - Class in org.mockito.internal.verification.api
-
- VerificationDataInOrderImpl(InOrderContext, List<Invocation>, InvocationMatcher) - Constructor for class org.mockito.internal.verification.api.VerificationDataInOrderImpl
-
- VerificationInOrderFailure - Error in org.mockito.exceptions.verification
-
- VerificationInOrderFailure(String) - Constructor for error org.mockito.exceptions.verification.VerificationInOrderFailure
-
- VerificationInOrderMode - Interface in org.mockito.internal.verification.api
-
- VerificationMode - Interface in org.mockito.verification
-
Allows verifying that certain behavior happened at least once / exact number
of times / never.
- VerificationModeFactory - Class in org.mockito.internal.verification
-
- VerificationModeFactory() - Constructor for class org.mockito.internal.verification.VerificationModeFactory
-
- verificationStarted(VerificationMode) - Method in interface org.mockito.internal.progress.MockingProgress
-
- verificationStarted(VerificationMode) - Method in class org.mockito.internal.progress.MockingProgressImpl
-
- verificationStarted(VerificationMode) - Method in class org.mockito.internal.progress.ThreadSafeMockingProgress
-
- VerificationWithTimeout - Interface in org.mockito.verification
-
VerificationWithTimeout is a
VerificationMode
that allows combining existing verification modes with 'timeout'.
- VerificationWithTimeoutImpl - Class in org.mockito.internal.verification
-
- VerificationWithTimeoutImpl(int, int, VerificationMode) - Constructor for class org.mockito.internal.verification.VerificationWithTimeoutImpl
-
- verify(T) - Method in interface org.mockito.InOrder
-
Verifies interaction happened once in order.
- verify(T, VerificationMode) - Method in interface org.mockito.InOrder
-
Verifies interaction in order.
- verify(T) - Method in class org.mockito.internal.InOrderImpl
-
- verify(T, VerificationMode) - Method in class org.mockito.internal.InOrderImpl
-
- verify(T, VerificationMode) - Method in class org.mockito.internal.MockitoCore
-
- verify(VerificationData) - Method in class org.mockito.internal.verification.AtLeast
-
- verify(VerificationData) - Method in class org.mockito.internal.verification.AtMost
-
- verify(VerificationData) - Method in class org.mockito.internal.verification.InOrderWrapper
-
- verify(VerificationData) - Method in class org.mockito.internal.verification.MockAwareVerificationMode
-
- verify(VerificationData) - Method in class org.mockito.internal.verification.NoMoreInteractions
-
- verify(VerificationData) - Method in class org.mockito.internal.verification.Only
-
- verify(VerificationData) - Method in class org.mockito.internal.verification.Times
-
- verify(VerificationData) - Method in class org.mockito.internal.verification.VerificationWithTimeoutImpl
-
- verify(T) - Static method in class org.mockito.Mockito
-
Verifies certain behavior happened once.
- verify(T, VerificationMode) - Static method in class org.mockito.Mockito
-
Verifies certain behavior happened at least once / exact number of times / never.
- verify(VerificationData) - Method in class org.mockito.verification.Timeout
-
- verify(VerificationData) - Method in interface org.mockito.verification.VerificationMode
-
- verifyInOrder(VerificationDataInOrder) - Method in interface org.mockito.internal.verification.api.VerificationInOrderMode
-
- verifyInOrder(VerificationDataInOrder) - Method in class org.mockito.internal.verification.AtLeast
-
- verifyInOrder(VerificationDataInOrder) - Method in class org.mockito.internal.verification.NoMoreInteractions
-
- verifyInOrder(VerificationDataInOrder) - Method in class org.mockito.internal.verification.Times
-
- verifyNoMoreInteractions() - Method in interface org.mockito.InOrder
-
Verifies that no more interactions happened in order.
- verifyNoMoreInteractions() - Method in class org.mockito.internal.InOrderImpl
-
- verifyNoMoreInteractions(Object...) - Method in class org.mockito.internal.MockitoCore
-
- verifyNoMoreInteractions(Object...) - Static method in class org.mockito.Mockito
-
Checks if any of given mocks has any unverified interaction.
- verifyNoMoreInteractionsInOrder(List<Object>, InOrderContext) - Method in class org.mockito.internal.MockitoCore
-
- verifyZeroInteractions(Object...) - Static method in class org.mockito.Mockito
-
Verifies that no interactions happened on given mocks.
- voidMethodStubbable(T) - Method in class org.mockito.internal.InvocationNotifierHandler
-
- voidMethodStubbable(T) - Method in class org.mockito.internal.MockHandler
-
- voidMethodStubbable(T) - Method in interface org.mockito.internal.MockHandlerInterface
-
- VoidMethodStubbable<T> - Interface in org.mockito.stubbing
-
Stubs void method with an exception.
- VoidMethodStubbableImpl<T> - Class in org.mockito.internal.stubbing
-
- VoidMethodStubbableImpl(T, InvocationContainerImpl) - Constructor for class org.mockito.internal.stubbing.VoidMethodStubbableImpl
-