org.sakaiproject.util
Class TestDelivery

java.lang.Object
  extended by org.sakaiproject.util.BaseDelivery
      extended by org.sakaiproject.util.TestDelivery
All Implemented Interfaces:
Delivery

public class TestDelivery
extends BaseDelivery

TestDelivery is a simple Delivery class for automated testing.


Field Summary
protected  String m_message
          The message.
 
Fields inherited from class org.sakaiproject.util.BaseDelivery
m_address, m_elementId
 
Constructor Summary
TestDelivery(String address, String elementId, String message)
          Construct.
 
Method Summary
 String compose()
          Compose a message for delivery to the client.
 boolean equals(Object obj)
          Are these the same?
 String getMessage()
          Display.
 String toString()
          Display.
 
Methods inherited from class org.sakaiproject.util.BaseDelivery
act, getAddress, getElement, hashCode, setAddress, setElement
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_message

protected String m_message
The message.

Constructor Detail

TestDelivery

public TestDelivery(String address,
                    String elementId,
                    String message)
Construct.

Parameters:
address - The address.
elementId - The elementId.
Method Detail

compose

public String compose()
Compose a message for delivery to the client.

Specified by:
compose in interface Delivery
Overrides:
compose in class BaseDelivery
Returns:
The message to send to the client.

toString

public String toString()
Display.

Overrides:
toString in class BaseDelivery

getMessage

public String getMessage()
Display.


equals

public boolean equals(Object obj)
Are these the same?

Overrides:
equals in class BaseDelivery
Returns:
true if obj is the same Delivery as this one.


Copyright © 2003-2013 The Sakai Foundation. All Rights Reserved.