A B C D E F G H I J L M N O P R S T U V W

A

a(Class<?>) - Static method in class org.jmock.Expectations
Deprecated. use Expectations.aNonNull(java.lang.Class) or Expectations.any(java.lang.Class) until type inference actually works in a future version of Java
Action - Interface in org.jmock.api
An object that fakes the behaviour of an InvocationExpectation.
ActionClause - Interface in org.jmock.syntax
 
ActionSequence - Class in org.jmock.lib.action
Returns the next of a sequence of elements each time it is invoked.
ActionSequence(Action...) - Constructor for class org.jmock.lib.action.ActionSequence
 
activate() - Method in interface org.jmock.internal.State
 
add(Expectation) - Method in interface org.jmock.internal.ExpectationCollector
 
add(Expectation) - Method in class org.jmock.internal.InvocationDispatcher
 
add(long, T) - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
 
addExpectation(Expectation) - Method in class org.jmock.Mockery
Adds an expected invocation that the object under test will perform upon objects in its context during the test.
addInSequenceOrderingConstraint(Sequence) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
addOrderingConstraint(OrderingConstraint) - Method in class org.jmock.internal.InvocationExpectation
 
addOrderingConstraint(OrderingConstraint) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
addParameterMatcher(Matcher<?>) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
addResult(Class<?>, Object) - Method in class org.jmock.internal.ReturnDefaultValueAction
 
addSideEffect(SideEffect) - Method in class org.jmock.internal.InvocationExpectation
 
addSideEffect(SideEffect) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
AllDeclaredFields - Class in org.jmock.internal
 
AllDeclaredFields() - Constructor for class org.jmock.internal.AllDeclaredFields
 
allowing(Matcher<?>) - Method in class org.jmock.Expectations
 
allowing(T) - Method in class org.jmock.Expectations
 
ALLOWING - Static variable in class org.jmock.internal.Cardinality
 
allowing(T) - Method in interface org.jmock.syntax.CardinalityClause
 
allowing(Matcher<?>) - Method in interface org.jmock.syntax.CardinalityClause
 
allowsInvocationNow() - Method in class org.jmock.internal.InStateOrderingConstraint
 
allowsInvocationNow() - Method in interface org.jmock.internal.OrderingConstraint
 
allowsMoreInvocations() - Method in interface org.jmock.api.Expectation
Can more Invocations expected by this Expectation still occur?
allowsMoreInvocations(int) - Method in class org.jmock.internal.Cardinality
 
allowsMoreInvocations() - Method in class org.jmock.internal.InvocationExpectation
 
AllParametersMatcher - Class in org.jmock.internal.matcher
 
AllParametersMatcher(Object[]) - Constructor for class org.jmock.internal.matcher.AllParametersMatcher
 
AllParametersMatcher(List<Matcher<?>>) - Constructor for class org.jmock.internal.matcher.AllParametersMatcher
 
an(Class<?>) - Static method in class org.jmock.Expectations
Deprecated. use Expectations.aNonNull(java.lang.Class) or Expectations.any(java.lang.Class) until type inference actually works in a future version of Java
aNonNull(Class<T>) - Static method in class org.jmock.Expectations
 
aNull(Class<T>) - Static method in class org.jmock.Expectations
 
any(Class<T>) - Static method in class org.jmock.Expectations
 
anything() - Static method in class org.jmock.Expectations
 
applyTo(Object) - Method in class org.jmock.api.Invocation
 
ArgumentConstraintPhrases - Interface in org.jmock.syntax
 
AssertionErrorTranslator - Class in org.jmock.lib
Translates ExpectationErrors into AssertionErrors that several test frameworks, including JUnit 4 and TestNG, use to report errors.
assertIsSatisfied() - Method in class org.jmock.Mockery
Fails the test if there are any expectations that have not been met.
atLeast(int) - Method in class org.jmock.Expectations
 
atLeast(int) - Static method in class org.jmock.internal.Cardinality
 
atLeast(int) - Method in interface org.jmock.syntax.CardinalityClause
 
atMost(int) - Method in class org.jmock.Expectations
 
atMost(int) - Static method in class org.jmock.internal.Cardinality
 
atMost(int) - Method in interface org.jmock.syntax.CardinalityClause
 
Auto - Annotation Type in org.jmock.auto
 
