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
 
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.
addVerifier(Runnable) - Method in class org.jmock.integration.junit3.VerifyingTestCase
 
allowing(Matcher<?>) - Method in class org.jmock.Expectations
 
allowing(T) - Method in class org.jmock.Expectations
 
allowing(T) - Method in interface org.jmock.syntax.CardinalityClause
 
allowing(Matcher<?>) - Method in interface org.jmock.syntax.CardinalityClause
 
allowsMoreInvocations() - Method in interface org.jmock.api.Expectation
Can more Invocations expected by this Expectation still occur?
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
 
apply(Statement, FrameworkMethod, Object) - Method in class org.jmock.integration.junit4.JUnitRuleMockery
 
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.
assertMockeryIsSatisfied(Object) - Method in class org.jmock.integration.junit4.JMock
Deprecated.  
atLeast(int) - Method in class org.jmock.Expectations
 
atLeast(int) - Method in interface org.jmock.syntax.CardinalityClause
 
atMost(int) - Method in class org.jmock.Expectations
 
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 interface org.jmock.States
Put the state machine into state nextState.
between(int, int) - Method in class org.jmock.Expectations
 
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, int, ThreadFactory) - 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
 
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
 
canImposterise(Class<?>) - Method in class org.jmock.lib.legacy.ClassImposteriser
 
CardinalityClause - Interface in org.jmock.syntax
 
charIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 
checking(ExpectationBuilder) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Specify expectations upon the mock objects in the test.
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
 
ClassImposteriser - Class in org.jmock.lib.legacy
This class lets you imposterise abstract and concrete classes without calling the constructors of the mocked class.
ClassImposteriser.ClassWithSuperclassToWorkAroundCglibBug - Class in org.jmock.lib.legacy
 
ClassImposteriser.ClassWithSuperclassToWorkAroundCglibBug() - Constructor for class org.jmock.lib.legacy.ClassImposteriser.ClassWithSuperclassToWorkAroundCglibBug
 
constrainAsNextInSequence(InvocationExpectation) - Method in interface org.jmock.Sequence
 
context() - Method in class org.jmock.integration.junit3.MockObjectTestCase
 
createTest() - Method in class org.jmock.integration.junit4.JMock
Deprecated.  
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
 
describeMismatch(Invocation, Description) - Method in interface org.jmock.api.Expectation
 
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.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.lib.script.ScriptedAction
 
describeTo(Description) - Method in class org.jmock.Mockery
 
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
 
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) - 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
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

floatIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 

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
 
imposterise(Invokable, Class<T>, Class<?>...) - Method in class org.jmock.lib.legacy.ClassImposteriser
 
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.
inSequence(Sequence) - Method in class org.jmock.Expectations
 
inSequences(Sequence...) - Method in class org.jmock.Expectations
 
INSTANCE - Static variable in class org.jmock.integration.junit3.JUnit3ErrorTranslator
 
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.legacy.ClassImposteriser
 
INSTANCE - Static variable in class org.jmock.lib.RetroNamingScheme
 
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
 
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.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
 
invoke(Invocation) - Method in class org.jmock.lib.script.ScriptedAction
 
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 interface org.jmock.syntax.StatesClause
 
