public final class BatchTest extends BaseTest
JUnitTest's based on the list of files given by the fileset attribute.
Every .java or .class file in the fileset is assumed to be a testcase. A
JUnitTest is created for each of these named classes with basic setup inherited from the parent
BatchTest.JUnitTestdestDir, errorProperty, failureProperty, filtertrace, fork, formatters, haltOnError, haltOnFail, ifProperty, suppressJunitTenant, unlessProperty| Constructor and Description |
|---|
BatchTest(org.apache.tools.ant.Project project)
create a new batchtest instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.tools.ant.types.ResourceCollection rc)
Add a new ResourceCollection instance to this batchtest.
|
void |
addFileSet(org.apache.tools.ant.types.FileSet fs)
Add a new fileset instance to this batchtest.
|
java.util.Enumeration |
elements()
Return all JUnitTest instances obtain by applying the fileset rules.
|
static java.lang.String |
javaToClass(java.lang.String filename)
Convenient method to convert a pathname without extension to a fully qualified classname.
|
void |
setAnnotations(java.lang.String annotationString) |
void |
setExcludedPackages(java.lang.String packages) |
void |
setExtensions(java.lang.String extensions) |
void |
setPackages(java.lang.String packages) |
void |
setReplaced(java.lang.String replaced) |
void |
setSplit(java.lang.String split) |
void |
setWebTests(java.lang.String value) |
addFormatter, getErrorProperty, getFailureProperty, getFiltertrace, getFork, getHaltonerror, getHaltonfailure, getTodir, isSuppressJunitTenant, setErrorProperty, setFailureProperty, setFiltertrace, setFork, setHaltonerror, setHaltonfailure, setIf, setSuppressJunitTenant, setTodir, setUnlesspublic BatchTest(org.apache.tools.ant.Project project)
project - the project it depends on.public void setWebTests(java.lang.String value)
public void setExtensions(java.lang.String extensions)
throws java.lang.Exception
java.lang.Exceptionpublic void setExcludedPackages(java.lang.String packages)
throws java.lang.Exception
java.lang.Exceptionpublic void setPackages(java.lang.String packages)
throws java.lang.Exception
java.lang.Exceptionpublic void setReplaced(java.lang.String replaced)
public void setSplit(java.lang.String split)
public void setAnnotations(java.lang.String annotationString)
public void addFileSet(org.apache.tools.ant.types.FileSet fs)
fs - the new fileset containing the rules to get the testcases.public void add(org.apache.tools.ant.types.ResourceCollection rc)
rc - the new ResourceCollection containing the rules to get the testcases.public java.util.Enumeration elements()
public static java.lang.String javaToClass(java.lang.String filename)
filename - the filename to "convert" to a classname.Copyright © 2018 SAP SE. All Rights Reserved.