org.apache.james.test.mock.util
Class MockSpamd

java.lang.Object
  extended by org.apache.james.test.mock.util.MockSpamd
All Implemented Interfaces:
java.lang.Runnable

public class MockSpamd
extends java.lang.Object
implements java.lang.Runnable

This class can be used to run a mocked SPAMD daemom


Field Summary
static java.lang.String GTUBE
          Mailcontent which is 100% spam
static java.lang.String NOT_SPAM
           
static java.lang.String SPAM
           
 
Constructor Summary
MockSpamd(int port)
          Init the mocked SPAMD daemon
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GTUBE

public static final java.lang.String GTUBE
Mailcontent which is 100% spam

See Also:
Constant Field Values

NOT_SPAM

public static final java.lang.String NOT_SPAM
See Also:
Constant Field Values

SPAM

public static final java.lang.String SPAM
See Also:
Constant Field Values
Constructor Detail

MockSpamd

public MockSpamd(int port)
          throws java.io.IOException
Init the mocked SPAMD daemon

Parameters:
port - The port on which the mocked SPAMD daemon will be bind
Throws:
java.io.IOException
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.