is(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 
isCurrently(String) - Static method in class org.jmock.lib.CurrentStateMatcher
 
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 interface org.jmock.syntax.StatesClause
 
isNotCurrently(String) - Static method in class org.jmock.lib.CurrentStateMatcher
 
isSatisfied() - Method in interface org.jmock.api.Expectation
Have enough Invocations expected by this Expectation occurred?
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
 
JMock - Class in org.jmock.integration.junit4
Deprecated. For JUnit 4 use JUnitRuleMockery
JMock(Class<?>) - Constructor for class org.jmock.integration.junit4.JMock
Deprecated.  
JUnit3ErrorTranslator - Class in org.jmock.integration.junit3
Translates ExpectationErrors into JUnit's AssertionFailedErrors.
JUnit3Mockery - Class in org.jmock.integration.junit3
A Mockery that reports expectation errors as JUnit 3 test failures.
JUnit3Mockery() - Constructor for class org.jmock.integration.junit3.JUnit3Mockery
 
JUnit4Mockery - Class in org.jmock.integration.junit4
A Mockery that reports expectation errors as JUnit 4 test failures.
JUnit4Mockery() - Constructor for class org.jmock.integration.junit4.JUnit4Mockery
 
JUnitRuleMockery - Class in org.jmock.integration.junit4
A JUnitRuleMockery is a JUnit Rule that manages JMock expectations and allowances, and asserts that expectations have been met after each test has finished.
JUnitRuleMockery() - Constructor for class org.jmock.integration.junit4.JUnitRuleMockery
 

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?
matchesSafely(States) - Method in class org.jmock.lib.CurrentStateMatcher
 
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
 
Mock - Annotation Type in org.jmock.auto
 
mock(Class<T>, String) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Create a mock object of type T with an explicit name.
mock(Class<T>) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Create a mock object of type T with a name derived from its type.
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
 
mockeryOf(Object) - Method in class org.jmock.integration.junit4.JMock
Deprecated.  
MockObjectNamingScheme - Interface in org.jmock.api
Creates names for mock objects that have not explicitly been given a name.
MockObjectTestCase - Class in org.jmock.integration.junit3
A TestCase that supports testing with mock objects.
MockObjectTestCase() - Constructor for class org.jmock.integration.junit3.MockObjectTestCase
 
MockObjectTestCase(String) - Constructor for class org.jmock.integration.junit3.MockObjectTestCase
 

N

never(T) - Method in class org.jmock.Expectations
 
never(T) - Method in interface org.jmock.syntax.CardinalityClause
 
NO_PARAMETERS - Static variable in class org.jmock.api.Invocation
 

O

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
 
org.jmock - package org.jmock
The jMock "Domain-Specific Embedded Language" API.
org.jmock.api - package org.jmock.api
The stable API that is used to extend jMock at it's published plug-in points.
org.jmock.auto - package org.jmock.auto
 
org.jmock.integration.junit3 - package org.jmock.integration.junit3
Integrates jMock with JUnit 3.
org.jmock.integration.junit4 - package org.jmock.integration.junit4
Integrates jMock with JUnit 4.
org.jmock.lib - package org.jmock.lib
Implementations of the core interfaces that are used to adjust or extend jMock's basic functionality.
org.jmock.lib.action - package org.jmock.lib.action
Actions that fake the behaviour of mocked invocations.
org.jmock.lib.concurrent - package org.jmock.lib.concurrent
Classes to help test concurrent code with jMock.
org.jmock.lib.legacy - package org.jmock.lib.legacy
Plugins that make it easier to use jMock with legacy code.
org.jmock.lib.script - package org.jmock.lib.script
Plugins that make it easier to write custom actions by scripting their behaviour with BeanShell.
org.jmock.syntax - package org.jmock.syntax
Interfaces that define jMock's Domain Specific Embedded Language.

P

ParametersClause - Interface in org.jmock.syntax
 
perform(String) - Static method in class org.jmock.lib.script.ScriptedAction
Creates an action that performs the given script.
possiblyExpectingExceptions(FrameworkMethod, Object, Statement) - Method in class org.jmock.integration.junit4.JMock
Deprecated. 

R

ReceiverClause - Interface in org.jmock.syntax
 
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
 
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
 
runBare() - Method in class org.jmock.integration.junit3.VerifyingTestCase
 
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
 
ScriptedAction - Class in org.jmock.lib.script
An Action that executes a BeanShell script.
ScriptedAction(String) - Constructor for class org.jmock.lib.script.ScriptedAction
 
sequence(String) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Returns a new sequence that is used to constrain the order in which expectations can occur.
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.
setDefaultResultForType(Class<?>, Object) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Sets the result returned for the given type when no return value has been explicitly specified in the expectation.
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.integration.junit3.MockObjectTestCase
Changes the imposteriser used to adapt mock objects to the mocked type.
setImposteriser(Imposteriser) - Method in class org.jmock.Mockery
Changes the imposteriser used to adapt mock objects to the mocked type.
setNamingScheme(MockObjectNamingScheme) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Changes the naming scheme used to generate names for mock objects that have not been explicitly named in the test.
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.
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
 
startsAs(String) - Method in interface org.jmock.States
Put the state machine into state initialState.
states(String) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Returns a new state machine that is used to constrain the order in which expectations can occur.
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.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.
toString() - Method in error org.jmock.api.ExpectationError
 
toString() - Method in class org.jmock.api.Invocation
 
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.integration.junit3.JUnit3ErrorTranslator
 
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

verify() - Method in class org.jmock.integration.junit3.VerifyingTestCase
 
verify(FrameworkMethod, Object, Statement) - Method in class org.jmock.integration.junit4.JMock
Deprecated.  
VerifyingTestCase - Class in org.jmock.integration.junit3
A TestCase that verifies postconditions after the test has run and before the fixture has been torn down.
VerifyingTestCase() - Constructor for class org.jmock.integration.junit3.VerifyingTestCase
 
VerifyingTestCase(String) - Constructor for class org.jmock.integration.junit3.VerifyingTestCase
 
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
 
where(String, Object) - Method in class org.jmock.lib.script.ScriptedAction
Defines a variable that can be referred to by the script.
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<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 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