All Classes
-
All Classes Interface Summary Class Summary Exception Summary Error Summary Annotation Types Summary Class Description AbstractExpectations Provides most of the syntax of jMock's "domain-specific language" API.Action An object that fakes the behaviour of anInvocationExpectation
.ActionClause ActionSequence Returns the next of a sequence of elements each time it is invoked.AllDeclaredFields AllParametersMatcher Announcer<T extends java.util.EventListener> AnnouncerTests AnnouncerTests.CheckedException AnnouncerTests.Listener ArgumentConstraintPhrases AssertionErrorTranslator TranslatesExpectationError
s intoAssertionError
s that several test frameworks, including JUnit 4 and TestNG, use to report errors.Auction AuctionException AuctionListener AuctionSniper AuctionSniperListener AuctionSniperTests Auto Blitzer A class that "blitzes" an object by calling it many times, from multiple threads.CamelCaseNamingScheme 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.CaptureControl Cardinality The acceptable range of times an expectation may be invoked.CardinalityClause ChangeStateSideEffect ClassFromOtherClassLoader ClassImposteriser This class lets you imposterise abstract and concrete classes without calling the constructors of the mocked class.ClassImposteriser.ClassWithSuperclassToWorkAroundCglibBug Clock CurrentStateMatcher CustomAction A partial implementation of theAction
interface that makes it convenient to implement application-specific actions with inline anonymous classes.DeltaQueue<T> DeltaQueue.Node<T> DeterministicExecutor DeterministicScheduler AScheduledExecutorService
that executes commands on the thread that callsrunNextPendingCommand
,runUntilIdle
ortick
.DJ DJTests DoAllAction Performs multiple actions every time it is invoked.Expectation An object that matches, checks and fakes anInvocation
ExpectationBuilder ExpectationCapture ExpectationCollector ExpectationError An error thrown when an expectation is violated during a test.ExpectationErrorTranslator Translates expectation errors into error type used by a specific testing framework.Expectations Backward compatibility Methods added with ASMExpectationsCreator FakeObjectMethods FixedTimeout A Timeout of fixed duration from the time the FixedTimeout object is instantiated.Formatting GettingStartedJUnit3 GettingStartedJUnit3Mockomatic GettingStartedJUnit4 GettingStartedJUnit4Mockomatic GettingStartedJUnit4Rule GettingStartedJUnit4RuleMockomatic IdentityExpectationErrorTranslator AnExpectationErrorTranslator
that doesn't do any translation.Imposteriser An object that can creates a proxy of the given type to captureInvocation
s and pass them to anInvokable
object for mocking or stubbing.InfiniteTimeout A Timeout that never times out.InStateOrderingConstraint InterfaceFromOtherClassLoader Invocation The static details about a method and the run-time details of its invocation.InvocationDispatcher InvocationDiverter<T> InvocationExpectation An expectation of zero or more matching invocations.InvocationExpectation.AnyParametersMatcher InvocationExpectationBuilder InvocationToExpectationTranslator Invokable An object that can receive anInvocation
.JavaReflectionImposteriser AnImposteriser
that uses theProxy
class of the Java Reflection API.JMock Deprecated. For JUnit 4 useJUnitRuleMockery
JUnit3ErrorTranslator TranslatesExpectationError
s into JUnit'sAssertionFailedError
s.JUnit3Mockery AMockery
that reports expectation errors as JUnit 3 test failures.JUnit4Mockery AMockery
that reports expectation errors as JUnit 4 test failures.JUnitRuleMockery AJUnitRuleMockery
is a JUnit Rule that manages JMock expectations and allowances, and asserts that expectations have been met after each test has finished.LastWordNamingScheme 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.LocationAware MediaControl MediaTracker MethodClause MethodMatcher MethodNameMatcher Mock Mockery A Mockery represents the context, or neighbourhood, of the object(s) under test.MockObjectMatcher MockObjectNamingScheme Creates names for mock objects that have not explicitly been given a name.MockObjectTestCase ATestCase
that supports testing with mock objects.Mockomatic Money NamedSequence A sequence of expectations.NamedSequence.InSequenceOrderingConstraint ObjectLoader ObjectMethodExpectationBouncer OrderingConstraint ParametersClause ParametersMatcher ParametersMatcher Playlist ProxiedObjectIdentity Publisher ReceiverClause ReloadPolicy RetroNamingScheme A naming scheme in which the implicit name for a mock object is the mocked type's name prepend with "mock".ReturnDefaultValueAction Returns a default value for the invoked method's result type.ReturnEnumerationAction Returns anEnumeration
over a collection.ReturnIteratorAction Returns anIterator
over a collection.ReturnValueAction Returns a value.ScriptedAction SearchingClassLoader Sequence A sequence of expectations; invocations can be constrained to occur in a strict order defined by a sequence.SideEffect An expectation has oneAction
but can have zero or more SideEffects that are triggered before the Action.SingleThreadedPolicy State StateMachine StatePredicate States A state machine that is used to constrain the order of invocations.StatesClause Subscriber Synchroniser A ThreadingPolicy that makes the Mockery thread-safe and helps tests synchronise with background threads.ThreadingPolicy ThrowAction Throws an exception.TimedCache TimedCacheTests Timeout TypeInSignedJar Can't use the default package across shared and unshared jarsUnsupportedSynchronousOperationException Thrown to report that aDeterministicScheduler
has been asked to perform a blocking wait, which is not supported.VerifyingTestCase ATestCase
that verifies postconditions after the test has run and before the fixture has been torn down.VoidAction Returns nothing from a void method.WithClause