|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.jSyncManager.SJS.API.AbstractAdapter org.jSyncManager.SJS.API.AbstractRequestResponseAdapter org.jSyncManager.SJS.Adapters.SMTPServer.AbstractSMTPServer org.jSyncManager.SJS.Adapters.SMTPServer.TestSMTPServer org.jSyncManager.SJS.Tests.SMTPServerTest
public class SMTPServerTest
JUnit tests for the TestSMTPServer
processRequest function.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jSyncManager.SJS.Adapters.SMTPServer.AbstractSMTPServer |
---|
AbstractSMTPServer.CommandData, AbstractSMTPServer.CommandEhlo, AbstractSMTPServer.CommandExpn, AbstractSMTPServer.CommandHelo, AbstractSMTPServer.CommandHelp, AbstractSMTPServer.CommandMail, AbstractSMTPServer.CommandNoop, AbstractSMTPServer.CommandQuit, AbstractSMTPServer.CommandRcpt, AbstractSMTPServer.CommandRset, AbstractSMTPServer.CommandVrfy, AbstractSMTPServer.SmtpCommand, AbstractSMTPServer.State |
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static int |
EHLO_FAIL_NO_PARAMS
A final integer representing the "501 Syntax error in parameters or arguments" reply code. |
static int |
EHLO_FAIL_PARAMS
A final integer representing the "501 Syntax error in parameters or arguments" reply code. |
static int |
EHLO_SUCCESS
A final integer representing the "250 Requested mail action okay, completed" reply code. |
static int |
EXPN_FAIL_PARAMS
A final integer representing the "501 Syntax error in parameters or arguments" reply code. |
static int |
EXPN_SUCCESS_SYNTAX
A final integer representing the "502 Command not implemented" reply code. |
static int |
FAIL_UNKNOWN_COMMAND
A final integer representing the "500 Syntax error, command unrecognized" reply code. |
static int |
HELO_FAIL_NO_PARAMS
A final integer representing the "501 Syntax error in parameters or arguments" reply code. |
static int |
HELO_FAIL_PARAMS
A final integer representing the "501 Syntax error in parameters or arguments" reply code. |
static int |
HELO_SUCCESS
A final integer representing the "250 Requested mail action okay, completed" reply code. |
static int |
HELP_FAIL_PARAMS
A final integer representing the "501 Syntax error in parameters or arguments" reply code. |
static int |
HELP_SUCCESS
A final integer representing the "214 Help message" reply code. |
static int |
NOOP_SUCCESS
A final integer representing the "250 Requested mail action okay, completed" reply code. |
static int |
QUIT_FAIL_PARAMS
A final integer representing the "501 Syntax error in parameters or arguments" reply code. |
static int |
QUIT_SUCCESS
A final integer representing the "221 <domain> Service closing transmission channel" reply code. |
static int |
RSET_FAIL_PARAMS
A final integer representing the "501 Syntax error in parameters or arguments" reply code. |
static int |
RSET_SUCCESS
A final integer representing the "250 Requested mail action okay, completed" reply code. |
static int |
VRFY_FAIL_PARAMS
A final integer representing the "501 Syntax error in parameters or arguments" reply code. |
static int |
VRFY_SUCCESS_SYNTAX
A final integer representing the "502 Command not implemented" reply code. |
Fields inherited from class org.jSyncManager.SJS.Adapters.SMTPServer.TestSMTPServer |
---|
domain, server |
Fields inherited from class org.jSyncManager.SJS.Adapters.SMTPServer.AbstractSMTPServer |
---|
atDomainRegex, commands, currentMask, domainRegex, INVALID_ADDR_SYNTAX, INVALID_SEQUENCE, INVALID_SYNTAX, mailAddrExpr, PARAM_NOT_IMPLEMENTED, rcptAddrExpr, relayPattern, state, validEmailChars |
Fields inherited from class org.jSyncManager.SJS.API.AbstractAdapter |
---|
props |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SMTPServerTest()
|
Method Summary | |
---|---|
static void |
beginClass()
One-time setup method. |
void |
beginMethod()
Set up method. |
static void |
endClass()
One-time teardown method. |
void |
endMethod()
Tear down method. |
void |
general()
A method that tests general syntax errors. |
static void |
main(java.lang.String[] args)
Main method. |
void |
testEHLO()
A method that tests the EHLO command for correct command syntax and order of commands. |
void |
testEXPN()
A method that tests the EXPN command for correct command syntax and order of commands. |
void |
testHELO()
A method that tests the HELO command for correct command syntax and order of commands. |
void |
testHELP()
A method that tests the HELP command for correct command syntax and order of commands. |
void |
testNOOP()
A method that tests the NOOP command for correct command syntax and order of commands. |
void |
testQUIT()
A method that tests the QUIT command for correct command syntax and order of commands. |
void |
testRSET()
A method that tests the RSET command for correct command syntax and order of commands. |
void |
testVRFY()
A method that tests the VRFY command for correct command syntax and order of commands. |
Methods inherited from class org.jSyncManager.SJS.Adapters.SMTPServer.TestSMTPServer |
---|
getAddress, processData, processEhlo, processExpn, processHelo, processHelp, processMail, processMessageFinished, processMessagePart, processNoop, processQuit, processRcpt, processRset, processVrfy |
Methods inherited from class org.jSyncManager.SJS.Adapters.SMTPServer.AbstractSMTPServer |
---|
getCommands, getConnectionHeaderString, getCurrentMask, getMailAddrExpr, getRcptAddrExpr, getStateLong, initCommands, processRequest |
Methods inherited from class org.jSyncManager.SJS.API.AbstractRequestResponseAdapter |
---|
disconnect, getTimeoutMessage, processConnection |
Methods inherited from class org.jSyncManager.SJS.API.AbstractAdapter |
---|
connectionPermitted, getConnectionManagerInterface, getInetAddress, getLogManager, getProperty, processConnection, run, setLogManager, setThreadGroup |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int HELO_SUCCESS
public static final int HELO_FAIL_NO_PARAMS
public static final int HELO_FAIL_PARAMS
public static final int EHLO_SUCCESS
public static final int EHLO_FAIL_NO_PARAMS
public static final int EHLO_FAIL_PARAMS
public static final int QUIT_SUCCESS
public static final int QUIT_FAIL_PARAMS
public static final int NOOP_SUCCESS
public static final int HELP_SUCCESS
public static final int HELP_FAIL_PARAMS
public static final int EXPN_FAIL_PARAMS
public static final int EXPN_SUCCESS_SYNTAX
public static final int FAIL_UNKNOWN_COMMAND
public static final int RSET_FAIL_PARAMS
public static final int RSET_SUCCESS
public static final int VRFY_FAIL_PARAMS
public static final int VRFY_SUCCESS_SYNTAX
Constructor Detail |
---|
public SMTPServerTest()
Method Detail |
---|
public static void beginClass()
public void beginMethod()
public void general()
public void testHELO()
public void testEHLO()
public void testQUIT()
public void testNOOP()
public void testHELP()
public void testEXPN()
public void testRSET()
public void testVRFY()
public void endMethod()
public static void endClass()
public static void main(java.lang.String[] args)
JUnitCore
to SMTPServerTest
.
args
- command line parameters are disregarded.
|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |