|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.c4j.ContractBase<SMTPServer>
org.jSyncManager.SJS.Adapters.SMTPServer.contracts.SMTPServerContract
public class SMTPServerContract
This class specifies the contracts for relevant methods of the SMTPServer class.
Field Summary | |
---|---|
(package private) SMTPServer |
server
The server class being checked |
Fields inherited from class net.sourceforge.c4j.ContractBase |
---|
m_target |
Constructor Summary | |
---|---|
SMTPServerContract(SMTPServer server)
Creates a new SMTPServerContract for the passed server object (this is handled automatically) by the library |
Method Summary | |
---|---|
void |
classInvariant()
Specifies the states of the server that should never change. |
void |
post_checkAddress(java.lang.String addr)
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
post_getDomains()
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
post_getUsers()
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
post_processData()
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
post_processExpn(java.lang.String args)
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
post_processHelo(java.lang.String args)
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
post_processHelp(java.lang.String args)
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
post_processMail(java.lang.String args)
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
post_processMessageFinished()
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
post_processNoop()
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
post_processQuit()
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
post_processRcpt(java.util.List<java.lang.String> relays,
java.lang.String addr)
Check to ensure that the server always returns a response (if there is a problem, it should return an error string, never null). |
void |
pre_checkAddress(java.lang.String addr)
Code doesn't check to ensure that addr is not null, so it is checked in this contract. |
void |
pre_getAddress(java.lang.String address)
Code doesn't check to ensure that address is not null, so it is checked in this contract. |
void |
pre_processEhlo(java.lang.String args)
Code doesn't check to ensure that args is not null, so it is checked in this contract. |
void |
pre_processExpn(java.lang.String args)
Code doesn't check to ensure that args is not null, so it is checked in this contract. |
void |
pre_processHelo(java.lang.String args)
Code doesn't check to ensure that args is not null, so it is checked in this contract. |
void |
pre_processRcpt(java.util.List<java.lang.String> relays,
java.lang.String addr)
¥ÊCode doesn't check to ensure that addr is not null, so it is checked in this contract. |
Methods inherited from class net.sourceforge.c4j.ContractBase |
---|
addLogger, classInvariantCheck, getPreconditionValue, getReturnValue, getTargetField, popPreconditionValuesMap, popReturnValue, postConditionCheck, preConditionCheck, pushPreconditionValuesMap, pushReturnValue, setPreconditionValue, setReturnValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
SMTPServer server
Constructor Detail |
---|
public SMTPServerContract(SMTPServer server)
server
- The server to have its contracts testedMethod Detail |
---|
public void classInvariant()
public void pre_processExpn(java.lang.String args)
args
- Should not be null.public void pre_processHelo(java.lang.String args)
args
- Should not be null.public void pre_getAddress(java.lang.String address)
address
- Should not be null.public void pre_checkAddress(java.lang.String addr)
addr
- Should not be null.public void pre_processEhlo(java.lang.String args)
args
- Should not be null.public void pre_processRcpt(java.util.List<java.lang.String> relays, java.lang.String addr)
relays
- Don't care about this, it is never used in the method.addr
- Should not be null.public void post_processRcpt(java.util.List<java.lang.String> relays, java.lang.String addr)
relays
- addr
- public void post_getUsers()
public void post_getDomains()
public void post_checkAddress(java.lang.String addr)
addr
- public void post_processData()
public void post_processExpn(java.lang.String args)
args
- public void post_processHelo(java.lang.String args)
args
- public void post_processHelp(java.lang.String args)
args
- public void post_processMail(java.lang.String args)
args
- public void post_processMessageFinished()
public void post_processNoop()
public void post_processQuit()
|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |