org.jmock.lib.action
Class CustomAction

java.lang.Object
  extended by org.jmock.lib.action.CustomAction
All Implemented Interfaces:
SelfDescribing, Action, Invokable

public abstract class CustomAction
extends Object
implements Action

A partial implementation of the Action interface that makes it convenient to implement application-specific actions with inline anonymous classes.


Constructor Summary
CustomAction(String description)
           
 
Method Summary
 void describeTo(Description description)
          Generates a description of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jmock.api.Invokable
invoke
 

Constructor Detail

CustomAction

public CustomAction(String description)
Method Detail

describeTo

public void describeTo(Description description)
Description copied from interface: SelfDescribing
Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.

Specified by:
describeTo in interface SelfDescribing
Parameters:
description - The description to be built or appended to.