Uses of Interface
org.jmock.api.Action
Packages that use Action
Package
Description
The jMock "Domain-Specific Embedded Language" API.
This package contains internal implementation details.
Actions that fake the behaviour of mocked invocations.
Plugins that make it easier to write custom actions by scripting their
behaviour with BeanShell.
Interfaces that define jMock's Domain Specific Embedded Language.
-
Uses of Action in org.jmock
Modifier and TypeMethodDescriptionstatic Action
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 TypeMethodDescriptionvoid
AbstractExpectations.buildExpectations
(Action defaultAction, ExpectationCollector collector) static Action
static Action
AbstractExpectations.onConsecutiveCalls
(Action... actions) void
-
Uses of Action in org.jmock.internal
Classes in org.jmock.internal that implement ActionModifier and TypeClassDescriptionclass
Returns a default value for the invoked method's result type.Fields in org.jmock.internal declared as ActionModifier and TypeFieldDescriptionprivate Action
InvocationExpectation.action
private Action
InvocationToExpectationTranslator.defaultAction
Methods in org.jmock.internal with parameters of type ActionModifier and TypeMethodDescriptionvoid
ExpectationBuilder.buildExpectations
(Action defaultAction, ExpectationCollector collector) void
void
void
InvocationExpectation.setDefaultAction
(Action action) InvocationExpectationBuilder.toExpectation
(Action defaultAction) Constructors in org.jmock.internal with parameters of type ActionModifierConstructorDescriptionInvocationToExpectationTranslator
(ExpectationCapture capture, Action defaultAction) -
Uses of Action in org.jmock.lib.action
Classes in org.jmock.lib.action that implement ActionModifier and TypeClassDescriptionclass
Returns the next of a sequence of elements each time it is invoked.class
A partial implementation of theAction
interface that makes it convenient to implement application-specific actions with inline anonymous classes.class
Performs multiple actions every time it is invoked.class
Returns anEnumeration
over a collection.class
Returns anIterator
over a collection.class
Returns a value.class
Throws an exception.class
Returns nothing from a void method.Fields in org.jmock.lib.action declared as ActionFields in org.jmock.lib.action with type parameters of type ActionConstructors in org.jmock.lib.action with parameters of type Action -
Uses of Action in org.jmock.lib.script
Classes in org.jmock.lib.script that implement ActionModifier and TypeClassDescriptionclass
-
Uses of Action in org.jmock.syntax
Methods in org.jmock.syntax with parameters of type Action