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.action |
Actions that fake the behaviour of mocked invocations.
|
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 |
---|---|
Invocation |
ExpectationError.invocation |
Modifier and Type | Method and Description |
---|---|
void |
Expectation.describeMismatch(Invocation invocation,
org.hamcrest.Description description) |
boolean |
Invocation.equals(Invocation other) |
Object |
Expectation.invoke(Invocation invocation)
Invokes the expectation: records that the invocation has
occurred and fakes some behaviour in response.
|
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(String message,
Invocation invocation) |
Constructor and Description |
---|
ExpectationError(String message,
org.hamcrest.SelfDescribing expectations,
Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
void |
InvocationExpectationBuilder.createExpectationFrom(Invocation invocation) |
void |
ExpectationCapture.createExpectationFrom(Invocation invocation) |
void |
InvocationExpectation.describeMismatch(Invocation invocation,
org.hamcrest.Description description) |
void |
InvocationDispatcher.describeMismatch(Invocation invocation,
org.hamcrest.Description description) |
Object |
InvocationDispatcher.dispatch(Invocation invocation) |
Object |
ReturnDefaultValueAction.invoke(Invocation invocation) |
Object |
InvocationToExpectationTranslator.invoke(Invocation invocation) |
Object |
InvocationDiverter.invoke(Invocation invocation) |
Object |
InvocationExpectation.invoke(Invocation invocation) |
Object |
FakeObjectMethods.invoke(Invocation invocation) |
boolean |
InvocationExpectation.matches(Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
Object |
ThrowAction.invoke(Invocation invocation) |
Iterator<?> |
ReturnIteratorAction.invoke(Invocation invocation) |
Object |
DoAllAction.invoke(Invocation invocation) |
Object |
VoidAction.invoke(Invocation invocation) |
Enumeration<?> |
ReturnEnumerationAction.invoke(Invocation invocation) |
Object |
ReturnValueAction.invoke(Invocation invocation) |
Object |
ActionSequence.invoke(Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
Object |
ScriptedAction.invoke(Invocation invocation) |
Copyright © 2003–2021 jMock. All rights reserved.