org.subethamail.smtp.test.command
Class AuthTest
java.lang.Object
TestCase
org.subethamail.smtp.test.util.ServerTestCase
org.subethamail.smtp.test.command.AuthTest
public class AuthTest
- extends ServerTestCase
- Author:
- Marco Trevisan , Jeff Schnitzer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthTest
public AuthTest(String name)
setUp
protected void setUp()
throws Exception
- Overrides:
setUp in class ServerTestCase
- Throws:
Exception
tearDown
protected void tearDown()
throws Exception
- Overrides:
tearDown in class ServerTestCase
- Throws:
Exception
testAuthPlain
public void testAuthPlain()
throws Exception
- Test method for AUTH PLAIN.
The sequence under test is as follows:
- HELO test
- User starts AUTH PLAIN
- User sends username+password
- We expect login to be successful. Also the Base64 transformations are tested.
- User issues another AUTH command
- We expect an error message
AuthCommand.execute(java.lang.String, org.subethamail.smtp.server.Session).
- Throws:
Exception
testAuthLogin
public void testAuthLogin()
throws Exception
- Test method for AUTH LOGIN.
The sequence under test is as follows:
- HELO test
- User starts AUTH LOGIN
- User sends username
- User cancels authentication by sending "*"
- User restarts AUTH LOGIN
- User sends username
- User sends password
- We expect login to be successful. Also the Base64 transformations are tested.
- User issues another AUTH command
- We expect an error message
AuthCommand.execute(java.lang.String, org.subethamail.smtp.server.Session).
- Throws:
Exception
Copyright © 2006-2011. All Rights Reserved.