org.apache.fop.tools.anttasks
Class RunTest
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--org.apache.fop.tools.anttasks.RunTest
- public class RunTest
- extends org.apache.tools.ant.Task
Testing ant task.
This task is used to test FOP as a build target.
This uses the TestConverter (with weak code dependancy) to run the tests
and check the results.
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 |
Method Summary |
void |
execute()
Execute this ant task.
|
protected java.util.Hashtable |
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)
|
void |
setReference(java.lang.String str)
|
void |
setRefVersion(java.lang.String str)
|
void |
setTestSuite(java.lang.String str)
|
protected void |
testNewBuild()
Test the current build.
|
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunTest
public RunTest()
setTestSuite
public void setTestSuite(java.lang.String str)
setBasedir
public void setBasedir(java.lang.String str)
setReference
public void setReference(java.lang.String str)
setRefVersion
public void setRefVersion(java.lang.String str)
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Execute this ant task.
This creates the reference output, if required, then tests
the current build.
- Overrides:
execute
in class org.apache.tools.ant.Task
testNewBuild
protected void testNewBuild()
- Test the current build.
This uses the current jar file (in build/fop.jar) to run the
tests with.
The output is then compared with the reference output.
runReference
protected void runReference()
throws org.apache.tools.ant.BuildException
- Run the tests for the reference jar file.
This checks that the reference output has not already been
run and then checks the version of the reference jar against
the version required.
The reference output is then created.
runConverter
protected java.util.Hashtable runConverter(java.lang.ClassLoader loader,
java.lang.String dest,
java.lang.String compDir)
- Run the Converter.
Runs the test converter using the specified class loader.
This loads the TestConverter using the class loader and
then runs the test suite for the current test suite
file in the base directory.
- Parameters:
loader
- the class loader to use to run the tests with
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.