|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.apache.james.transport.remotedeliverytester.AbstractRemoteDeliveryTest
public abstract class AbstractRemoteDeliveryTest
Constructor Summary | |
---|---|
AbstractRemoteDeliveryTest()
|
Method Summary | |
---|---|
protected java.lang.String[][] |
addServers(Tester tester,
java.lang.String[][] servers,
boolean sendValid)
|
protected void |
assertProcMail(ProcMail pmail,
int state,
int sends,
int minBounce,
java.lang.String lastServer)
Assert procmail result. |
protected void |
assertServer(Tester.TestStatus status,
java.lang.String server,
int sends,
int maxConnection)
|
protected void |
assertWhole(Tester.TestStatus status,
int sends,
int maxConnection)
|
protected void |
doTest1(RemoteDeliveryTestable rd,
java.util.Properties params)
|
protected void |
doTest10(RemoteDeliveryTestable rd,
java.util.Properties params)
IO Exception |
protected void |
doTest2_0(RemoteDeliveryTestable rd,
java.util.Properties params)
|
protected void |
doTest2(RemoteDeliveryTestable rd,
java.util.Properties params)
|
protected void |
doTest3(RemoteDeliveryTestable rd,
java.util.Properties params)
Permanent error fo 1/2 addresses. |
protected void |
doTest4(RemoteDeliveryTestable rd,
java.util.Properties params)
Temporary error for 1/2 addresses. |
protected void |
doTest5(RemoteDeliveryTestable rd,
java.util.Properties params)
1 Temporary error + 1 Permanent error |
protected void |
doTest6(RemoteDeliveryTestable rd,
java.util.Properties params)
Mixed |
protected void |
doTest7a(RemoteDeliveryTestable rd,
java.util.Properties params)
NPE during send |
protected void |
doTest7b(RemoteDeliveryTestable rd,
java.util.Properties params)
|
protected void |
doTest8(RemoteDeliveryTestable rd,
java.util.Properties params)
Multiple mx servers for a single domain. |
protected void |
doTest9(RemoteDeliveryTestable rd,
java.util.Properties params)
Multiple MX server for a domain. |
protected void |
doTestMulti(RemoteDeliveryTestable rd,
java.util.Properties params)
|
abstract RemoteDeliveryTestable |
getDeliverer()
|
abstract java.util.Properties |
getParameters()
|
protected java.util.Properties |
getStandardParameters()
|
protected java.lang.String[][] |
getTestMultiEmails()
"OK" : we expect the mail to this recipient to be delivered "KO" : we expect the mail to this recipient to fail "NA" : the result is not predictable because of random behaviour, but we expect attempts. |
protected java.lang.String[][] |
getTestMultiServers()
|
protected void |
initEnvironment()
|
void |
test1()
|
void |
test10()
|
void |
test2_0()
|
void |
test2()
|
void |
test3()
|
void |
test4()
|
void |
test5()
|
void |
test6()
|
void |
test7()
|
void |
test8()
|
void |
test9()
|
void |
testMulti()
|
protected int |
waitEmptySpool(int maxWait)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractRemoteDeliveryTest()
Method Detail |
---|
public abstract RemoteDeliveryTestable getDeliverer()
public abstract java.util.Properties getParameters()
public void test1() throws java.lang.Exception
java.lang.Exception
public void test2_0() throws java.lang.Exception
java.lang.Exception
public void test2() throws java.lang.Exception
java.lang.Exception
public void test3() throws java.lang.Exception
java.lang.Exception
public void test4() throws java.lang.Exception
java.lang.Exception
public void test5() throws java.lang.Exception
java.lang.Exception
public void test6() throws java.lang.Exception
java.lang.Exception
public void test7() throws java.lang.Exception
java.lang.Exception
public void test8() throws java.lang.Exception
java.lang.Exception
public void test9() throws java.lang.Exception
java.lang.Exception
public void test10() throws java.lang.Exception
java.lang.Exception
public void testMulti() throws java.lang.Exception
java.lang.Exception
protected void initEnvironment()
protected java.util.Properties getStandardParameters()
protected java.lang.String[][] addServers(Tester tester, java.lang.String[][] servers, boolean sendValid)
protected int waitEmptySpool(int maxWait)
protected void assertWhole(Tester.TestStatus status, int sends, int maxConnection)
status
- sends
- Email send attempts number. if < 0 will take the minimum number.maxConnection
- Max attempts to connect the server. If < 0 defaults to the minimum.protected void assertServer(Tester.TestStatus status, java.lang.String server, int sends, int maxConnection)
status
- server
- sends
- Email send attempts number. if < 0 will take the minimum number.maxConnection
- Max attempts to connect the server. If < 0 defaults to the minimum.protected void assertProcMail(ProcMail pmail, int state, int sends, int minBounce, java.lang.String lastServer)
pmail
- state
- sends
- Email send attempts number. if < 0 will take the minimum number.minBounce
- lastServer
- protected void doTest1(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
java.lang.Exception
protected void doTest2_0(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
java.lang.Exception
protected void doTest2(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
java.lang.Exception
protected void doTest3(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
rd
-
java.lang.Exception
protected void doTest4(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
rd
-
java.lang.Exception
protected void doTest5(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
rd
-
java.lang.Exception
protected void doTest6(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
rd
-
java.lang.Exception
protected void doTest7a(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
rd
-
java.lang.Exception
protected void doTest7b(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
java.lang.Exception
protected void doTest8(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
java.lang.Exception
protected void doTest9(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
java.lang.Exception
protected void doTest10(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
java.lang.Exception
protected java.lang.String[][] getTestMultiServers()
protected java.lang.String[][] getTestMultiEmails()
protected void doTestMulti(RemoteDeliveryTestable rd, java.util.Properties params) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |