avignon.handlers
Class TestSuiteHandler

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

public class TestSuiteHandler
extends java.lang.Object
implements AvignonTagHandler

Serves as a grouping symbol for a set of acceptance tests.
Attributes:


Constructor Summary
TestSuiteHandler()
          Default constructor used by Avignon itself.
TestSuiteHandler(java.lang.String name)
          Special constructor used in unit tests.
 
Method Summary
 void end(AvignonTestState state)
          No action.
 java.lang.String getTestSuiteName()
          Determines the name of the current suite of tests.
 void start(AvignonTestState state, org.xml.sax.Attributes attribs)
          Sets the name of the current test suite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSuiteHandler

public TestSuiteHandler()
Default constructor used by Avignon itself. Test suite name is set by the start method.


TestSuiteHandler

public TestSuiteHandler(java.lang.String name)
Special constructor used in unit tests. The test suite name is set by the parameter.

Parameters:
name - Name of the current test suite.
Method Detail

start

public void start(AvignonTestState state,
                  org.xml.sax.Attributes attribs)
Sets the name of the current test suite.

Specified by:
start in interface AvignonTagHandler
Parameters:
state - Not used.
attribs - The name attribute defines the name of the current suite of tests.

getTestSuiteName

public java.lang.String getTestSuiteName()
Determines the name of the current suite of tests.

Returns:
The name given to the current suite of tests.

end

public void end(AvignonTestState state)
No action.

Specified by:
end in interface AvignonTagHandler
Parameters:
state - Not used.

SourceForge.net Logo