Package | Description |
---|---|
org.jmock |
The jMock "Domain-Specific Embedded Language" API.
|
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.
|
org.jmock.syntax |
Interfaces that define jMock's Domain Specific Embedded Language.
|
Modifier and Type | Method and Description |
---|---|
static Action |
AbstractExpectations.doAll(Action... actions) |
static Action |
AbstractExpectations.onConsecutiveCalls(Action... actions) |
static Action |
AbstractExpectations.returnEnumeration(Collection<?> collection) |
static <T> Action |
AbstractExpectations.returnEnumeration(T... items) |
static Action |
AbstractExpectations.returnIterator(Collection<?> collection) |
static <T> Action |
AbstractExpectations.returnIterator(T... items) |
static Action |
AbstractExpectations.returnValue(Object result) |
static Action |
AbstractExpectations.throwException(Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractExpectations.buildExpectations(Action defaultAction,
ExpectationCollector collector) |
static Action |
AbstractExpectations.doAll(Action... actions) |
static Action |
AbstractExpectations.onConsecutiveCalls(Action... actions) |
void |
AbstractExpectations.will(Action action) |
Modifier and Type | Class and Description |
---|---|
class |
ReturnDefaultValueAction
Returns a default value for the invoked method's result type.
|
Modifier and Type | Method and Description |
---|---|
void |
ExpectationBuilder.buildExpectations(Action defaultAction,
ExpectationCollector collector) |
void |
InvocationExpectationBuilder.setAction(Action action) |
void |
InvocationExpectation.setAction(Action action) |
void |
InvocationExpectation.setDefaultAction(Action action) |
Expectation |
InvocationExpectationBuilder.toExpectation(Action defaultAction) |
Constructor and Description |
---|
InvocationToExpectationTranslator(ExpectationCapture capture,
Action defaultAction) |
Modifier and Type | Class and 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.
|
Constructor and Description |
---|
ActionSequence(Action... actions) |
DoAllAction(Action... actions) |
Modifier and Type | Class and Description |
---|---|
class |
ScriptedAction
|
Modifier and Type | Method and Description |
---|---|
void |
ActionClause.will(Action action) |
Copyright © 2003–2018 jMock. All rights reserved.