org.apache.commons.net.pop3
Class POP3ClientCommandsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.net.pop3.POP3ClientCommandsTest
All Implemented Interfaces:
junit.framework.Test

public class POP3ClientCommandsTest
extends junit.framework.TestCase

Version:
$Id: POP3ClientCommandsTest.java 1299238 2012-03-10 17:12:28Z sebb $ The POP3* tests all presume the existence of the following parameters: mailserver: localhost (running on the default port 110) account: username=test; password=password account: username=alwaysempty; password=password. mail: At least four emails in the test account and zero emails in the alwaysempty account If this won't work for you, you can change these parameters in the TestSetupParameters class. The tests were originally run on a default installation of James. Your mileage may vary based on the POP3 server you run the tests against. Some servers are more standards-compliant than others.
Author:
[Net]

Constructor Summary
POP3ClientCommandsTest(String name)
           
 
Method Summary
 void testDelete()
           
 void testDeleteWithReset()
           
 void testListMessageOnEmptyMailbox()
           
 void testListMessageOnFullMailbox()
           
 void testListMessagesOnEmptyMailbox()
           
 void testListMessagesOnFullMailbox()
           
 void testListUniqueIdentifierOnEmptyMailbox()
           
 void testListUniqueIDOnFullMailbox()
           
 void testListUniqueIDsOnEmptyMailbox()
           
 void testListUniqueIDsOnFullMailbox()
           
 void testNoopCommand()
           
 void testResetAndDeleteShouldFails()
           
 void testRetrieveMessageOnEmptyMailbox()
           
 void testRetrieveMessageOnFullMailbox()
           
 void testRetrieveMessageShouldFails()
           
 void testRetrieveMessageTopOnEmptyMailbox()
           
 void testRetrieveMessageTopOnFullMailbox()
           
 void testRetrieveMessageTopShouldFails()
           
 void testRetrieveOverSizedMessageTopOnFullMailbox()
           
 void testStatus()
           
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

POP3ClientCommandsTest

public POP3ClientCommandsTest(String name)
Method Detail

testNoopCommand

public void testNoopCommand()
                     throws Exception
Throws:
Exception

testStatus

public void testStatus()
                throws Exception
Throws:
Exception

testListMessagesOnFullMailbox

public void testListMessagesOnFullMailbox()
                                   throws Exception
Throws:
Exception

testListMessageOnFullMailbox

public void testListMessageOnFullMailbox()
                                  throws Exception
Throws:
Exception

testListMessagesOnEmptyMailbox

public void testListMessagesOnEmptyMailbox()
                                    throws Exception
Throws:
Exception

testListMessageOnEmptyMailbox

public void testListMessageOnEmptyMailbox()
                                   throws Exception
Throws:
Exception

testListUniqueIDsOnFullMailbox

public void testListUniqueIDsOnFullMailbox()
                                    throws Exception
Throws:
Exception

testListUniqueIDOnFullMailbox

public void testListUniqueIDOnFullMailbox()
                                   throws Exception
Throws:
Exception

testListUniqueIDsOnEmptyMailbox

public void testListUniqueIDsOnEmptyMailbox()
                                     throws Exception
Throws:
Exception

testListUniqueIdentifierOnEmptyMailbox

public void testListUniqueIdentifierOnEmptyMailbox()
                                            throws Exception
Throws:
Exception

testRetrieveMessageOnFullMailbox

public void testRetrieveMessageOnFullMailbox()
                                      throws Exception
Throws:
Exception

testRetrieveMessageOnEmptyMailbox

public void testRetrieveMessageOnEmptyMailbox()
                                       throws Exception
Throws:
Exception

testRetrieveMessageShouldFails

public void testRetrieveMessageShouldFails()
                                    throws Exception
Throws:
Exception

testRetrieveMessageTopOnFullMailbox

public void testRetrieveMessageTopOnFullMailbox()
                                         throws Exception
Throws:
Exception

testRetrieveOverSizedMessageTopOnFullMailbox

public void testRetrieveOverSizedMessageTopOnFullMailbox()
                                                  throws Exception
Throws:
Exception

testRetrieveMessageTopOnEmptyMailbox

public void testRetrieveMessageTopOnEmptyMailbox()
                                          throws Exception
Throws:
Exception

testRetrieveMessageTopShouldFails

public void testRetrieveMessageTopShouldFails()
                                       throws Exception
Throws:
Exception

testDeleteWithReset

public void testDeleteWithReset()
                         throws Exception
Throws:
Exception

testDelete

public void testDelete()
                throws Exception
Throws:
Exception

testResetAndDeleteShouldFails

public void testResetAndDeleteShouldFails()
                                   throws Exception
Throws:
Exception


Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.