awaitTermination(long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 

B

become(String) - Method in class org.jmock.internal.StateMachine
 
become(String) - Method in interface org.jmock.States
Put the state machine into state nextState.
between(int, int) - Method in class org.jmock.Expectations
 
between(int, int) - Static method in class org.jmock.internal.Cardinality
 
between(int, int) - Method in interface org.jmock.syntax.CardinalityClause
 
blitz(Runnable) - Method in class org.jmock.lib.concurrent.Blitzer
 
blitz(long, Runnable) - Method in class org.jmock.lib.concurrent.Blitzer
 
Blitzer - Class in org.jmock.lib.concurrent
A class that "blitzes" an object by calling it many times, from multiple threads.
Blitzer(int) - Constructor for class org.jmock.lib.concurrent.Blitzer
 
Blitzer(int, int) - Constructor for class org.jmock.lib.concurrent.Blitzer
 
Blitzer(int, ExecutorService) - Constructor for class org.jmock.lib.concurrent.Blitzer
 
booleanIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 
buildExpectations(Action, ExpectationCollector) - Method in class org.jmock.Expectations
 
buildExpectations(Action, ExpectationCollector) - Method in interface org.jmock.internal.ExpectationBuilder
 
byteIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 

C

CamelCaseNamingScheme - Class in org.jmock.lib
A naming scheme in which the implicit name for a mock object is the mocked type's name with the first character in lower case.
CamelCaseNamingScheme() - Constructor for class org.jmock.lib.CamelCaseNamingScheme
 
canImposterise(Class<?>) - Method in interface org.jmock.api.Imposteriser
Reports if the Imposteriser is able to imposterise a given type.
canImposterise(Class<?>) - Method in class org.jmock.lib.JavaReflectionImposteriser
 
CaptureControl - Interface in org.jmock.internal
 
captureExpectationTo(ExpectationCapture) - Method in interface org.jmock.internal.CaptureControl
 
Cardinality - Class in org.jmock.internal
The acceptable range of times an expectation may be invoked.
Cardinality(int, int) - Constructor for class org.jmock.internal.Cardinality
 
CardinalityClause - Interface in org.jmock.syntax
 
ChangeStateSideEffect - Class in org.jmock.internal
 
ChangeStateSideEffect(State) - Constructor for class org.jmock.internal.ChangeStateSideEffect
 
charIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 
checking(ExpectationBuilder) - Method in class org.jmock.Mockery
Specifies the expected invocations that the object under test will perform upon objects in its context during the test.
checkReturnTypeCompatibility(Object) - Method in class org.jmock.api.Invocation
 
checkWasFullySpecified() - Method in class org.jmock.internal.InvocationExpectationBuilder
 
combine(ClassLoader...) - Static method in class org.jmock.internal.SearchingClassLoader
 
combine(List<ClassLoader>) - Static method in class org.jmock.internal.SearchingClassLoader
 
combineLoadersOf(Class<?>...) - Static method in class org.jmock.internal.SearchingClassLoader
 
combineLoadersOf(Class<?>, Class<?>...) - Static method in class org.jmock.internal.SearchingClassLoader
 
constrainAsNextInSequence(InvocationExpectation) - Method in class org.jmock.internal.NamedSequence
 
constrainAsNextInSequence(InvocationExpectation) - Method in interface org.jmock.Sequence
 
createDefaultResults() - Method in class org.jmock.internal.ReturnDefaultValueAction
 
createExpectationFrom(Invocation) - Method in interface org.jmock.internal.ExpectationCapture
 
createExpectationFrom(Invocation) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
currentBuilder() - Method in class org.jmock.Expectations
 
CurrentStateMatcher - Class in org.jmock.lib
 
CurrentStateMatcher(String, boolean) - Constructor for class org.jmock.lib.CurrentStateMatcher
 
CustomAction - Class in org.jmock.lib.action
A partial implementation of the Action interface that makes it convenient to implement application-specific actions with inline anonymous classes.
CustomAction(String) - Constructor for class org.jmock.lib.action.CustomAction
 

D

DEFAULT_THREAD_COUNT - Static variable in class org.jmock.lib.concurrent.Blitzer
The default number of threads to run concurrently.
defaultNameFor(Class<?>) - Method in interface org.jmock.api.MockObjectNamingScheme
Derive a name for a mock object from the name of the given type.
defaultNameFor(Class<?>) - Method in class org.jmock.lib.CamelCaseNamingScheme
 
defaultNameFor(Class<?>) - Method in class org.jmock.lib.LastWordNamingScheme
 
defaultNameFor(Class<?>) - Method in class org.jmock.lib.RetroNamingScheme
 
delay() - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
 
DeltaQueue<T> - Class in org.jmock.lib.concurrent.internal
 
DeltaQueue() - Constructor for class org.jmock.lib.concurrent.internal.DeltaQueue
 
describeMismatch(Invocation, Description) - Method in interface org.jmock.api.Expectation
 
describeMismatch(Invocation, Description) - Method in class org.jmock.internal.InvocationDispatcher
 
describeMismatch(Invocation, Description) - Method in class org.jmock.internal.InvocationExpectation
 
describeMismatchSafely(Method, Description) - Method in class org.jmock.internal.matcher.MethodMatcher
 
describeMismatchSafely(Method, Description) - Method in class org.jmock.internal.matcher.MethodNameMatcher
 
describeMismatchSafely(States, Description) - Method in class org.jmock.lib.CurrentStateMatcher
 
describeTo(Description) - Method in error org.jmock.api.ExpectationError
 
describeTo(Description) - Method in class org.jmock.api.Invocation
 
describeTo(Description) - Method in class org.jmock.internal.Cardinality
 
describeTo(Description) - Method in class org.jmock.internal.ChangeStateSideEffect
 
describeTo(Description) - Method in class org.jmock.internal.InStateOrderingConstraint
 
describeTo(Description) - Method in class org.jmock.internal.InvocationDispatcher
 
describeTo(Description) - Method in class org.jmock.internal.InvocationExpectation
 
describeTo(Description) - Method in class org.jmock.internal.matcher.AllParametersMatcher
 
describeTo(Description) - Method in class org.jmock.internal.matcher.MethodMatcher
 
describeTo(Description) - Method in class org.jmock.internal.matcher.MethodNameMatcher
 
describeTo(Description) - Method in class org.jmock.internal.matcher.MockObjectMatcher
 
describeTo(Description) - Method in class org.jmock.internal.ReturnDefaultValueAction
 
describeTo(Description) - Method in class org.jmock.internal.StateMachine
 
describeTo(Description) - Method in class org.jmock.lib.action.ActionSequence
 
describeTo(Description) - Method in class org.jmock.lib.action.CustomAction
 
describeTo(Description) - Method in class org.jmock.lib.action.DoAllAction
 
describeTo(Description) - Method in class org.jmock.lib.action.ReturnEnumerationAction
 
describeTo(Description) - Method in class org.jmock.lib.action.ReturnIteratorAction
 
describeTo(Description) - Method in class org.jmock.lib.action.ReturnValueAction
 
describeTo(Description) - Method in class org.jmock.lib.action.ThrowAction
 
describeTo(Description) - Method in class org.jmock.lib.action.VoidAction
 
describeTo(Description) - Method in class org.jmock.lib.CurrentStateMatcher
 
describeTo(Description) - Method in class org.jmock.Mockery
 
descriptionEnd() - Method in class org.jmock.internal.matcher.ParametersMatcher
 
descriptionStart() - Method in class org.jmock.internal.matcher.ParametersMatcher
 
DeterministicExecutor - Class in org.jmock.lib.concurrent
An Executor that executes commands on the thread that calls runPendingCommands or runUntilIdle.
DeterministicExecutor() - Constructor for class org.jmock.lib.concurrent.DeterministicExecutor
 
DeterministicScheduler - Class in org.jmock.lib.concurrent
A ScheduledExecutorService that executes commands on the thread that calls runNextPendingCommand, runUntilIdle or tick.
DeterministicScheduler() - Constructor for class org.jmock.lib.concurrent.DeterministicScheduler
 
dispatch(Invocation) - Method in class org.jmock.internal.InvocationDispatcher
 
doAll(Action...) - Static method in class org.jmock.Expectations
 
DoAllAction - Class in org.jmock.lib.action
Performs multiple actions every time it is invoked.
DoAllAction(Action...) - Constructor for class org.jmock.lib.action.DoAllAction
 
doubleIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 

E

equal(T) - Static method in class org.jmock.Expectations
 
equals(Object) - Method in class org.jmock.api.Invocation
 
equals(Invocation) - Method in class org.jmock.api.Invocation
 
exactly(int) - Method in class org.jmock.Expectations
 
exactly(int) - Static method in class org.jmock.internal.Cardinality
 
exactly(int) - Method in interface org.jmock.syntax.CardinalityClause
 
execute(Runnable) - Method in class org.jmock.lib.concurrent.DeterministicExecutor
 
execute(Runnable) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
Expectation - Interface in org.jmock.api
An object that matches, checks and fakes an Invocation
ExpectationBuilder - Interface in org.jmock.internal
 
ExpectationCapture - Interface in org.jmock.internal
 
ExpectationCollector - Interface in org.jmock.internal
 
ExpectationError - Error in org.jmock.api
An error thrown when an expectation is violated during a test.
ExpectationError(String, SelfDescribing, Invocation) - Constructor for error org.jmock.api.ExpectationError
 
ExpectationError(String, Invocation) - Constructor for error org.jmock.api.ExpectationError
 
ExpectationError(String, SelfDescribing) - Constructor for error org.jmock.api.ExpectationError
 
ExpectationErrorTranslator - Interface in org.jmock.api
Translates expectation errors into error type used by a specific testing framework.
expectations - Variable in error org.jmock.api.ExpectationError
 
Expectations - Class in org.jmock
Provides most of the syntax of jMock's "domain-specific language" API.
Expectations() - Constructor for class org.jmock.Expectations
 

F

fakeEquals(Object, Object) - Method in class org.jmock.internal.FakeObjectMethods
 
fakeEquals(Object, Object) - Method in class org.jmock.internal.ObjectMethodExpectationBouncer
 
fakeEquals(Object, Object) - Method in class org.jmock.internal.ProxiedObjectIdentity
 
fakeFinalize(Object) - Method in class org.jmock.internal.FakeObjectMethods
 
fakeFinalize(Object) - Method in class org.jmock.internal.ObjectMethodExpectationBouncer
 
fakeFinalize(Object) - Method in class org.jmock.internal.ProxiedObjectIdentity
 
fakeHashCode(Object) - Method in class org.jmock.internal.FakeObjectMethods
 
fakeHashCode(Object) - Method in class org.jmock.internal.ObjectMethodExpectationBouncer
 
fakeHashCode(Object) - Method in class org.jmock.internal.ProxiedObjectIdentity
 
FakeObjectMethods - Class in org.jmock.internal
 
FakeObjectMethods(Invokable) - Constructor for class org.jmock.internal.FakeObjectMethods
 
fakeToString(Object) - Method in class org.jmock.internal.FakeObjectMethods
 
fakeToString(Object) - Method in class org.jmock.internal.ObjectMethodExpectationBouncer
 
fakeToString(Object) - Method in class org.jmock.internal.ProxiedObjectIdentity
 
fillIn(Object) - Method in class org.jmock.auto.internal.Mockomatic
 
fillIn(Object, List<Field>) - Method in class org.jmock.auto.internal.Mockomatic
 
findClass(String) - Method in class org.jmock.internal.SearchingClassLoader
 
FixedTimeout - Class in org.jmock.lib.concurrent.internal
A Timeout of fixed duration from the time the FixedTimeout object is instantiated.
FixedTimeout(long) - Constructor for class org.jmock.lib.concurrent.internal.FixedTimeout
 
floatIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 
Formatting - Class in org.jmock.internal
 
Formatting() - Constructor for class org.jmock.internal.Formatting
 

G

getInvokedMethod() - Method in class org.jmock.api.Invocation
 
getInvokedObject() - Method in class org.jmock.api.Invocation
 
getParameter(int) - Method in class org.jmock.api.Invocation
 
getParameterCount() - Method in class org.jmock.api.Invocation
 
getParametersAsArray() - Method in class org.jmock.api.Invocation
 

H

hashCode() - Method in class org.jmock.api.Invocation
 

I

IdentityExpectationErrorTranslator - Class in org.jmock.lib
An ExpectationErrorTranslator that doesn't do any translation.
ignoring(T) - Method in class org.jmock.Expectations
 
ignoring(Matcher<?>) - Method in class org.jmock.Expectations
 
ignoring(T) - Method in interface org.jmock.syntax.CardinalityClause
 
ignoring(Matcher<?>) - Method in interface org.jmock.syntax.CardinalityClause
 
imposterise(Invokable, Class<T>, Class<?>...) - Method in interface org.jmock.api.Imposteriser
Creates an imposter for a given type that forwards Invocations to an Invokable object.
imposterise(Invokable, Class<T>, Class<?>...) - Method in class org.jmock.lib.JavaReflectionImposteriser
 
Imposteriser - Interface in org.jmock.api
An object that can creates a proxy of the given type to capture Invocations and pass them to an Invokable object for mocking or stubbing.
in(Class<?>) - Static method in class org.jmock.internal.AllDeclaredFields
 
InfiniteTimeout - Class in org.jmock.lib.concurrent.internal
A Timeout that never times out.
InfiniteTimeout() - Constructor for class org.jmock.lib.concurrent.internal.InfiniteTimeout
 
inSequence(Sequence) - Method in class org.jmock.Expectations
 
inSequences(Sequence...) - Method in class org.jmock.Expectations
 
INSTANCE - Static variable in class org.jmock.lib.action.VoidAction
 
INSTANCE - Static variable in class org.jmock.lib.AssertionErrorTranslator
 
INSTANCE - Static variable in class org.jmock.lib.CamelCaseNamingScheme
 
INSTANCE - Static variable in class org.jmock.lib.IdentityExpectationErrorTranslator
 
INSTANCE - Static variable in class org.jmock.lib.JavaReflectionImposteriser
 
INSTANCE - Static variable in class org.jmock.lib.LastWordNamingScheme
 
INSTANCE - Static variable in class org.jmock.lib.RetroNamingScheme
 
InStateOrderingConstraint - Class in org.jmock.internal
 
InStateOrderingConstraint(StatePredicate) - Constructor for class org.jmock.internal.InStateOrderingConstraint
 
intIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 
invocation - Variable in error org.jmock.api.ExpectationError
 
Invocation - Class in org.jmock.api
The static details about a method and the run-time details of its invocation.
Invocation(Object, Method, Object...) - Constructor for class org.jmock.api.Invocation
 
InvocationDispatcher - Class in org.jmock.internal
 
InvocationDispatcher() - Constructor for class org.jmock.internal.InvocationDispatcher
 
InvocationDiverter<T> - Class in org.jmock.internal
 
InvocationDiverter(Class<T>, T, Invokable) - Constructor for class org.jmock.internal.InvocationDiverter
 
InvocationExpectation - Class in org.jmock.internal
An expectation of zero or more matching invocations.
InvocationExpectation() - Constructor for class org.jmock.internal.InvocationExpectation
 
InvocationExpectationBuilder - Class in org.jmock.internal
 
InvocationExpectationBuilder() - Constructor for class org.jmock.internal.InvocationExpectationBuilder
 
InvocationToExpectationTranslator - Class in org.jmock.internal
 
InvocationToExpectationTranslator(ExpectationCapture, Action) - Constructor for class org.jmock.internal.InvocationToExpectationTranslator
 
Invokable - Interface in org.jmock.api
An object that can receive an Invocation.
invoke(Invocation) - Method in interface org.jmock.api.Expectation
Invokes the expectation: records that the invocation has occurred and fakes some behaviour in response.
invoke(Invocation) - Method in interface org.jmock.api.Invokable
Performs an action in response to an invocation.
invoke(Invocation) - Method in class org.jmock.internal.FakeObjectMethods
 
invoke(Invocation) - Method in class org.jmock.internal.InvocationDiverter
 
invoke(Invocation) - Method in class org.jmock.internal.InvocationExpectation
 
invoke(Invocation) - Method in class org.jmock.internal.InvocationToExpectationTranslator
 
invoke(Invocation) - Method in class org.jmock.internal.ReturnDefaultValueAction
 
invoke(Invocation) - Method in class org.jmock.lib.action.ActionSequence
 
invoke(Invocation) - Method in class org.jmock.lib.action.DoAllAction
 
invoke(Invocation) - Method in class org.jmock.lib.action.ReturnEnumerationAction
 
invoke(Invocation) - Method in class org.jmock.lib.action.ReturnIteratorAction
 
invoke(Invocation) - Method in class org.jmock.lib.action.ReturnValueAction
 
invoke(Invocation) - Method in class org.jmock.lib.action.ThrowAction
 
invoke(Invocation) - Method in class org.jmock.lib.action.VoidAction
 
invokeAll(Collection<? extends Callable<T>>) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
invokeAny(Collection<? extends Callable<T>>) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
is(String) - Method in class org.jmock.internal.StateMachine
 
is(String) - Method in interface org.jmock.syntax.StatesClause
 
is(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 
isActive() - Method in interface org.jmock.internal.StatePredicate
 
isCompatibleWith(Object[]) - Method in class org.jmock.internal.matcher.AllParametersMatcher
 
isCompatibleWith(Object[]) - Method in interface org.jmock.internal.ParametersMatcher
Is this matcher likely to be relevant to the given parameters?
isCurrently(String) - Static method in class org.jmock.lib.CurrentStateMatcher
 
isEmpty() - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
 
isIdle() - Method in class org.jmock.lib.concurrent.DeterministicExecutor
Returns whether this executor is idle -- has no pending background tasks waiting to be run.
isIdle() - Method in class org.jmock.lib.concurrent.DeterministicScheduler
Reports whether scheduler is "idle": has no commands pending immediate execution.
isNot(String) - Method in class org.jmock.internal.StateMachine
 
isNot(String) - Method in interface org.jmock.syntax.StatesClause
 
isNotCurrently(String) - Static method in class org.jmock.lib.CurrentStateMatcher
 
isNotEmpty() - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
 
isSatisfied() - Method in interface org.jmock.api.Expectation
Have enough Invocations expected by this Expectation occurred?
isSatisfied(int) - Method in class org.jmock.internal.Cardinality
 
isSatisfied() - Method in class org.jmock.internal.InvocationDispatcher
 
isSatisfied() - Method in class org.jmock.internal.InvocationExpectation
 
isShutdown() - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
isTerminated() - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 

J

JavaReflectionImposteriser - Class in org.jmock.lib
An Imposteriser that uses the Proxy class of the Java Reflection API.
JavaReflectionImposteriser() - Constructor for class org.jmock.lib.JavaReflectionImposteriser
 

L

LastWordNamingScheme - Class in org.jmock.lib
A naming scheme in which the implicit name for a mock object is the last word of the mocked type's name in lower case.
longIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 

M

matches(Invocation) - Method in interface org.jmock.api.Expectation
Can the Expectation be invoked with invocation?
matches(Invocation) - Method in class org.jmock.internal.InvocationExpectation
 
matches(Object) - Method in class org.jmock.internal.matcher.MockObjectMatcher
 
matchesSafely(Object[], Description) - Method in class org.jmock.internal.matcher.AllParametersMatcher
 
matchesSafely(Method) - Method in class org.jmock.internal.matcher.MethodMatcher
 
matchesSafely(Method) - Method in class org.jmock.internal.matcher.MethodNameMatcher
 
matchesSafely(States) - Method in class org.jmock.lib.CurrentStateMatcher
 
method(Matcher<Method>) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
method(String) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
method(Matcher<Method>) - Method in interface org.jmock.syntax.MethodClause
 
method(String) - Method in interface org.jmock.syntax.MethodClause
 
MethodClause - Interface in org.jmock.syntax
 
MethodMatcher - Class in org.jmock.internal.matcher
 
MethodMatcher(Method) - Constructor for class org.jmock.internal.matcher.MethodMatcher
 
MethodNameMatcher - Class in org.jmock.internal.matcher
 
MethodNameMatcher(String) - Constructor for class org.jmock.internal.matcher.MethodNameMatcher
 
Mock - Annotation Type in org.jmock.auto
 
mock(Class<T>) - Method in class org.jmock.Mockery
Creates a mock object of type typeToMock and generates a name for it.
mock(Class<T>, String) - Method in class org.jmock.Mockery
Creates a mock object of type typeToMock with the given name.
Mockery - Class in org.jmock
A Mockery represents the context, or neighbourhood, of the object(s) under test.
Mockery() - Constructor for class org.jmock.Mockery
 
MockObjectMatcher - Class in org.jmock.internal.matcher
 
MockObjectMatcher(Object) - Constructor for class org.jmock.internal.matcher.MockObjectMatcher
 
MockObjectNamingScheme - Interface in org.jmock.api
Creates names for mock objects that have not explicitly been given a name.
Mockomatic - Class in org.jmock.auto.internal
 
Mockomatic(Mockery) - Constructor for class org.jmock.auto.internal.Mockomatic
 

N

NamedSequence - Class in org.jmock.internal
A sequence of expectations.
NamedSequence(String) - Constructor for class org.jmock.internal.NamedSequence
 
never(T) - Method in class org.jmock.Expectations
 
never(T) - Method in interface org.jmock.syntax.CardinalityClause
 
newStateMachine(String) - Method in class org.jmock.internal.InvocationDispatcher
 
next() - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
 
NO_PARAMETERS - Static variable in class org.jmock.api.Invocation
 

O

ObjectMethodExpectationBouncer - Class in org.jmock.internal
 
ObjectMethodExpectationBouncer(Invokable) - Constructor for class org.jmock.internal.ObjectMethodExpectationBouncer
 
of(T) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
of(Matcher<?>) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
of(T) - Method in interface org.jmock.syntax.ReceiverClause
 
of(Matcher<?>) - Method in interface org.jmock.syntax.ReceiverClause
 
onConsecutiveCalls(Action...) - Static method in class org.jmock.Expectations
 
one(T) - Method in class org.jmock.Expectations
Deprecated. Use oneOf instead.
one(T) - Method in interface org.jmock.syntax.CardinalityClause
 
oneOf(T) - Method in class org.jmock.Expectations
 
oneOf(T) - Method in interface org.jmock.syntax.CardinalityClause
 
OrderingConstraint - Interface in org.jmock.internal
 
org.jmock - package org.jmock
 
org.jmock.api - package org.jmock.api
 
org.jmock.auto - package org.jmock.auto
 
org.jmock.auto.internal - package org.jmock.auto.internal
 
org.jmock.internal - package org.jmock.internal
 
org.jmock.internal.matcher - package org.jmock.internal.matcher
 
org.jmock.lib - package org.jmock.lib
 
org.jmock.lib.action - package org.jmock.lib.action
 
org.jmock.lib.concurrent - package org.jmock.lib.concurrent
 
org.jmock.lib.concurrent.internal - package org.jmock.lib.concurrent.internal
 
org.jmock.syntax - package org.jmock.syntax
 

P

ParametersClause - Interface in org.jmock.syntax
 
ParametersMatcher - Class in org.jmock.internal.matcher
 
ParametersMatcher(Object[]) - Constructor for class org.jmock.internal.matcher.ParametersMatcher
 
ParametersMatcher(List<Matcher<?>>) - Constructor for class org.jmock.internal.matcher.ParametersMatcher
 
ParametersMatcher - Interface in org.jmock.internal
 
perform() - Method in class org.jmock.internal.ChangeStateSideEffect
 
perform() - Method in interface org.jmock.internal.SideEffect
 
pop() - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
 
ProxiedObjectIdentity - Class in org.jmock.internal
 
ProxiedObjectIdentity(Invokable) - Constructor for class org.jmock.internal.ProxiedObjectIdentity
 

R

ReceiverClause - Interface in org.jmock.syntax
 
remove(T) - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
 
RetroNamingScheme - Class in org.jmock.lib
A naming scheme in which the implicit name for a mock object is the mocked type's name prepend with "mock".
RetroNamingScheme() - Constructor for class org.jmock.lib.RetroNamingScheme
 
ReturnDefaultValueAction - Class in org.jmock.internal
Returns a value of the invoked method's result type.
ReturnDefaultValueAction(Imposteriser) - Constructor for class org.jmock.internal.ReturnDefaultValueAction
 
ReturnDefaultValueAction() - Constructor for class org.jmock.internal.ReturnDefaultValueAction
 
returnEnumeration(Collection<?>) - Static method in class org.jmock.Expectations
 
returnEnumeration(T...) - Static method in class org.jmock.Expectations
 
ReturnEnumerationAction - Class in org.jmock.lib.action
Returns an Enumeration over a collection.
ReturnEnumerationAction(Collection<?>) - Constructor for class org.jmock.lib.action.ReturnEnumerationAction
 
ReturnEnumerationAction(Object...) - Constructor for class org.jmock.lib.action.ReturnEnumerationAction
 
returnIterator(Collection<?>) - Static method in class org.jmock.Expectations
 
returnIterator(T...) - Static method in class org.jmock.Expectations
 
ReturnIteratorAction - Class in org.jmock.lib.action
Returns an Iterator over a collection.
ReturnIteratorAction(Collection<?>) - Constructor for class org.jmock.lib.action.ReturnIteratorAction
 
ReturnIteratorAction(Object...) - Constructor for class org.jmock.lib.action.ReturnIteratorAction
 
returnValue(Object) - Static method in class org.jmock.Expectations
 
ReturnValueAction - Class in org.jmock.lib.action
Returns a value.
ReturnValueAction(Object) - Constructor for class org.jmock.lib.action.ReturnValueAction
 
runNextPendingCommand() - Method in class org.jmock.lib.concurrent.DeterministicScheduler
Runs the next command scheduled to be executed immediately.
runPendingCommands() - Method in class org.jmock.lib.concurrent.DeterministicExecutor
Runs all commands that are currently pending.
runUntilIdle() - Method in class org.jmock.lib.concurrent.DeterministicExecutor
Runs executed commands until there are no commands pending execution, but does not tick time forward.
runUntilIdle() - Method in class org.jmock.lib.concurrent.DeterministicScheduler
Runs all commands scheduled to be executed immediately but does not tick time forward.

S

same(T) - Static method in class org.jmock.Expectations
 
schedule(Runnable, long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
schedule(Callable<V>, long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
scheduleAtFixedRate(Runnable, long, long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
SearchingClassLoader - Class in org.jmock.internal
 
SearchingClassLoader(ClassLoader, ClassLoader) - Constructor for class org.jmock.internal.SearchingClassLoader
 
sequence(String) - Method in class org.jmock.Mockery
Returns a new sequence that is used to constrain the order in which expectations can occur.
Sequence - Interface in org.jmock
A sequence of expectations; invocations can be constrained to occur in a strict order defined by a sequence.
setAction(Action) - Method in class org.jmock.internal.InvocationExpectation
 
setAction(Action) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
setCardinality(Cardinality) - Method in class org.jmock.internal.InvocationExpectation
 
setCardinality(Cardinality) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
setDefaultAction(Action) - Method in class org.jmock.internal.InvocationExpectation
 
setDefaultResultForType(Class<?>, Object) - Method in class org.jmock.Mockery
Sets the result returned for the given type when no return value has been explicitly specified in the expectation.
setExpectationErrorTranslator(ExpectationErrorTranslator) - Method in class org.jmock.Mockery
Changes the expectation error translator used to translate expectation errors into errors that report test failures.
setImposteriser(Imposteriser) - Method in class org.jmock.internal.ReturnDefaultValueAction
 
setImposteriser(Imposteriser) - Method in class org.jmock.Mockery
Changes the imposteriser used to adapt mock objects to the mocked type.
setMethod(Method) - Method in class org.jmock.internal.InvocationExpectation
 
setMethodMatcher(Matcher<? super Method>) - Method in class org.jmock.internal.InvocationExpectation
 
setNamingScheme(MockObjectNamingScheme) - Method in class org.jmock.Mockery
Changes the naming scheme used to generate names for mock objects that have not been explicitly named in the test.
setObjectMatcher(Matcher<?>) - Method in class org.jmock.internal.InvocationExpectation
 
setParametersMatcher(ParametersMatcher) - Method in class org.jmock.internal.InvocationExpectation
 
setThreadingPolicy(ThreadingPolicy) - Method in class org.jmock.Mockery
Changes the policy by which the Mockery copes with multiple threads.
shortIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 
shutdown() - Method in class org.jmock.lib.concurrent.Blitzer
 
shutdown() - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
shutdownNow() - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
SideEffect - Interface in org.jmock.internal
An expectation has one Action but can have zero or more SideEffects that are triggered before the Action.
SingleThreadedPolicy - Class in org.jmock.internal
 
SingleThreadedPolicy() - Constructor for class org.jmock.internal.SingleThreadedPolicy
 
startsAs(String) - Method in class org.jmock.internal.StateMachine
 
startsAs(String) - Method in interface org.jmock.States
Put the state machine into state initialState.
State - Interface in org.jmock.internal
 
StateMachine - Class in org.jmock.internal
 
StateMachine(String) - Constructor for class org.jmock.internal.StateMachine
 
StatePredicate - Interface in org.jmock.internal
 
states(String) - Method in class org.jmock.Mockery
Returns a new state machine that is used to constrain the order in which expectations can occur.
States - Interface in org.jmock
A state machine that is used to constrain the order of invocations.
StatesClause - Interface in org.jmock.syntax
 
submit(Callable<T>) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
submit(Runnable) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
submit(Runnable, T) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 
synchroniseAccessTo(Invokable) - Method in interface org.jmock.api.ThreadingPolicy
 
synchroniseAccessTo(Invokable) - Method in class org.jmock.internal.SingleThreadedPolicy
 
synchroniseAccessTo(Invokable) - Method in class org.jmock.lib.concurrent.Synchroniser
 
Synchroniser - Class in org.jmock.lib.concurrent
A ThreadingPolicy that makes the Mockery thread-safe and helps tests synchronise with background threads.
Synchroniser() - Constructor for class org.jmock.lib.concurrent.Synchroniser
 

T

then(State) - Method in class org.jmock.Expectations
 
ThreadingPolicy - Interface in org.jmock.api
 
ThrowAction - Class in org.jmock.lib.action
Throws an exception.
ThrowAction(Throwable) - Constructor for class org.jmock.lib.action.ThrowAction
 
throwException(Throwable) - Static method in class org.jmock.Expectations
 
tick(long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
Runs time forwards by a given duration, executing any commands scheduled for execution during that time period, and any background tasks spawned by the scheduled tasks.
tick(long) - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
 
Timeout - Interface in org.jmock.lib.concurrent.internal
 
timeRemaining() - Method in class org.jmock.lib.concurrent.internal.FixedTimeout
 
timeRemaining() - Method in class org.jmock.lib.concurrent.internal.InfiniteTimeout
 
timeRemaining() - Method in interface org.jmock.lib.concurrent.internal.Timeout
Returns the time remaining, to be passed to wait or throws TimeoutException if the timeout has expired.
times(int) - Static method in class org.jmock.internal.Formatting
 
toExpectation(Action) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
toString() - Method in error org.jmock.api.ExpectationError
 
toString() - Method in class org.jmock.api.Invocation
 
toString() - Method in class org.jmock.internal.FakeObjectMethods
 
toString() - Method in class org.jmock.internal.InvocationDiverter
 
toString() - Method in class org.jmock.internal.NamedSequence
 
toString() - Method in class org.jmock.internal.StateMachine
 
toString() - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
 
totalActionCount() - Method in class org.jmock.lib.concurrent.Blitzer
 
translate(ExpectationError) - Method in interface org.jmock.api.ExpectationErrorTranslator
Translates the given ExpectationError into an error type compatible with another testing framework.
translate(ExpectationError) - Method in class org.jmock.lib.AssertionErrorTranslator
 
translate(ExpectationError) - Method in class org.jmock.lib.IdentityExpectationErrorTranslator
 

U

UnsupportedSynchronousOperationException - Exception in org.jmock.lib.concurrent
Thrown to report that a DeterministicScheduler has been asked to perform a blocking wait, which is not supported.
UnsupportedSynchronousOperationException(String) - Constructor for exception org.jmock.lib.concurrent.UnsupportedSynchronousOperationException
 

V

VoidAction - Class in org.jmock.lib.action
Returns nothing from a void method.
VoidAction() - Constructor for class org.jmock.lib.action.VoidAction
 

W

waitUntil(StatePredicate) - Method in class org.jmock.lib.concurrent.Synchroniser
Waits for a StatePredicate to become active.
waitUntil(StatePredicate, long) - Method in class org.jmock.lib.concurrent.Synchroniser
Waits up to a timeout for a StatePredicate to become active.
when(StatePredicate) - Method in class org.jmock.Expectations
 
will(Action) - Method in class org.jmock.Expectations
 
will(Action) - Method in interface org.jmock.syntax.ActionClause
 
with - Variable in class org.jmock.Expectations
 
with(Matcher<T>) - Method in class org.jmock.Expectations
Alternatively, use with.is instead, which will work with untyped Hamcrest matchers
with(Matcher<Boolean>) - Method in class org.jmock.Expectations
Alternatively, use with.is instead, which will work with untyped Hamcrest matchers
with(Matcher<Byte>) - Method in class org.jmock.Expectations
Alternatively, use with.is instead, which will work with untyped Hamcrest matchers
with(Matcher<Short>) - Method in class org.jmock.Expectations
Alternatively, use with.is instead, which will work with untyped Hamcrest matchers
with(Matcher<Character>) - Method in class org.jmock.Expectations
Alternatively, use with.is instead, which will work with untyped Hamcrest matchers
with(Matcher<Integer>) - Method in class org.jmock.Expectations
Alternatively, use with.is instead, which will work with untyped Hamcrest matchers
with(Matcher<Long>) - Method in class org.jmock.Expectations
Alternatively, use with.is instead, which will work with untyped Hamcrest matchers
with(Matcher<Float>) - Method in class org.jmock.Expectations
Alternatively, use with.is instead, which will work with untyped Hamcrest matchers
with(Matcher<Double>) - Method in class org.jmock.Expectations
Alternatively, use with.is instead, which will work with untyped Hamcrest matchers
with(boolean) - Method in class org.jmock.Expectations
 
with(byte) - Method in class org.jmock.Expectations
 
with(short) - Method in class org.jmock.Expectations
 
with(char) - Method in class org.jmock.Expectations
 
with(int) - Method in class org.jmock.Expectations
 
with(long) - Method in class org.jmock.Expectations
 
with(float) - Method in class org.jmock.Expectations
 
with(double) - Method in class org.jmock.Expectations
 
with(T) - Method in class org.jmock.Expectations
 
with(Matcher<?>...) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
with(Matcher<T>) - Method in interface org.jmock.syntax.ArgumentConstraintPhrases
 
with(Matcher<Boolean>) - Method in interface org.jmock.syntax.ArgumentConstraintPhrases
 
with(Matcher<Byte>) - Method in interface org.jmock.syntax.ArgumentConstraintPhrases
 
with(Matcher<Short>) - Method in interface org.jmock.syntax.ArgumentConstraintPhrases
 
with(Matcher<Integer>) - Method in interface org.jmock.syntax.ArgumentConstraintPhrases
 
with(Matcher<Long>) - Method in interface org.jmock.syntax.ArgumentConstraintPhrases
 
with(Matcher<Float>) - Method in interface org.jmock.syntax.ArgumentConstraintPhrases
 
with(Matcher<Double>) - Method in interface org.jmock.syntax.ArgumentConstraintPhrases
 
with(Matcher<?>...) - Method in interface org.jmock.syntax.ParametersClause
 
WithClause - Interface in org.jmock.syntax
 
withNoArguments() - Method in class org.jmock.internal.InvocationExpectationBuilder
 
withNoArguments() - Method in interface org.jmock.syntax.ParametersClause
 

A B C D E F G H I J L M N O P R S T U V W

Copyright © 2003-2012 jMock. All Rights Reserved.