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(String name)
setUp
protected void setUp()
throws Exception
- Throws:
Exception
tearDown
protected void tearDown()
throws Exception
- Throws:
Exception
send
public void send(String msg)
throws Exception
- Throws:
Exception
expect
public void expect(String msg)
throws Exception
- Throws:
Exception
expectContains
public void expectContains(String msg)
throws Exception
- Throws:
Exception
Copyright © 2006-2011. All Rights Reserved.