Package | Description |
---|---|
org.jmock.api |
The stable API that is used to extend jMock at its published plug-in points.
|
org.jmock.internal |
This package contains internal implementation details.
|
org.jmock.lib |
Implementations of the core interfaces that are used to adjust or extend jMock's basic
functionality.
|
org.jmock.lib.action |
Actions that fake the behaviour of mocked invocations.
|
org.jmock.lib.concurrent |
Classes to help test concurrent code with jMock.
|
org.jmock.lib.legacy |
Plugins that make it easier to use jMock with legacy code.
|
org.jmock.lib.script |
Plugins that make it easier to write custom actions by scripting their
behaviour with BeanShell.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
Action |
An object that fakes the behaviour of an
InvocationExpectation . |
Modifier and Type | Method | Description |
---|---|---|
Invokable |
ThreadingPolicy.synchroniseAccessTo(Invokable mockObject) |
Modifier and Type | Method | Description |
---|---|---|
<T> T |
Imposteriser.imposterise(Invokable mockObject,
Class<T> mockedType,
Class<?>... ancilliaryTypes) |
Creates an imposter for a given type that forwards
Invocation s to an
Invokable object. |
Invokable |
ThreadingPolicy.synchroniseAccessTo(Invokable mockObject) |
Modifier and Type | Class | Description |
---|---|---|
class |
FakeObjectMethods |
|
class |
InvocationDiverter<T> |
|
class |
InvocationToExpectationTranslator |
|
class |
ObjectMethodExpectationBouncer |
|
class |
ProxiedObjectIdentity |
|
class |
ReturnDefaultValueAction |
Returns a default value for the invoked method's result type.
|
Modifier and Type | Method | Description |
---|---|---|
Invokable |
SingleThreadedPolicy.synchroniseAccessTo(Invokable mockObject) |
Modifier and Type | Method | Description |
---|---|---|
Invokable |
SingleThreadedPolicy.synchroniseAccessTo(Invokable mockObject) |
Constructor | Description |
---|---|
FakeObjectMethods(Invokable next) |
|
InvocationDiverter(Class<T> declaringType,
T target,
Invokable next) |
|
ObjectMethodExpectationBouncer(Invokable next) |
|
ProxiedObjectIdentity(Invokable next) |
Modifier and Type | Method | Description |
---|---|---|
<T> T |
JavaReflectionImposteriser.imposterise(Invokable mockObject,
Class<T> mockedType,
Class<?>... ancilliaryTypes) |
Modifier and Type | Class | Description |
---|---|---|
class |
ActionSequence |
Returns the next of a sequence of elements each time it is invoked.
|
class |
CustomAction |
A partial implementation of the
Action interface that makes it convenient
to implement application-specific actions with inline anonymous classes. |
class |
DoAllAction |
Performs multiple actions every time it is invoked.
|
class |
ReturnEnumerationAction |
Returns an
Enumeration over a collection. |
class |
ReturnIteratorAction |
Returns an
Iterator over a collection. |
class |
ReturnValueAction |
Returns a value.
|
class |
ThrowAction |
Throws an exception.
|
class |
VoidAction |
Returns nothing from a void method.
|
Modifier and Type | Method | Description |
---|---|---|
Invokable |
Synchroniser.synchroniseAccessTo(Invokable mockObject) |
Modifier and Type | Method | Description |
---|---|---|
Invokable |
Synchroniser.synchroniseAccessTo(Invokable mockObject) |
Modifier and Type | Method | Description |
---|---|---|
<T> T |
ClassImposteriser.imposterise(Invokable mockObject,
Class<T> mockedType,
Class<?>... ancilliaryTypes) |
Modifier and Type | Class | Description |
---|---|---|
class |
ScriptedAction |
Copyright © 2003–2018 jMock. All rights reserved.