public class ComponentTestSuite
extends TestSuite
Modifier and Type | Field and Description |
---|---|
boolean |
aborted
Indicate when the suite is aborted due to excessive run time.
|
Constructor and Description |
---|
ComponentTestSuite(File path,
File root,
String[] excludes)
Create a component test suite for components contained in a given path.
|
ComponentTestSuite(File path,
File root,
String[] excludes,
long timeout,
boolean test,
boolean broken,
boolean start)
Create a component test suite for components contained in a given path.
|
ComponentTestSuite(String[] args,
File path,
File root,
String[] excludes,
long timeout,
boolean runtests,
boolean broken,
boolean start)
Create a component test suite for components contained in a given path.
|
Modifier and Type | Method and Description |
---|---|
static void |
clearAWT()
Workaround for AWT/Swing memory leaks.
|
ClassLoader |
getClassLoader()
Get the class loader.
|
boolean |
isAborted()
Indicate when the suite is aborted due to excessive run time.
|
void |
run(TestResult result)
Overridden for pre and post code.
|
public boolean aborted
public ComponentTestSuite(File path, File root, String[] excludes) throws Exception
path
- The path to look for test cases in.root
- The classpath root corresponding to the path.excludes
- Files to exclude (if a pattern is contained in file path).Exception
public ComponentTestSuite(File path, File root, String[] excludes, long timeout, boolean test, boolean broken, boolean start) throws Exception
path
- The path to look for test cases in.root
- The classpath root corresponding to the path.excludes
- Files to exclude (if a pattern is contained in file path).timeout
- The test suite timeout (if tests are not completed, execution will be aborted).test
- Run test components.broken
- Include broken components (will cause test failure if any).start
- Try starting components, which are no test cases.Exception
public ComponentTestSuite(String[] args, File path, File root, String[] excludes, long timeout, boolean runtests, boolean broken, boolean start) throws Exception
args
- The platform arguments.path
- The path to look for test cases in.excludes
- Files to exclude (if a pattern is contained in file path).timeout
- The test suite timeout (if tests are not completed, execution will be aborted).runtests
- Run test components.broken
- Include broken components (will cause test failure if any).start
- Try starting components, which are no test cases.Exception
public boolean isAborted()
public void run(TestResult result)
public static void clearAWT()
public ClassLoader getClassLoader()
Copyright © 2015. All Rights Reserved.