Uses of Interface
org.jmock.api.Action
-
Packages that use Action 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. -
-
Uses of Action in org.jmock
Methods in org.jmock that return Action Modifier and Type Method Description static Action
AbstractExpectations. doAll(Action... actions)
static Action
AbstractExpectations. onConsecutiveCalls(Action... actions)
static Action
AbstractExpectations. returnEnumeration(java.util.Collection<?> collection)
static <T> Action
AbstractExpectations. returnEnumeration(T... items)
static Action
AbstractExpectations. returnIterator(java.util.Collection<?> collection)
static <T> Action
AbstractExpectations. returnIterator(T... items)
static Action
AbstractExpectations. returnValue(java.lang.Object result)
static Action
AbstractExpectations. throwException(java.lang.Throwable throwable)
Methods in org.jmock with parameters of type Action Modifier and Type Method 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)
-
Uses of Action in org.jmock.internal
Classes in org.jmock.internal that implement Action Modifier and Type Class Description class
ReturnDefaultValueAction
Returns a default value for the invoked method's result type.Fields in org.jmock.internal declared as Action Modifier and Type Field Description private Action
InvocationExpectation. action
private Action
InvocationToExpectationTranslator. defaultAction
Methods in org.jmock.internal with parameters of type Action Modifier and Type Method Description void
ExpectationBuilder. buildExpectations(Action defaultAction, ExpectationCollector collector)
void
InvocationExpectation. setAction(Action action)
void
InvocationExpectationBuilder. setAction(Action action)
void
InvocationExpectation. setDefaultAction(Action action)
Expectation
InvocationExpectationBuilder. toExpectation(Action defaultAction)
Constructors in org.jmock.internal with parameters of type Action Constructor Description InvocationToExpectationTranslator(ExpectationCapture capture, Action defaultAction)
-
Uses of Action in org.jmock.lib.action
Classes in org.jmock.lib.action that implement Action 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 theAction
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 anEnumeration
over a collection.class
ReturnIteratorAction
Returns anIterator
over a collection.class
ReturnValueAction
Returns a value.class
ThrowAction
Throws an exception.class
VoidAction
Returns nothing from a void method.Fields in org.jmock.lib.action declared as Action Modifier and Type Field Description private Action[]
DoAllAction. actions
Fields in org.jmock.lib.action with type parameters of type Action Modifier and Type Field Description (package private) java.util.List<Action>
ActionSequence. actions
(package private) java.util.Iterator<Action>
ActionSequence. iterator
Constructors in org.jmock.lib.action with parameters of type Action Constructor Description ActionSequence(Action... actions)
DoAllAction(Action... actions)
-
Uses of Action in org.jmock.lib.script
Classes in org.jmock.lib.script that implement Action Modifier and Type Class Description class
ScriptedAction
-
Uses of Action in org.jmock.syntax
Methods in org.jmock.syntax with parameters of type Action Modifier and Type Method Description void
ActionClause. will(Action action)
-