com.bolinfest.prisonerbot
Class ManagerTest.NullProxy

java.lang.Object
  extended by com.bolinfest.prisonerbot.ManagerTest.NullProxy
All Implemented Interfaces:
MessageProxy
Enclosing class:
ManagerTest

protected static class ManagerTest.NullProxy
extends Object
implements MessageProxy

NullProxy is a MessageProxy that simulates sending messages online. Because it is a simulator, it can be used in offline unit tests.

Author:
mbolin

Constructor Summary
protected ManagerTest.NullProxy()
           
 
Method Summary
 void addBuddy(Buddy buddy)
          adds the buddy to the list of the buddies who can be messaged
 void sendMessage(Buddy buddy, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagerTest.NullProxy

protected ManagerTest.NullProxy()
Method Detail

addBuddy

public void addBuddy(Buddy buddy)
Description copied from interface: MessageProxy
adds the buddy to the list of the buddies who can be messaged

Specified by:
addBuddy in interface MessageProxy

sendMessage

public void sendMessage(Buddy buddy,
                        String message)
Specified by:
sendMessage in interface MessageProxy