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, unlessProperty| Constructor and Description |
|---|
BatchTest(Project project)
create a new batchtest instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ResourceCollection rc)
Add a new ResourceCollection instance to this batchtest.
|
void |
addFileSet(FileSet fs)
Add a new fileset instance to this batchtest.
|
Enumeration |
elements()
Return all JUnitTest instances obtain by applying the fileset rules.
|
static String |
javaToClass(String filename)
Convenient method to convert a pathname without extension to a fully qualified classname.
|
void |
setAnnotations(String annotationString) |
void |
setExcludedPackages(String packages) |
void |
setExtensions(String extensions) |
void |
setPackages(String packages) |
void |
setReplaced(String replaced) |
void |
setSplit(String split) |
void |
setWebTests(String value) |
addFormatter, getErrorProperty, getFailureProperty, getFiltertrace, getFork, getHaltonerror, getHaltonfailure, getTodir, setErrorProperty, setFailureProperty, setFiltertrace, setFork, setHaltonerror, setHaltonfailure, setIf, setTodir, setUnlesspublic BatchTest(Project project)
project - the project it depends on.public void setWebTests(String value)
public void setExcludedPackages(String packages) throws Exception
Exceptionpublic void setReplaced(String replaced)
public void setSplit(String split)
public void setAnnotations(String annotationString)
public void addFileSet(FileSet fs)
fs - the new fileset containing the rules to get the testcases.public void add(ResourceCollection rc)
rc - the new ResourceCollection containing the rules to get the testcases.public Enumeration elements()
public static String javaToClass(String filename)
filename - the filename to "convert" to a classname.Copyright © 2017 SAP SE. All Rights Reserved.