org.apache.james.remotemanager
Class RemoteManagerTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.james.remotemanager.RemoteManagerTest
- All Implemented Interfaces:
- junit.framework.Test
public class RemoteManagerTest
- extends junit.framework.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 junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_remoteManagerListenerPort
protected int m_remoteManagerListenerPort
m_remoteManager
protected 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 InternetPrintWriter m_writer
m_telnetClient
protected org.apache.commons.net.telnet.TelnetClient m_telnetClient
RemoteManagerTest
public RemoteManagerTest()
setUp
protected void setUp()
throws java.lang.Exception
- Overrides:
setUp
in class junit.framework.TestCase
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Overrides:
tearDown
in class junit.framework.TestCase
- 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
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
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.