org.subethamail.smtp.test.util
Class ServerTestCase
java.lang.Object
TestCase
org.subethamail.smtp.test.util.ServerTestCase
- Direct Known Subclasses:
- AuthTest, CommandTest, DataTest, HelloTest, MailTest, QuitTest, ReceiptTest, RequireTlsTest, RquireTlsTest, StartTLSTest
public abstract class ServerTestCase
- extends TestCase
A base class for testing the SMTP server at the raw protocol level.
Handles setting up and tearing down of the server.
- Author:
- Jon Stevens, Jeff Schnitzer
|
Nested Class Summary |
class |
ServerTestCase.TestWiser
Override the accept method in Wiser so we can test
the accept method(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PORT
public static final int PORT
- See Also:
- Constant Field Values
wiser
protected ServerTestCase.TestWiser wiser
c
protected Client c
ServerTestCase
public ServerTestCase(java.lang.String name)
setUp
protected void setUp()
throws java.lang.Exception
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Throws:
java.lang.Exception
send
public void send(java.lang.String msg)
throws java.lang.Exception
- Throws:
java.lang.Exception
expect
public void expect(java.lang.String msg)
throws java.lang.Exception
- Throws:
java.lang.Exception
expectContains
public void expectContains(java.lang.String msg)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2006-2011. All Rights Reserved.