avignon.handlers
Class AcceptanceTestHandler

java.lang.Object
  extended byavignon.handlers.AcceptanceTestHandler
All Implemented Interfaces:
AvignonTagHandler

public class AcceptanceTestHandler
extends java.lang.Object
implements AvignonTagHandler

Helps to name and bracket an acceptance test. This handler is also responsible for calling the setup and teardown scripts as defined by the Avignon properties file.

Attributes:

At present this tag will also restore the database state if it encloses a DatabaseState tag. This feature is deprecated.


Constructor Summary
AcceptanceTestHandler()
           
 
Method Summary
 void end(AvignonTestState state)
          Called when the tag is closed.
 boolean equals(java.lang.Object value)
           
protected  java.lang.String getSetupScriptName()
          Returns the name of the setup script defined in Avignon's properties file.
protected  java.lang.String getTearDownScriptName()
          Returns the name of the teardown script defined in Avignon's properties file.
protected  ScriptRunner getTestScriptHandler()
          Returns the test script running used to execute the setup and teardown scripts.
 void setDatabaseState(DatabaseStateHandler value)
          Deprecated. This method is being deprecated in favor of using setup and teardown scripts.
 void start(AvignonTestState state, org.xml.sax.Attributes attributes)
          Called when the tag is first encountered.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptanceTestHandler

public AcceptanceTestHandler()
Method Detail

end

public void end(AvignonTestState state)
Description copied from interface: AvignonTagHandler
Called when the tag is closed.

Specified by:
end in interface AvignonTagHandler
Parameters:
state -

start

public void start(AvignonTestState state,
                  org.xml.sax.Attributes attributes)
Description copied from interface: AvignonTagHandler
Called when the tag is first encountered.

Specified by:
start in interface AvignonTagHandler
Parameters:
state -
attributes -

getSetupScriptName

protected java.lang.String getSetupScriptName()
Returns the name of the setup script defined in Avignon's properties file. Overridden for unit tests.

Returns:

getTearDownScriptName

protected java.lang.String getTearDownScriptName()
Returns the name of the teardown script defined in Avignon's properties file. Overridden for unit tests.

Returns:

getTestScriptHandler

protected ScriptRunner getTestScriptHandler()
Returns the test script running used to execute the setup and teardown scripts. Overridden for unit tests.

Returns:

setDatabaseState

public void setDatabaseState(DatabaseStateHandler value)
Deprecated. This method is being deprecated in favor of using setup and teardown scripts.

Used to communicate when a DatabaseStateHandler is included in this tag.

Parameters:
value - Instance of the DatabaseStateHandler that will be responsible for restoring database state when the AcceptanceTest tag closes.

equals

public boolean equals(java.lang.Object value)

SourceForge.net Logo