|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.fop.tools.anttasks.RunTest
public class RunTest
Testing ant task. This task is used to test FOP as a build target. This uses the TestConverter (with weak code dependency) to run the tests and check the results.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
RunTest()
|
Method Summary | |
---|---|
void |
execute()
This creates the reference output, if required, then tests the current build. |
protected java.util.Map |
runConverter(java.lang.ClassLoader loader,
java.lang.String dest,
java.lang.String compDir)
Run the Converter. |
protected void |
runReference()
Run the tests for the reference jar file. |
void |
setBasedir(java.lang.String str)
Sets the base directory. |
void |
setReference(java.lang.String str)
Sets the reference directory. |
void |
setRefVersion(java.lang.String str)
Sets the reference version. |
void |
setTestSuite(java.lang.String str)
Sets the test suite name. |
protected void |
testNewBuild()
Test the current build. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RunTest()
Method Detail |
---|
public void setTestSuite(java.lang.String str)
str
- name of the test suitepublic void setBasedir(java.lang.String str)
str
- base directorypublic void setReference(java.lang.String str)
str
- reference directorypublic void setRefVersion(java.lang.String str)
str
- reference versionpublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
protected void testNewBuild()
protected void runReference() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if an error occursprotected java.util.Map runConverter(java.lang.ClassLoader loader, java.lang.String dest, java.lang.String compDir)
loader
- the class loader to use to run the tests withdest
- destination directorycompDir
- comparison directory
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |