org.apache.james.remotemanager
Class RemoteManagerTest
java.lang.Object
TestCase
org.apache.james.remotemanager.RemoteManagerTest
public class RemoteManagerTest
- extends TestCase
Tests the org.apache.james.remotemanager.RemoteManager
TODO: impl missing command tests for:
USER
SHUTDOWN (hard to test, because it does shutdown the whole (testing) JVM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_remoteManagerListenerPort
protected int m_remoteManagerListenerPort
m_remoteManager
protected org.apache.james.remotemanager.RemoteManager m_remoteManager
m_testConfiguration
protected RemoteManagerTestConfiguration m_testConfiguration
m_host
protected java.lang.String m_host
m_reader
protected java.io.BufferedReader m_reader
m_writer
protected org.apache.james.util.InternetPrintWriter m_writer
m_telnetClient
protected TelnetClient m_telnetClient
RemoteManagerTest
public RemoteManagerTest()
setUp
protected void setUp()
throws java.lang.Exception
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Throws:
java.lang.Exception
finishSetUp
protected void finishSetUp(RemoteManagerTestConfiguration testConfiguration)
login
protected void login()
throws java.io.IOException
- Throws:
java.io.IOException
login
protected void login(java.lang.String name,
java.lang.String password)
throws java.io.IOException
- Throws:
java.io.IOException
getLastLine
protected java.lang.String getLastLine(java.util.List list)
readAnswer
protected java.util.List readAnswer()
readAnswer
protected java.util.List readAnswer(int numLines)
sendCommand
protected void sendCommand(java.lang.String command)
throws java.io.IOException
- Throws:
java.io.IOException
connect
protected void connect()
throws java.io.IOException
- Throws:
java.io.IOException
testCustomCommand
public void testCustomCommand()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLogin
public void testLogin()
throws java.io.IOException
- Throws:
java.io.IOException
testWrongLoginUser
public void testWrongLoginUser()
throws java.io.IOException
- Throws:
java.io.IOException
testWrongLoginPassword
public void testWrongLoginPassword()
throws java.io.IOException
- Throws:
java.io.IOException
testUserCount
public void testUserCount()
throws java.io.IOException
- Throws:
java.io.IOException
testAddUserAndVerify
public void testAddUserAndVerify()
throws java.io.IOException
- Throws:
java.io.IOException
testDelUser
public void testDelUser()
throws java.io.IOException
- Throws:
java.io.IOException
testQuit
public void testQuit()
throws java.io.IOException
- Throws:
java.io.IOException
testListUsers
public void testListUsers()
throws java.io.IOException
- Throws:
java.io.IOException
testCommandCaseInsensitive
public void testCommandCaseInsensitive()
throws java.io.IOException
- Throws:
java.io.IOException
testParameterCaseSensitive
public void testParameterCaseSensitive()
throws java.io.IOException
- Throws:
java.io.IOException
testAlias
public void testAlias()
throws java.io.IOException
- Throws:
java.io.IOException
testForward
public void testForward()
throws java.io.IOException
- Throws:
java.io.IOException
testSetPassword
public void testSetPassword()
throws java.io.IOException
- Throws:
java.io.IOException
testAddMapping
public void testAddMapping()
throws java.io.IOException
- Throws:
java.io.IOException
testRemoveMapping
public void testRemoveMapping()
throws java.io.IOException
- Throws:
java.io.IOException
testListAllMappings
public void testListAllMappings()
throws java.io.IOException
- Throws:
java.io.IOException
testListMapping
public void testListMapping()
throws java.io.IOException
- Throws:
java.io.IOException
testaddDomain
public void testaddDomain()
throws java.io.IOException
- Throws:
java.io.IOException
testremoveDomain
public void testremoveDomain()
throws java.io.IOException
- Throws:
java.io.IOException
testListDomains
public void testListDomains()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.