avignon.handlers
Class ShuntedTestState

java.lang.Object
  extended byavignon.AvignonTestState
      extended byavignon.handlers.ShuntedTestState

public class ShuntedTestState
extends AvignonTestState

This class is used in handler unit tests to allow you to set up a specific test state.


Constructor Summary
ShuntedTestState(AvignonTagHandler[] handlers)
          Creates an AvignonTestState with multiple handlers on its stack.
 
Method Summary
 void closeApplication()
          Simulates closing the application.
 void initializeApplication()
          Simulates initializing an application.
 boolean isApplicationClosed()
          Allows the programmer to determine if the closeApplication method has been called.True if closeApplication has been called.
 boolean isApplicationInitialized()
          Allows the programmer to determine if initializeApplication has been called.
 
Methods inherited from class avignon.AvignonTestState
anyErrors, anyErrorsForTest, appendErrorMessage, appendErrorMessage, getApplication, getAppStart, getCurrentFormRequest, getCurrentResponse, getErrorMessages, getFormRequest, getFrameContents, getPageDescriptionDirectory, getStackTop, getTestName, loadPageFromItemClick, loadPageFromPageClick, peek, peekAll, pop, push, setTestName, submitRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShuntedTestState

public ShuntedTestState(AvignonTagHandler[] handlers)
Creates an AvignonTestState with multiple handlers on its stack.

Parameters:
handlers - Handlers to push onto the stack. Lower indicies are lower on the stack.
Method Detail

isApplicationClosed

public boolean isApplicationClosed()
Allows the programmer to determine if the closeApplication method has been called.True if closeApplication has been called.

Returns:
True if closeApplication has been called.

initializeApplication

public void initializeApplication()
Simulates initializing an application.

Overrides:
initializeApplication in class AvignonTestState

isApplicationInitialized

public boolean isApplicationInitialized()
Allows the programmer to determine if initializeApplication has been called.

Returns:
True if initializeApplication has been called.

closeApplication

public void closeApplication()
Simulates closing the application.

Overrides:
closeApplication in class AvignonTestState

SourceForge.net Logo