A B C D E F G H I J K L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- a(Class<?>) - Static method in class org.jmock.AbstractExpectations
-
Deprecated.use
AbstractExpectations.aNonNull(java.lang.Class<T>)
orAbstractExpectations.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 - Variable in class org.jmock.internal.InvocationExpectation
- Action - Interface in org.jmock.api
-
An object that fakes the behaviour of an
InvocationExpectation
. - ActionClause - Interface in org.jmock.syntax
- actionCount - Variable in class org.jmock.lib.concurrent.Blitzer
- actionIsDefault - Variable in class org.jmock.internal.InvocationExpectation
- actions - Variable in class org.jmock.lib.action.ActionSequence
- actions - Variable in class org.jmock.lib.action.DoAllAction
- 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
- actualInvocations - Variable in class org.jmock.Mockery
- add(long, T) - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
- add(Expectation) - Method in interface org.jmock.internal.ExpectationCollector
- add(Expectation) - Method in class org.jmock.internal.InvocationDispatcher
- add(Subscriber) - Method in class org.jmock.example.gettingstarted.Publisher
- add(Money) - Method in class org.jmock.example.sniper.Money
- 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.
- addIfNewElement(List<ClassLoader>, ClassLoader) - Static method in class org.jmock.internal.SearchingClassLoader
- 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(Matcher<?>) - Method in interface org.jmock.syntax.CardinalityClause
- allowing(T) - Method in class org.jmock.AbstractExpectations
- allowing(T) - Method in interface org.jmock.syntax.CardinalityClause
- ALLOWING - Static variable in class org.jmock.internal.Cardinality
- allowsInvocationNow() - Method in class org.jmock.internal.InStateOrderingConstraint
- allowsInvocationNow() - Method in class org.jmock.internal.NamedSequence.InSequenceOrderingConstraint
- allowsInvocationNow() - Method in interface org.jmock.internal.OrderingConstraint
- allowsMoreInvocations() - Method in interface org.jmock.api.Expectation
-
Can more
Invocation
s expected by this Expectation still occur? - allowsMoreInvocations() - Method in class org.jmock.internal.InvocationExpectation
- allowsMoreInvocations(int) - Method in class org.jmock.internal.Cardinality
- 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
- amount - Variable in class org.jmock.example.sniper.Money
- an(Class<?>) - Static method in class org.jmock.AbstractExpectations
-
Deprecated.use
AbstractExpectations.aNonNull(java.lang.Class<T>)
orAbstractExpectations.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
- announce(Method, Object[]) - Method in class org.jmock.example.announcer.Announcer
- announcer - Variable in class org.jmock.example.announcer.AnnouncerTests
- Announcer<T extends java.util.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
- ANY_PARAMETERS - Static variable in class org.jmock.internal.InvocationExpectation
- AnyParametersMatcher() - Constructor for class org.jmock.internal.InvocationExpectation.AnyParametersMatcher
- 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
- asMockedType(T, Object) - Method in class org.jmock.internal.InvocationExpectationBuilder
- AssertionErrorTranslator - Class in org.jmock.lib
-
Translates
ExpectationError
s intoAssertionError
s that several test frameworks, including JUnit 4 and TestNG, use to report errors. - AssertionErrorTranslator() - Constructor for class org.jmock.lib.AssertionErrorTranslator
- 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 - Variable in class org.jmock.example.sniper.AuctionSniperTests
- 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
- autoInstantiate(Object, Field) - Method in class org.jmock.auto.internal.Mockomatic
- autoInstantiateSequence(Field, Object) - Method in class org.jmock.auto.internal.Mockomatic
- autoInstantiateStates(Field, Object) - Method in class org.jmock.auto.internal.Mockomatic
- autoMock(Object, Field) - Method in class org.jmock.auto.internal.Mockomatic
- awaitTermination(long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
B
- badEvent() - Method in interface org.jmock.example.announcer.AnnouncerTests.Listener
- beatableBid - Variable in class org.jmock.example.sniper.AuctionSniperTests
- 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
- bidIncrement - Variable in class org.jmock.example.sniper.AuctionSniper
- blitz(long, Runnable) - Method in class org.jmock.lib.concurrent.Blitzer
- blitz(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
- blockingOperationsNotSupported() - Method in class org.jmock.lib.concurrent.DeterministicScheduler
- booleanIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
- BOX_TYPES - Static variable in class org.jmock.api.Invocation
- builders - Variable in class org.jmock.AbstractExpectations
- 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
- cache - Variable in class org.jmock.example.timedcache.TimedCache
- cache - Variable in class org.jmock.example.timedcache.TimedCacheTests
- call() - Method in class org.jmock.lib.concurrent.DeterministicScheduler.CallableRunnableAdapter
- CallableRunnableAdapter(Runnable, T) - Constructor for class org.jmock.lib.concurrent.DeterministicScheduler.CallableRunnableAdapter
- 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
- cancel(boolean) - Method in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- 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
- cannotCreateNewInstance(Class<?>) - Static method in class org.jmock.internal.ReturnDefaultValueAction
- cannotDefineExpectation() - Method in class org.jmock.internal.ObjectMethodExpectationBouncer
- capture - Variable in class org.jmock.internal.InvocationToExpectationTranslator
- CaptureControl - Interface in org.jmock.internal
- capturedParameterMatchers - Variable in class org.jmock.internal.InvocationExpectationBuilder
- captureExpectationTo(ExpectationCapture) - Method in interface org.jmock.internal.CaptureControl
- captureExpectationTo(ExpectationCapture) - Method in class org.jmock.Mockery.MockObject
- captureExpectedObject(T) - Method in class org.jmock.internal.InvocationExpectationBuilder
- cardinality - Variable in class org.jmock.internal.InvocationExpectation
- 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.
- checkLastExpectationWasFullySpecified() - Method in class org.jmock.AbstractExpectations
- checkParameterMatcherCount(Invocation) - Method in class org.jmock.internal.InvocationExpectationBuilder
- checkReturnTypeCompatibility(Object) - Method in class org.jmock.api.Invocation
- checkRunningOnTestThread() - Method in class org.jmock.internal.SingleThreadedPolicy
- checkTypeCompatiblity(Class<?>[]) - Method in class org.jmock.lib.action.ThrowAction
- 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() - Constructor for class org.jmock.lib.legacy.ClassImposteriser
- ClassImposteriser.ClassWithSuperclassToWorkAroundCglibBug - Class in org.jmock.lib.legacy
- ClassWithSuperclassToWorkAroundCglibBug() - Constructor for class org.jmock.lib.legacy.ClassImposteriser.ClassWithSuperclassToWorkAroundCglibBug
- clock - Variable in class org.jmock.example.timedcache.TimedCache
- clock - Variable in class org.jmock.example.timedcache.TimedCacheTests
- Clock - Interface in org.jmock.example.timedcache
- collection - Variable in class org.jmock.lib.action.ReturnEnumerationAction
- collection - Variable in class org.jmock.lib.action.ReturnIteratorAction
- collectionOrMapInstanceFor(Class<?>) - Static method in class org.jmock.internal.ReturnDefaultValueAction
- 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
- command - Variable in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- commands - Variable in class org.jmock.lib.concurrent.DeterministicExecutor
- compareTo(Delayed) - Method in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- compareTo(Money) - Method in class org.jmock.example.sniper.Money
- CONCRETE_COLLECTION_TYPES - Static variable in class org.jmock.internal.ReturnDefaultValueAction
- 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.GettingStartedJUnit4
- 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 - Variable in class org.jmock.example.timedcache.TimedCacheTests
- context - Variable in class org.jmock.integration.junit3.MockObjectTestCase
- 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 - Variable in class org.jmock.AbstractExpectations
- currentBuilder() - Method in class org.jmock.AbstractExpectations
- currentLocationName - Variable in class org.jmock.example.qcon.DJ
- currentState - Variable in class org.jmock.internal.StateMachine
- 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
- declaringType - Variable in class org.jmock.internal.InvocationDiverter
- DEFAULT_THREAD_COUNT - Static variable in class org.jmock.lib.concurrent.Blitzer
-
The default number of threads to run concurrently.
- defaultAction - Variable in class org.jmock.internal.InvocationToExpectationTranslator
- defaultAction - Variable in class org.jmock.Mockery
- 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
- defineParameters(Interpreter, Invocation) - Method in class org.jmock.lib.script.ScriptedAction
- delay - Variable in class org.jmock.lib.concurrent.internal.DeltaQueue.Node
- delay() - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
- delay(T) - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
- deltaQueue - Variable in class org.jmock.lib.concurrent.DeterministicScheduler
- DeltaQueue<T> - Class in org.jmock.lib.concurrent.internal
- DeltaQueue() - Constructor for class org.jmock.lib.concurrent.internal.DeltaQueue
- DeltaQueue.Node<T> - Class in org.jmock.lib.concurrent.internal
- describe(Description, Iterable<? extends SelfDescribing>) - Method in class org.jmock.internal.InvocationDispatcher
- describedWith(List<Expectation>, Invocation) - Method in class org.jmock.internal.InvocationDispatcher
- describeExpectation(Description) - Method in class org.jmock.internal.InvocationExpectation
- describeHistory(Description) - Method in class org.jmock.Mockery
- describeMethod(Description) - Method in class org.jmock.internal.InvocationExpectation
- 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
- describeMismatch(Invocation, Description) - Method in class org.jmock.Mockery
- 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
- describeSideEffects(Description) - Method in class org.jmock.internal.InvocationExpectation
- 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.NamedSequence.InSequenceOrderingConstraint
- 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
- description - Variable in class org.jmock.lib.action.CustomAction
- 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
- 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 callsrunNextPendingCommand
,runUntilIdle
ortick
. - DeterministicScheduler() - Constructor for class org.jmock.lib.concurrent.DeterministicScheduler
- DeterministicScheduler.CallableRunnableAdapter<T> - Class in org.jmock.lib.concurrent
- DeterministicScheduler.ScheduledTask<T> - Class in org.jmock.lib.concurrent
- dispatch(Invocation) - Method in class org.jmock.internal.InvocationDispatcher
- dispatch(Invocation) - Method in class org.jmock.Mockery
- dispatcher - Variable in class org.jmock.Mockery
- dj - Variable in class org.jmock.example.qcon.DJTests
- 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
- duration - Variable in class org.jmock.lib.concurrent.internal.FixedTimeout
E
- elementMatchers - Variable in class org.jmock.internal.matcher.AllParametersMatcher
- elements - Variable in class org.jmock.internal.NamedSequence
- equal(T) - Static method in class org.jmock.AbstractExpectations
- equalMatchersFor(Object[]) - Static method in class org.jmock.internal.matcher.AllParametersMatcher
- equalMatchersFor(Object[]) - Static method in class org.jmock.internal.matcher.ParametersMatcher
- equals(Object) - Method in class org.jmock.api.Invocation
- equals(Object) - Method in class org.jmock.example.sniper.Money
- equals(Invocation) - Method in class org.jmock.api.Invocation
- 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
- executorService - Variable in class org.jmock.lib.concurrent.Blitzer
- expectation - Variable in class org.jmock.internal.InvocationExpectationBuilder
- 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 - Variable in class org.jmock.Mockery
- 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 - Variable in class org.jmock.internal.InvocationDispatcher
- 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
- expected - Variable in class org.jmock.lib.CurrentStateMatcher
- expectedMethod - Variable in class org.jmock.internal.matcher.MethodMatcher
F
- failIfReturnTypeIsNotNull(Object) - Method in class org.jmock.api.Invocation
- failIfReturnTypeIsPrimitive() - Method in class org.jmock.api.Invocation
- failure - Variable in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- 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
- fetchTime - Variable in class org.jmock.example.timedcache.TimedCacheTests
- fillIn(Object) - Method in class org.jmock.auto.internal.Mockomatic
- fillIn(Object, List<Field>) - Method in class org.jmock.auto.internal.Mockomatic
- FINALIZE_METHOD - Static variable in class org.jmock.lib.legacy.ClassImposteriser
- findClass(String) - Method in class org.jmock.internal.SearchingClassLoader
- findFinalizeMethod() - Static method in class org.jmock.lib.legacy.ClassImposteriser
- findMockeryField(Class<?>) - Static method in class org.jmock.integration.junit4.JMock
-
Deprecated.
- firstError - Variable in class org.jmock.lib.concurrent.Synchroniser
- firstError - Variable in class org.jmock.Mockery
- 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
- futureResult - Variable in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
G
- get() - Method in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- get(long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- getDelay(TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- 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
- head - Variable in class org.jmock.lib.concurrent.internal.DeltaQueue
I
- IdentityExpectationErrorTranslator - Class in org.jmock.lib
-
An
ExpectationErrorTranslator
that doesn't do any translation. - IdentityExpectationErrorTranslator() - Constructor for class org.jmock.lib.IdentityExpectationErrorTranslator
- IGNORED_METHODS - Static variable in class org.jmock.lib.legacy.ClassImposteriser
- ignoring(Matcher<?>) - Method in class org.jmock.AbstractExpectations
- ignoring(Matcher<?>) - Method in interface org.jmock.syntax.CardinalityClause
- ignoring(T) - Method in class org.jmock.AbstractExpectations
- ignoring(T) - 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
Invocation
s to anInvokable
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 - Variable in class org.jmock.internal.ReturnDefaultValueAction
- imposteriser - Variable in class org.jmock.Mockery
- Imposteriser - Interface in org.jmock.api
-
An object that can creates a proxy of the given type to capture
Invocation
s and pass them to anInvokable
object for mocking or stubbing. - in(Class<?>) - Static method in class org.jmock.internal.AllDeclaredFields
- increment - Variable in class org.jmock.example.sniper.AuctionSniperTests
- index - Variable in class org.jmock.internal.NamedSequence.InSequenceOrderingConstraint
- indexOfFirstLowerCaseLetter(String) - Method in class org.jmock.lib.CamelCaseNamingScheme
- indexOfLastLetter(String) - Method in class org.jmock.lib.LastWordNamingScheme
- indexOfLastLowerCaseChar(String, int) - Method in class org.jmock.lib.LastWordNamingScheme
- indexOfLastUpperCaseChar(String, int) - Method in class org.jmock.lib.LastWordNamingScheme
- InfiniteTimeout - Class in org.jmock.lib.concurrent.internal
-
A Timeout that never times out.
- InfiniteTimeout() - Constructor for class org.jmock.lib.concurrent.internal.InfiniteTimeout
- initialise() - Method in class org.jmock.integration.junit3.MockObjectTestCase
- initialiseExpectationCapture(Cardinality) - Method in class org.jmock.AbstractExpectations
- inSequence(Sequence) - Method in class org.jmock.AbstractExpectations
- InSequenceOrderingConstraint(NamedSequence, int) - Constructor for class org.jmock.internal.NamedSequence.InSequenceOrderingConstraint
- 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
- instanceForCollectionType(Class<?>) - Static method in class org.jmock.internal.ReturnDefaultValueAction
- InStateOrderingConstraint - Class in org.jmock.internal
- InStateOrderingConstraint(StatePredicate) - Constructor for class org.jmock.internal.InStateOrderingConstraint
- InterfaceFromOtherClassLoader - Interface in <Unnamed>
- interpreter - Variable in class org.jmock.lib.script.ScriptedAction
- 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
- invocationCount - Variable in class org.jmock.internal.InvocationExpectation
- 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
- InvocationExpectation.AnyParametersMatcher - Class in org.jmock.internal
- 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
- invoke(Invocation) - Method in class org.jmock.Mockery.MockObject
- 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
- invokedMethod - Variable in class org.jmock.api.Invocation
- invokedObject - Variable in class org.jmock.api.Invocation
- 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
- isBoxedType(Class<?>, Class<?>) - Method in class org.jmock.api.Invocation
- isCancelled - Variable in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- isCancelled() - Method in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- isCollectionOrMap(Class<?>) - Static method in class org.jmock.internal.ReturnDefaultValueAction
- isCompatible(Class<?>, Class<?>) - Method in class org.jmock.api.Invocation
- isCompatibleWith(Object[]) - Method in class org.jmock.internal.InvocationExpectation.AnyParametersMatcher
- 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
- isDone - Variable in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- isDone() - Method in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- isEmpty() - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
- isFullySpecified - Variable in class org.jmock.internal.InvocationExpectationBuilder
- 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.
- isInCorrectOrder() - Method in class org.jmock.internal.InvocationExpectation
- isMethod(Method, Class<?>, String, Class<?>...) - Method in class org.jmock.internal.FakeObjectMethods
- 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
Invocation
s expected by this Expectation occurred? - isSatisfied() - Method in class org.jmock.internal.InvocationDispatcher
- isSatisfied() - Method in class org.jmock.internal.InvocationExpectation
- isSatisfied(int) - Method in class org.jmock.internal.Cardinality
- isSatisfiedToIndex(int) - Method in class org.jmock.internal.NamedSequence
- isShutdown() - Method in class org.jmock.lib.concurrent.DeterministicScheduler
- isTerminated() - Method in class org.jmock.lib.concurrent.DeterministicScheduler
- isThrowingCheckedException() - Method in class org.jmock.lib.action.ThrowAction
- iterator - Variable in class org.jmock.lib.action.ActionSequence
J
- JavaReflectionImposteriser - Class in org.jmock.lib
-
An
Imposteriser
that uses theProxy
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
ExpectationError
s into JUnit'sAssertionFailedError
s. - JUnit3ErrorTranslator() - Constructor for class org.jmock.integration.junit3.JUnit3ErrorTranslator
- 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
K
- KEY - Variable in class org.jmock.example.timedcache.TimedCacheTests
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.
- LastWordNamingScheme() - Constructor for class org.jmock.lib.LastWordNamingScheme
- listener - Variable in class org.jmock.example.sniper.AuctionSniper
- listener - Variable in class org.jmock.example.sniper.AuctionSniperTests
- listener1 - Variable in class org.jmock.example.announcer.AnnouncerTests
- listener2 - Variable in class org.jmock.example.announcer.AnnouncerTests
- listeners - Variable in class org.jmock.example.announcer.Announcer
- load(Object) - Method in interface org.jmock.example.timedcache.ObjectLoader
- loader - Variable in class org.jmock.example.timedcache.TimedCache
- loader - Variable in class org.jmock.example.timedcache.TimedCacheTests
- loadTime - Variable in class org.jmock.example.timedcache.TimedCache.TimestampedValue
- loadTime - Variable in class org.jmock.example.timedcache.TimedCacheTests
- LOCATION_A - Static variable in class org.jmock.example.qcon.DJTests
- LOCATION_B - Static variable in class org.jmock.example.qcon.DJTests
- LocationAware - Interface in org.jmock.example.qcon
- locationChanged - Variable in class org.jmock.example.qcon.DJ
- locationChangedTo(String) - Method in class org.jmock.example.qcon.DJ
- locationChangedTo(String) - Method in interface org.jmock.example.qcon.LocationAware
- LOG - Static variable in class org.jmock.ExpectationsCreator
- longIs(Matcher<?>) - Method in interface org.jmock.syntax.WithClause
- lookup(Object) - Method in class org.jmock.example.timedcache.TimedCache
- lotToBidFor - Variable in class org.jmock.example.sniper.AuctionSniper
M
- main(String...) - Static method in class org.jmock.ExpectationsCreator
- matches(Object) - Method in class org.jmock.internal.matcher.MockObjectMatcher
- 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
- matchesNumberOfParameters(Object[], Description) - Method in class org.jmock.internal.matcher.AllParametersMatcher
- matchesParameter(Object, Matcher<Object>, Description, int) - Method in class org.jmock.internal.matcher.AllParametersMatcher
- matchesParameters(Object[], Description) - Method in class org.jmock.internal.matcher.AllParametersMatcher
- 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
- maximum - Variable in class org.jmock.internal.Cardinality
- maximumBid - Variable in class org.jmock.example.sniper.AuctionSniper
- maximumBid - Variable in class org.jmock.example.sniper.AuctionSniperTests
- mediaControl - Variable in class org.jmock.example.qcon.DJ
- mediaControl - Variable in class org.jmock.example.qcon.DJTests
- 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(String) - Method in class org.jmock.internal.InvocationExpectationBuilder
- method(String) - Method in interface org.jmock.syntax.MethodClause
- method(Matcher<Method>) - Method in class org.jmock.internal.InvocationExpectationBuilder
- method(Matcher<Method>) - Method in interface org.jmock.syntax.MethodClause
- MethodClause - Interface in org.jmock.syntax
- methodIsKnownToBeVoid - Variable in class org.jmock.internal.InvocationExpectation
- methodMatcher - Variable in class org.jmock.internal.InvocationExpectation
- 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
- mismatchDescribing(ExpectationError) - Method in class org.jmock.Mockery
- 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.integration.junit3.MockObjectTestCase
-
Create a mock object of type T with an explicit name.
- mock(Class<T>, String) - Method in class org.jmock.Mockery
-
Creates a mock object of type typeToMock with the given name.
- Mock - Annotation Type in org.jmock.auto
- mockedType - Variable in class org.jmock.Mockery.MockObject
- mockery - Variable in class org.jmock.auto.internal.Mockomatic
- 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
- Mockery.MockObject - Class in org.jmock
- mockeryField - Variable in class org.jmock.integration.junit4.JMock
-
Deprecated.
- mockeryOf(Object) - Method in class org.jmock.integration.junit4.JMock
-
Deprecated.
- mockNames - Variable in class org.jmock.Mockery
- mockObject - Variable in class org.jmock.internal.matcher.MockObjectMatcher
- MockObject(Class<?>, String) - Constructor for class org.jmock.Mockery.MockObject
- 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 - Variable in class org.jmock.integration.junit4.JUnitRuleMockery
- 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(double) - Constructor for class org.jmock.example.sniper.Money
- Money(int) - Constructor for class org.jmock.example.sniper.Money
- Money(BigDecimal) - Constructor for class org.jmock.example.sniper.Money
N
- name - Variable in class org.jmock.internal.NamedSequence
- name - Variable in class org.jmock.internal.StateMachine
- name - Variable in class org.jmock.Mockery.MockObject
- NamedSequence - Class in org.jmock.internal
-
A sequence of expectations.
- NamedSequence(String) - Constructor for class org.jmock.internal.NamedSequence
- NamedSequence.InSequenceOrderingConstraint - Class in org.jmock.internal
- namePattern - Variable in class org.jmock.internal.matcher.MethodNameMatcher
- NAMING_POLICY_THAT_ALLOWS_IMPOSTERISATION_OF_CLASSES_IN_SIGNED_PACKAGES - Static variable in class org.jmock.lib.legacy.ClassImposteriser
- namingScheme - Variable in class org.jmock.Mockery
- needsDefaultAction - Variable in class org.jmock.internal.InvocationExpectationBuilder
- never(T) - Method in class org.jmock.AbstractExpectations
- never(T) - Method in interface org.jmock.syntax.CardinalityClause
- NEW_VALUE - Variable in class org.jmock.example.timedcache.TimedCacheTests
- newStateMachine(String) - Method in class org.jmock.internal.InvocationDispatcher
- next - Variable in class org.jmock.internal.FakeObjectMethods
- next - Variable in class org.jmock.internal.InvocationDiverter
- next - Variable in class org.jmock.lib.concurrent.internal.DeltaQueue.Node
- next() - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
- nextToSearch - Variable in class org.jmock.internal.SearchingClassLoader
- NO_PARAMETERS - Static variable in class org.jmock.api.Invocation
- Node(T, long) - Constructor for class org.jmock.lib.concurrent.internal.DeltaQueue.Node
- notAllSatisfied(SelfDescribing) - Static method in error org.jmock.api.ExpectationError
O
- ObjectLoader - Interface in org.jmock.example.timedcache
- objectMatcher - Variable in class org.jmock.internal.InvocationExpectation
- ObjectMethodExpectationBouncer - Class in org.jmock.internal
- ObjectMethodExpectationBouncer(Invokable) - Constructor for class org.jmock.internal.ObjectMethodExpectationBouncer
- objenesis - Variable in class org.jmock.lib.legacy.ClassImposteriser
- of(Matcher<?>) - Method in class org.jmock.internal.InvocationExpectationBuilder
- of(Matcher<?>) - Method in interface org.jmock.syntax.ReceiverClause
- of(T) - Method in class org.jmock.internal.InvocationExpectationBuilder
- of(T) - 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
- orderingConstraints - Variable in class org.jmock.internal.InvocationExpectation
- 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 - Variable in class org.jmock.internal.InvocationExpectation
- ParametersMatcher - Class in org.jmock.internal.matcher
- ParametersMatcher - Interface in org.jmock.internal
- ParametersMatcher(Object[]) - Constructor for class org.jmock.internal.matcher.ParametersMatcher
- ParametersMatcher(List<Matcher<?>>) - Constructor for class org.jmock.internal.matcher.ParametersMatcher
- parameterValues - Variable in class org.jmock.api.Invocation
- 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.
- performSideEffects() - Method in class org.jmock.internal.InvocationExpectation
- placeBid(Auction, Money) - Method in class org.jmock.example.sniper.AuctionSniper
- play(String) - Method in interface org.jmock.example.qcon.MediaControl
- playlist - Variable in class org.jmock.example.qcon.DJ
- playlist - Variable in class org.jmock.example.qcon.DJTests
- 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.
- prepend(Class<?>, Class<?>...) - Method in class org.jmock.lib.JavaReflectionImposteriser
- prepend(Class<?>, Class<?>...) - Method in class org.jmock.lib.legacy.ClassImposteriser
- ProxiedObjectIdentity - Class in org.jmock.internal
- ProxiedObjectIdentity(Invokable) - Constructor for class org.jmock.internal.ProxiedObjectIdentity
- proxy - Variable in class org.jmock.example.announcer.Announcer
- proxy(Class<?>, Invokable) - Method in class org.jmock.lib.legacy.ClassImposteriser
- proxyClass(Class<?>, Class<?>...) - Method in class org.jmock.lib.legacy.ClassImposteriser
- 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 - Variable in class org.jmock.example.timedcache.TimedCache
- reloadPolicy - Variable in class org.jmock.example.timedcache.TimedCacheTests
- 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
- repeatDelay - Variable in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- repeats() - Method in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- reportError(String) - Method in class org.jmock.internal.SingleThreadedPolicy
- reportIncompatibleCheckedException(Class<?>[]) - Method in class org.jmock.lib.action.ThrowAction
- reportTypeError(Class<?>, Class<?>) - Method in class org.jmock.api.Invocation
- required - Variable in class org.jmock.internal.Cardinality
- result - Variable in class org.jmock.lib.action.ReturnValueAction
- result - Variable in class org.jmock.lib.concurrent.DeterministicScheduler.CallableRunnableAdapter
- resultValuesByType - Variable in class org.jmock.internal.ReturnDefaultValueAction
- 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() - Constructor for class org.jmock.internal.ReturnDefaultValueAction
- ReturnDefaultValueAction(Imposteriser) - Constructor for class org.jmock.internal.ReturnDefaultValueAction
- ReturnDefaultValueAction(Imposteriser, Map<Class<?>, Object>) - 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(Object...) - Constructor for class org.jmock.lib.action.ReturnEnumerationAction
- ReturnEnumerationAction(Collection<?>) - 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(Object...) - Constructor for class org.jmock.lib.action.ReturnIteratorAction
- ReturnIteratorAction(Collection<?>) - 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
- run() - Method in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- runBare() - Method in class org.jmock.integration.junit3.VerifyingTestCase
- runnable - Variable in class org.jmock.lib.concurrent.DeterministicScheduler.CallableRunnableAdapter
- 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
- ScheduledTask(long, Runnable) - Constructor for class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- ScheduledTask(Runnable) - Constructor for class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- ScheduledTask(Callable<T>) - Constructor for class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
- script - Variable in class org.jmock.lib.script.ScriptedAction
- ScriptedAction - Class in org.jmock.lib.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 - Variable in class org.jmock.internal.NamedSequence.InSequenceOrderingConstraint
- 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
- setAutoField(Field, Object, Object, String) - Method in class org.jmock.auto.internal.Mockomatic
- setCardinality(Cardinality) - Method in class org.jmock.internal.InvocationExpectation
- setCardinality(Cardinality) - Method in class org.jmock.internal.InvocationExpectationBuilder
- setConstructorsAccessible(Class<?>, boolean) - Method in class org.jmock.lib.legacy.ClassImposteriser
- 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
- shouldSuppressActionDescription() - Method in class org.jmock.internal.InvocationExpectation
- shutdown() - Method in class org.jmock.lib.concurrent.Blitzer
- shutdown() - Method in class org.jmock.lib.concurrent.DeterministicScheduler
- shutdownNotSupported() - 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. - sideEffects - Variable in class org.jmock.internal.InvocationExpectation
- SingleThreadedPolicy - Class in org.jmock.internal
- SingleThreadedPolicy() - Constructor for class org.jmock.internal.SingleThreadedPolicy
- sniper - Variable in class org.jmock.example.sniper.AuctionSniperTests
- sniperBidFailed(AuctionSniper, AuctionException) - Method in interface org.jmock.example.sniper.AuctionSniperListener
- sniperFinished(AuctionSniper) - Method in interface org.jmock.example.sniper.AuctionSniperListener
- spawnThreads(Runnable) - Method in class org.jmock.lib.concurrent.Blitzer
- start - Variable in class org.jmock.lib.concurrent.internal.FixedTimeout
- startingIn(String) - Method in class org.jmock.example.qcon.DJTests
- startPlaying() - Method in class org.jmock.example.qcon.DJ
- 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 - Variable in class org.jmock.internal.ChangeStateSideEffect
- State - Interface in org.jmock.internal
- StateMachine - Class in org.jmock.internal
- StateMachine(String) - Constructor for class org.jmock.internal.StateMachine
- stateMachines - Variable in class org.jmock.internal.InvocationDispatcher
- stateName - Variable in class org.jmock.lib.CurrentStateMatcher
- statePredicate - Variable in class org.jmock.internal.InStateOrderingConstraint
- 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(Runnable) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
- submit(Runnable, T) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
- submit(Callable<T>) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
- subscriber - Variable in class org.jmock.example.gettingstarted.GettingStartedJUnit3Mockomatic
- subscriber - Variable in class org.jmock.example.gettingstarted.GettingStartedJUnit4Mockomatic
- subscriber - Variable in class org.jmock.example.gettingstarted.GettingStartedJUnit4RuleMockomatic
- Subscriber - Interface in org.jmock.example.gettingstarted
- subscribers - Variable in class org.jmock.example.gettingstarted.Publisher
- subtract(Money) - Method in class org.jmock.example.sniper.Money
- sync - Variable in class org.jmock.lib.concurrent.Synchroniser
- 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
- synchroniseInvocation(Invokable, Invocation) - 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
- target - Variable in class org.jmock.internal.InvocationDiverter
- 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
- testThread - Variable in class org.jmock.internal.SingleThreadedPolicy
- 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 - Variable in class org.jmock.Mockery
- ThreadingPolicy - Interface in org.jmock.api
- throwable - Variable in class org.jmock.lib.action.ThrowAction
- 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) - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
- 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.
- time() - Method in interface org.jmock.example.timedcache.Clock
- time(int) - Method in class org.jmock.example.timedcache.TimedCacheTests
- TimedCache - Class in org.jmock.example.timedcache
- TimedCache(ObjectLoader, Clock, ReloadPolicy) - Constructor for class org.jmock.example.timedcache.TimedCache
- TimedCache.TimestampedValue - Class in org.jmock.example.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
- TimestampedValue(Object, Date) - Constructor for class org.jmock.example.timedcache.TimedCache.TimestampedValue
- 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.DeterministicScheduler.CallableRunnableAdapter
- toString() - Method in class org.jmock.lib.concurrent.DeterministicScheduler.ScheduledTask
- toString() - Method in class org.jmock.lib.concurrent.internal.DeltaQueue
- toString() - Method in class org.jmock.Mockery.MockObject
- toStringMethodIsFinal(Class<?>) - Method in class org.jmock.lib.legacy.ClassImposteriser
- totalActionCount() - Method in class org.jmock.lib.concurrent.Blitzer
- toTicks(long, TimeUnit) - Method in class org.jmock.lib.concurrent.DeterministicScheduler
- TRACK_A - Static variable in class org.jmock.example.qcon.DJTests
- TRACK_B - Static variable in class org.jmock.example.qcon.DJTests
- trackFinished - Variable in class org.jmock.example.qcon.DJ
- 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
- unbeatableBid - Variable in class org.jmock.example.sniper.AuctionSniperTests
- 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
- value - Variable in class org.jmock.example.timedcache.TimedCache.TimestampedValue
- value - Variable in class org.jmock.lib.concurrent.internal.DeltaQueue.Node
- VALUE - Variable in class org.jmock.example.timedcache.TimedCacheTests
- verifiers - Variable in class org.jmock.integration.junit3.VerifyingTestCase
- 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.
- waitUntil(StatePredicate, Timeout) - Method in class org.jmock.lib.concurrent.Synchroniser
- 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(boolean) - Method in class org.jmock.AbstractExpectations
- with(byte) - Method in class org.jmock.AbstractExpectations
- with(char) - Method in class org.jmock.AbstractExpectations
- with(double) - Method in class org.jmock.AbstractExpectations
- with(float) - Method in class org.jmock.AbstractExpectations
- with(int) - Method in class org.jmock.AbstractExpectations
- with(long) - Method in class org.jmock.AbstractExpectations
- with(short) - Method in class org.jmock.AbstractExpectations
- with(Matcher<?>...) - Method in class org.jmock.internal.InvocationExpectationBuilder
- with(Matcher<?>...) - Method in interface org.jmock.syntax.ParametersClause
- with(Matcher<T>) - Method in class org.jmock.AbstractExpectations
-
For Matchers with primitive types use the with field, for example:
- with(Matcher<T>) - Method in interface org.jmock.syntax.ArgumentConstraintPhrases
- with(T) - Method in class org.jmock.AbstractExpectations
- WithClause - Interface in org.jmock.syntax
- withNoArguments() - Method in class org.jmock.internal.InvocationExpectationBuilder
- withNoArguments() - Method in interface org.jmock.syntax.ParametersClause
All Classes All Packages