Package | Description |
---|---|
org.jmock |
The jMock "Domain-Specific Embedded Language" API.
|
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.action |
Actions that fake the behaviour of mocked invocations.
|
org.jmock.lib.concurrent |
Classes to help test concurrent code with jMock.
|
org.jmock.lib.script |
Plugins that make it easier to write custom actions by scripting their
behaviour with BeanShell.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<Invocation> |
Mockery.actualInvocations |
Modifier and Type | Method and Description |
---|---|
private void |
Mockery.describeMismatch(Invocation invocation,
org.hamcrest.Description description) |
private java.lang.Object |
Mockery.dispatch(Invocation invocation) |
java.lang.Object |
Mockery.MockObject.invoke(Invocation invocation) |
Modifier and Type | Field and Description |
---|---|
Invocation |
ExpectationError.invocation |
Modifier and Type | Method and Description |
---|---|
void |
Expectation.describeMismatch(Invocation invocation,
org.hamcrest.Description description) |
boolean |
Invocation.equals(Invocation other) |
java.lang.Object |
Expectation.invoke(Invocation invocation)
Invokes the expectation: records that the invocation has
occurred and fakes some behaviour in response.
|
java.lang.Object |
Invokable.invoke(Invocation invocation)
Performs an action in response to an invocation.
|
boolean |
Expectation.matches(Invocation invocation)
Can the Expectation be invoked with invocation?
|
static ExpectationError |
ExpectationError.unexpected(java.lang.String message,
Invocation invocation) |
Constructor and Description |
---|
ExpectationError(java.lang.String message,
org.hamcrest.SelfDescribing expectations,
Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
private void |
InvocationExpectationBuilder.checkParameterMatcherCount(Invocation invocation) |
void |
ExpectationCapture.createExpectationFrom(Invocation invocation) |
void |
InvocationExpectationBuilder.createExpectationFrom(Invocation invocation) |
private java.lang.Iterable<org.hamcrest.SelfDescribing> |
InvocationDispatcher.describedWith(java.util.List<Expectation> expectations,
Invocation invocation) |
void |
InvocationDispatcher.describeMismatch(Invocation invocation,
org.hamcrest.Description description) |
void |
InvocationExpectation.describeMismatch(Invocation invocation,
org.hamcrest.Description description) |
java.lang.Object |
InvocationDispatcher.dispatch(Invocation invocation) |
java.lang.Object |
FakeObjectMethods.invoke(Invocation invocation) |
java.lang.Object |
InvocationDiverter.invoke(Invocation invocation) |
java.lang.Object |
InvocationExpectation.invoke(Invocation invocation) |
java.lang.Object |
InvocationToExpectationTranslator.invoke(Invocation invocation) |
java.lang.Object |
ReturnDefaultValueAction.invoke(Invocation invocation) |
boolean |
InvocationExpectation.matches(Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ActionSequence.invoke(Invocation invocation) |
java.lang.Object |
DoAllAction.invoke(Invocation invocation) |
java.util.Enumeration<?> |
ReturnEnumerationAction.invoke(Invocation invocation) |
java.util.Iterator<?> |
ReturnIteratorAction.invoke(Invocation invocation) |
java.lang.Object |
ReturnValueAction.invoke(Invocation invocation) |
java.lang.Object |
ThrowAction.invoke(Invocation invocation) |
java.lang.Object |
VoidAction.invoke(Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
private java.lang.Object |
Synchroniser.synchroniseInvocation(Invokable mockObject,
Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
private void |
ScriptedAction.defineParameters(bsh.Interpreter interpreter,
Invocation invocation) |
java.lang.Object |
ScriptedAction.invoke(Invocation invocation) |