org.japano.util
Class TestJSP

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.japano.util.TestJSP
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class TestJSP
extends org.apache.tools.ant.taskdefs.MatchingTask

Ant Task to run automated inner page JSP tests with the japano test tag. The task sets up a simulated servlet environment via httpunit and tests all included JSP pages. Every page is invoked once. If the page returns no HTTP error and does not contain the magic phrase "FAILED!" the test is successful.

Version:
$Id: TestJSP.java,v 1.5 2005/09/27 21:30:51 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
TestJSP()
           
 
Method Summary
 void execute()
           
 void setInitParameter(java.lang.String params)
          Sets the initparameters for the japano servlet.
 void setWebapp(java.lang.String webapp)
          Root directory of the webapplication to test in.
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestJSP

public TestJSP()
Method Detail

setWebapp

public void setWebapp(java.lang.String webapp)
Root directory of the webapplication to test in.


setInitParameter

public void setInitParameter(java.lang.String params)
Sets the initparameters for the japano servlet. (Format: "key1=value1,key2=value2,[...]keyN=valueN")


execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException