|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jsieve.tests.AbstractTest
public abstract class AbstractTest
Abstract class AbstractTest defines a framework of common behavior for Sieve Tests.
| Constructor Summary | |
|---|---|
AbstractTest()
Constructor for AbstractTest. |
|
| Method Summary | |
|---|---|
boolean |
execute(MailAdapter mail,
Arguments arguments,
SieveContext context)
Method execute executes a basic Sieve Test after first invoking framework methods to validate the Command arguments. |
protected abstract boolean |
executeBasic(MailAdapter mail,
Arguments arguments,
SieveContext context)
Abstract method executeBasic invokes a Sieve Test. |
protected void |
validateArguments(Arguments arguments,
SieveContext context)
Framework method validateArguments is invoked before a Sieve Test is executed to validate its arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTest()
| Method Detail |
|---|
public boolean execute(MailAdapter mail,
Arguments arguments,
SieveContext context)
throws SieveException
Method execute executes a basic Sieve Test after first invoking framework methods to validate the Command arguments.
Also,
execute in interface ExecutableTestcontext - SieveContext giving contextual information, not
null
SieveExceptionExecutableTest.execute(MailAdapter,
Arguments, SieveContext)
protected abstract boolean executeBasic(MailAdapter mail,
Arguments arguments,
SieveContext context)
throws SieveException
mail - arguments - context - SieveContext giving contextual information, not
null
SieveException
protected void validateArguments(Arguments arguments,
SieveContext context)
throws SieveException
arguments - context - SieveContext giving comntextual information,
not null
SieveException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||