Skip navigation links
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.AbstractExpectations
Deprecated.
use AbstractExpectations.aNonNull(java.lang.Class<T>) or AbstractExpectations.any(java.lang.Class<T>) until type inference actually works in a future version of Java
AbstractExpectations - Class in org.jmock
Provides most of the syntax of jMock's "domain-specific language" API.
AbstractExpectations() - Constructor for class org.jmock.AbstractExpectations
 
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(Subscriber) - Method in class org.jmock.example.gettingstarted.Publisher
 
add(Money) - Method in class org.jmock.example.sniper.Money
 
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
 
addListener(T) - Method in class org.jmock.example.announcer.Announcer
 
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.AbstractExpectations
 
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
 
addVerifier(Runnable) - Method in class org.jmock.integration.junit3.VerifyingTestCase
 
AllDeclaredFields - Class in org.jmock.internal
 
AllDeclaredFields() - Constructor for class org.jmock.internal.AllDeclaredFields
 
allowing(Matcher<?>) - Method in class org.jmock.AbstractExpectations
 
allowing(T) - Method in class org.jmock.AbstractExpectations
 
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.AbstractExpectations
Deprecated.
use AbstractExpectations.aNonNull(java.lang.Class<T>) or AbstractExpectations.any(java.lang.Class<T>) until type inference actually works in a future version of Java
announce() - Method in class org.jmock.example.announcer.Announcer
 
Announcer<T extends EventListener> - Class in org.jmock.example.announcer
 
Announcer(Class<? extends T>) - Constructor for class org.jmock.example.announcer.Announcer
 
AnnouncerTests - Class in org.jmock.example.announcer
 
AnnouncerTests() - Constructor for class org.jmock.example.announcer.AnnouncerTests
 
AnnouncerTests.CheckedException - Exception in org.jmock.example.announcer
 
AnnouncerTests.Listener - Interface in org.jmock.example.announcer
 
aNonNull(Class<T>) - Static method in class org.jmock.AbstractExpectations
 
aNull(Class<T>) - Static method in class org.jmock.AbstractExpectations
 
any(Class<T>) - Static method in class org.jmock.AbstractExpectations
 
anything() - Static method in class org.jmock.AbstractExpectations
 
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.AbstractExpectations
 
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.AbstractExpectations
 
atMost(int) - Static method in class org.jmock.internal.Cardinality
 
atMost(int) - Method in interface org.jmock.syntax.CardinalityClause
 
Auction - Interface in org.jmock.example.sniper
 
AuctionException - Exception in org.jmock.example.sniper
 
AuctionException(String) - Constructor for exception org.jmock.example.sniper.AuctionException
 
AuctionException(String, Exception) - Constructor for exception org.jmock.example.sniper.AuctionException
 
AuctionListener - Interface in org.jmock.example.sniper
 
AuctionSniper - Class in org.jmock.example.sniper
 
AuctionSniper(Auction, Money, Money, AuctionSniperListener) - Constructor for class org.jmock.example.sniper.AuctionSniper
 
AuctionSniperListener - Interface in org.jmock.example.sniper
 
AuctionSniperTests - Class in org.jmock.example.sniper
 
AuctionSniperTests() - Constructor for class org.jmock.example.sniper.AuctionSniperTests
 
Auto - Annotation Type in org.jmock.auto
 
awaitTermination(long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
 

B

badEvent() - Method in interface org.jmock.example.announcer.AnnouncerTests.Listener
 
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.AbstractExpectations
 
between(int, int) - Static method in class org.jmock.internal.Cardinality
 
between(int, int) - Method in interface org.jmock.syntax.CardinalityClause
 
bid(Money) - Method in interface org.jmock.example.sniper.Auction
 
bidAccepted(Auction, Money) - Method in interface org.jmock.example.sniper.AuctionListener
 
bidAccepted(Auction, Money) - Method in class org.jmock.example.sniper.AuctionSniper
 
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.AbstractExpectations
 
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
 
canImposterise(Class<?>) - Method in class org.jmock.lib.legacy.ClassImposteriser
 
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
 
CheckedException() - Constructor for exception org.jmock.example.announcer.AnnouncerTests.CheckedException
 
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
 
checkWasFullySpecified() - Method in class org.jmock.internal.InvocationExpectationBuilder
 
ClassFromOtherClassLoader - Class in <Unnamed>
 
ClassFromOtherClassLoader() - Constructor for class ClassFromOtherClassLoader
 
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
 
ClassWithSuperclassToWorkAroundCglibBug() - Constructor for class org.jmock.lib.legacy.ClassImposteriser.ClassWithSuperclassToWorkAroundCglibBug
 
Clock - Interface in org.jmock.example.timedcache
 
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
 
compareTo(Money) - Method in class org.jmock.example.sniper.Money
 
constrainAsNextInSequence(InvocationExpectation) - Method in class org.jmock.internal.NamedSequence
 
constrainAsNextInSequence(InvocationExpectation) - Method in interface org.jmock.Sequence
 
context - Variable in class org.jmock.example.gettingstarted.GettingStartedJUnit4Mockomatic
 
context - Variable in class org.jmock.example.gettingstarted.GettingStartedJUnit4Rule
 
context - Variable in class org.jmock.example.gettingstarted.GettingStartedJUnit4RuleMockomatic
 
context() - Method in class org.jmock.integration.junit3.MockObjectTestCase
 
createDefaultResults() - Static 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
 
createTest() - Method in class org.jmock.integration.junit4.JMock
Deprecated.
 
currentBuilder() - Method in class org.jmock.AbstractExpectations
 
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
 
delay(T) - 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.lib.script.ScriptedAction
 
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
 
DJ - Class in org.jmock.example.qcon
 
DJ(Playlist, MediaControl) - Constructor for class org.jmock.example.qcon.DJ
 
DJTests - Class in org.jmock.example.qcon
 
DJTests() - Constructor for class org.jmock.example.qcon.DJTests
 
doAll(Action...) - Static method in class org.jmock.AbstractExpectations
 
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
 
doSomething() - Method in class ClassFromOtherClassLoader
 
doSomething() - Method in interface InterfaceFromOtherClassLoader
 
doSomething() - Method in interface org.jmock.testjar.TypeInSignedJar
 
doubleIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 
dump(InputStream) - Static method in class org.jmock.ExpectationsCreator
 

E

equal(T) - Static method in class org.jmock.AbstractExpectations
 
equals(Object) - Method in class org.jmock.api.Invocation
 
equals(Invocation) - Method in class org.jmock.api.Invocation
 
equals(Object) - Method in class org.jmock.example.sniper.Money
 
eventA() - Method in interface org.jmock.example.announcer.AnnouncerTests.Listener
 
eventB() - Method in interface org.jmock.example.announcer.AnnouncerTests.Listener
 
eventWithArguments(int, int) - Method in interface org.jmock.example.announcer.AnnouncerTests.Listener
 
exactly(int) - Method in class org.jmock.AbstractExpectations
 
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
 
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
Backward compatibility Methods added with ASM
Expectations() - Constructor for class org.jmock.Expectations
 
ExpectationsCreator - Class in org.jmock
 
ExpectationsCreator() - Constructor for class org.jmock.ExpectationsCreator
 

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
 
GettingStartedJUnit3 - Class in org.jmock.example.gettingstarted
 
GettingStartedJUnit3() - Constructor for class org.jmock.example.gettingstarted.GettingStartedJUnit3
 
GettingStartedJUnit3Mockomatic - Class in org.jmock.example.gettingstarted
 
GettingStartedJUnit3Mockomatic() - Constructor for class org.jmock.example.gettingstarted.GettingStartedJUnit3Mockomatic
 
GettingStartedJUnit4 - Class in org.jmock.example.gettingstarted
 
GettingStartedJUnit4() - Constructor for class org.jmock.example.gettingstarted.GettingStartedJUnit4
 
GettingStartedJUnit4Mockomatic - Class in org.jmock.example.gettingstarted
 
GettingStartedJUnit4Mockomatic() - Constructor for class org.jmock.example.gettingstarted.GettingStartedJUnit4Mockomatic
 
GettingStartedJUnit4Rule - Class in org.jmock.example.gettingstarted
 
GettingStartedJUnit4Rule() - Constructor for class org.jmock.example.gettingstarted.GettingStartedJUnit4Rule
 
GettingStartedJUnit4RuleMockomatic - Class in org.jmock.example.gettingstarted
 
GettingStartedJUnit4RuleMockomatic() - Constructor for class org.jmock.example.gettingstarted.GettingStartedJUnit4RuleMockomatic
 

H

hashCode() - Method in class org.jmock.api.Invocation
 
hashCode() - Method in class org.jmock.example.sniper.Money
 
hasTrackFor(String) - Method in interface org.jmock.example.qcon.Playlist
 

I

IdentityExpectationErrorTranslator - Class in org.jmock.lib
An ExpectationErrorTranslator that doesn't do any translation.
ignoring(T) - Method in class org.jmock.AbstractExpectations
 
ignoring(Matcher<?>) - Method in class org.jmock.AbstractExpectations
 
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.
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.AbstractExpectations
 
inSequences(Sequence...) - Method in class org.jmock.AbstractExpectations
 
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
 
InStateOrderingConstraint - Class in org.jmock.internal
 
InStateOrderingConstraint(StatePredicate) - Constructor for class org.jmock.internal.InStateOrderingConstraint
 
InterfaceFromOtherClassLoader - Interface in <Unnamed>
 
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
 
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 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
 
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.
load(Object) - Method in interface org.jmock.example.timedcache.ObjectLoader
 
LocationAware - Interface in org.jmock.example.qcon
 
locationChangedTo(String) - Method in class org.jmock.example.qcon.DJ
 
locationChangedTo(String) - Method in interface org.jmock.example.qcon.LocationAware
 
longIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 
lookup(Object) - Method in class org.jmock.example.timedcache.TimedCache
 

M

main(String...) - Static method in class org.jmock.ExpectationsCreator
 
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
 
MediaControl - Interface in org.jmock.example.qcon
 
mediaFinished() - Method in class org.jmock.example.qcon.DJ
 
mediaFinished() - Method in interface org.jmock.example.qcon.MediaTracker
 
MediaTracker - Interface in org.jmock.example.qcon
 
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
 
min(Money, Money) - Static method in class org.jmock.example.sniper.Money
 
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.
 
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.
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
 
Mockomatic - Class in org.jmock.auto.internal
 
Mockomatic(Mockery) - Constructor for class org.jmock.auto.internal.Mockomatic
 
Money - Class in org.jmock.example.sniper
 
Money(BigDecimal) - Constructor for class org.jmock.example.sniper.Money
 
Money(int) - Constructor for class org.jmock.example.sniper.Money
 
Money(double) - Constructor for class org.jmock.example.sniper.Money
 

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.AbstractExpectations
 
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
 
notAllSatisfied(SelfDescribing) - Static method in error org.jmock.api.ExpectationError
 

O

ObjectLoader - Interface in org.jmock.example.timedcache
 
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.AbstractExpectations
 
one(T) - Method in class org.jmock.AbstractExpectations
Deprecated.
Use oneOf instead.
one(T) - Method in interface org.jmock.syntax.CardinalityClause
 
oneOf(T) - Method in class org.jmock.AbstractExpectations
 
oneOf(T) - Method in interface org.jmock.syntax.CardinalityClause
 
oneSubscriberReceivesAMessage() - Method in class org.jmock.example.gettingstarted.GettingStartedJUnit4
 
oneSubscriberReceivesAMessage() - Method in class org.jmock.example.gettingstarted.GettingStartedJUnit4Mockomatic
 
oneSubscriberReceivesAMessage() - Method in class org.jmock.example.gettingstarted.GettingStartedJUnit4Rule
 
oneSubscriberReceivesAMessage() - Method in class org.jmock.example.gettingstarted.GettingStartedJUnit4RuleMockomatic
 
OrderingConstraint - Interface in org.jmock.internal
 
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 its published plug-in points.
org.jmock.auto - package org.jmock.auto
 
org.jmock.auto.internal - package org.jmock.auto.internal
 
org.jmock.example.announcer - package org.jmock.example.announcer
 
org.jmock.example.gettingstarted - package org.jmock.example.gettingstarted
 
org.jmock.example.qcon - package org.jmock.example.qcon
 
org.jmock.example.sniper - package org.jmock.example.sniper
 
org.jmock.example.timedcache - package org.jmock.example.timedcache
 
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.internal - package org.jmock.internal
This package contains internal implementation details.
org.jmock.internal.matcher - package org.jmock.internal.matcher
 
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.concurrent.internal - package org.jmock.lib.concurrent.internal
 
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.
org.jmock.testjar - package org.jmock.testjar
 

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
 
perform(String) - Static method in class org.jmock.lib.script.ScriptedAction
Creates an action that performs the given script.
play(String) - Method in interface org.jmock.example.qcon.MediaControl
 
Playlist - Interface in org.jmock.example.qcon
 
pop() - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
 
possiblyExpectingExceptions(FrameworkMethod, Object, Statement) - Method in class org.jmock.integration.junit4.JMock
Deprecated.
ProxiedObjectIdentity - Class in org.jmock.internal
 
ProxiedObjectIdentity(Invokable) - Constructor for class org.jmock.internal.ProxiedObjectIdentity
 
publish(String) - Method in class org.jmock.example.gettingstarted.Publisher
 
Publisher - Class in org.jmock.example.gettingstarted
 
Publisher() - Constructor for class org.jmock.example.gettingstarted.Publisher
 

R

receive(String) - Method in interface org.jmock.example.gettingstarted.Subscriber
 
ReceiverClause - Interface in org.jmock.syntax
 
ReloadPolicy - Interface in org.jmock.example.timedcache
 
remove(T) - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
 
removeListener(T) - Method in class org.jmock.example.announcer.Announcer
 
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 default value for the invoked method's result type.
ReturnDefaultValueAction(Imposteriser, Map<Class<?>, Object>) - Constructor for class org.jmock.internal.ReturnDefaultValueAction
 
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.AbstractExpectations
 
returnEnumeration(T...) - Static method in class org.jmock.AbstractExpectations
 
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.AbstractExpectations
 
returnIterator(T...) - Static method in class org.jmock.AbstractExpectations
 
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.AbstractExpectations
 
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.AbstractExpectations
 
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
 
SearchingClassLoader - Class in org.jmock.internal
 
SearchingClassLoader(ClassLoader, ClassLoader) - Constructor for class org.jmock.internal.SearchingClassLoader
 
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.
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.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.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.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.
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.
setUp() - Method in class org.jmock.example.announcer.AnnouncerTests
 
setUp() - Method in class org.jmock.example.qcon.DJTests
 
shortIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
 
shouldReload(Date, Date) - Method in interface org.jmock.example.timedcache.ReloadPolicy
 
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
 
sniperBidFailed(AuctionSniper, AuctionException) - Method in interface org.jmock.example.sniper.AuctionSniperListener
 
sniperFinished(AuctionSniper) - Method in interface org.jmock.example.sniper.AuctionSniperListener
 
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.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
 
Subscriber - Interface in org.jmock.example.gettingstarted
 
subtract(Money) - Method in class org.jmock.example.sniper.Money
 
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

testAnnouncesToRegisteredListenersInOrderOfAddition() - Method in class org.jmock.example.announcer.AnnouncerTests
 
testCanRemoveListeners() - Method in class org.jmock.example.announcer.AnnouncerTests
 
testCatchesExceptionsAndReportsThemToErrorListener() - Method in class org.jmock.example.sniper.AuctionSniperTests
 
testDoesNotAllowListenersToThrowCheckedExceptions() - Method in class org.jmock.example.announcer.AnnouncerTests
 
testDoesNotPlayTrackAgainIfStillInTheSameLocation() - Method in class org.jmock.example.qcon.DJTests
 
testLoadsObjectThatIsNotCached() - Method in class org.jmock.example.timedcache.TimedCacheTests
 
testOneSubscriberReceivesAMessage() - Method in class org.jmock.example.gettingstarted.GettingStartedJUnit3
 
testOneSubscriberReceivesAMessage() - Method in class org.jmock.example.gettingstarted.GettingStartedJUnit3Mockomatic
 
testPassesEventArgumentsToListeners() - Method in class org.jmock.example.announcer.AnnouncerTests
 
testPlaysNewTrackAsSoonAsLocationChangesIfPreviousTrackFinishedWhileInSameLocation() - Method in class org.jmock.example.qcon.DJTests
 
testPlaysTrackForCurrentLocationWhenPreviousTrackFinishesIfLocationChangedWhileTrackWasPlaying() - Method in class org.jmock.example.qcon.DJTests
 
testReloadsCachedObjectAfterTimeout() - Method in class org.jmock.example.timedcache.TimedCacheTests
 
testReturnsCachedObjectWithinTimeout() - Method in class org.jmock.example.timedcache.TimedCacheTests
 
testStartsPlayingTrackForCurrentLocationWhenLocationFirstDetected() - Method in class org.jmock.example.qcon.DJTests
 
testTriesToBeatTheLatestHighestBid() - Method in class org.jmock.example.sniper.AuctionSniperTests
 
testWillAnnounceItHasFinishedIfPriceGoesAboveMaximum() - Method in class org.jmock.example.sniper.AuctionSniperTests
 
testWillLimitBidToMaximum() - Method in class org.jmock.example.sniper.AuctionSniperTests
 
testWillNotBidPriceGreaterThanMaximum() - Method in class org.jmock.example.sniper.AuctionSniperTests
 
testWillNotBidWhenToldAboutBidsOnOtherItems() - Method in class org.jmock.example.sniper.AuctionSniperTests
 
then(State) - Method in class org.jmock.AbstractExpectations
 
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.AbstractExpectations
 
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
 
time() - Method in interface org.jmock.example.timedcache.Clock
 
TimedCache - Class in org.jmock.example.timedcache
 
TimedCache(ObjectLoader, Clock, ReloadPolicy) - Constructor for class org.jmock.example.timedcache.TimedCache
 
TimedCacheTests - Class in org.jmock.example.timedcache
 
TimedCacheTests() - Constructor for class org.jmock.example.timedcache.TimedCacheTests
 
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
 
to(Class<? extends T>) - Static method in class org.jmock.example.announcer.Announcer
 
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.example.sniper.Money
 
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
 
trackFor(String) - Method in interface org.jmock.example.qcon.Playlist
 
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
 
TypeInSignedJar - Interface in org.jmock.testjar
Can't use the default package across shared and unshared jars

U

unexpected(String, Invocation) - Static method in error org.jmock.api.ExpectationError
 
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.AbstractExpectations
 
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.AbstractExpectations
 
will(Action) - Method in interface org.jmock.syntax.ActionClause
 
with - Variable in class org.jmock.AbstractExpectations
Syntactic sugar for specifying arguments that are matchers for primitive types or are untyped matchers.
with(Matcher<T>) - Method in class org.jmock.AbstractExpectations
For Matchers with primitive types use the with field, for example:
with(boolean) - Method in class org.jmock.AbstractExpectations
 
with(byte) - Method in class org.jmock.AbstractExpectations
 
with(short) - Method in class org.jmock.AbstractExpectations
 
with(char) - Method in class org.jmock.AbstractExpectations
 
with(int) - Method in class org.jmock.AbstractExpectations
 
with(long) - Method in class org.jmock.AbstractExpectations
 
with(float) - Method in class org.jmock.AbstractExpectations
 
with(double) - Method in class org.jmock.AbstractExpectations
 
with(T) - Method in class org.jmock.AbstractExpectations
 
with(Matcher<?>...) - Method in class org.jmock.internal.InvocationExpectationBuilder
 
with(Matcher<T>) - 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 
Skip navigation links

Copyright © 2003–2018 jMock. All rights reserved.