public class ComponentTestSuite extends TestSuite implements IAbortableTestSuite
Modifier and Type | Field and Description |
---|---|
boolean |
aborted
Indicate when the suite is aborted due to excessive run time.
|
protected java.lang.ClassLoader |
classloader
The class loader.
|
static java.lang.String[] |
DEFARGS
The default test platform arguments.
|
protected IExternalAccess |
platform
The platform.
|
protected long |
timeout
The timeout (if any).
|
protected java.util.Timer |
timer
The timeout timer (if any).
|
Constructor and Description |
---|
ComponentTestSuite(java.io.File[] path,
java.io.File[] root,
java.lang.String[] excludes)
Create a component test suite for components contained in a given path.
|
ComponentTestSuite(java.io.File[] path,
java.io.File[] root,
java.lang.String[] excludes,
boolean test,
boolean load,
boolean start)
Create a component test suite for components contained in a given path.
|
ComponentTestSuite(java.io.File[] root,
java.lang.String[] excludes)
Create a component test suite for components contained in a given path.
|
ComponentTestSuite(java.lang.String[] args,
java.io.File[] paths,
java.io.File[] roots,
java.lang.String[] excludes,
boolean runtests,
boolean load,
boolean start)
Create a component test suite for components contained in a given path.
|
ComponentTestSuite(java.lang.String projectDir,
java.lang.String[] excludes)
Create a component test suite for components contained in a given path.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(TestResult result)
Called after test suite is finished.
|
static void |
clearAWT()
Workaround for AWT/Swing memory leaks.
|
java.lang.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.
|
protected void |
startTimer() |
protected void |
stopTimer() |
public static final java.lang.String[] DEFARGS
public boolean aborted
protected IExternalAccess platform
protected java.lang.ClassLoader classloader
protected long timeout
protected java.util.Timer timer
public ComponentTestSuite(java.lang.String projectDir, java.lang.String[] excludes) throws java.lang.Exception
projectDir
- The project directory.excludes
- Files to exclude (if a pattern is contained in file path).java.lang.Exception
public ComponentTestSuite(java.io.File[] root, java.lang.String[] excludes) throws java.lang.Exception
root
- The class path root corresponding to the path.excludes
- Files to exclude (if a pattern is contained in file path).java.lang.Exception
public ComponentTestSuite(java.io.File[] path, java.io.File[] root, java.lang.String[] excludes) throws java.lang.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).java.lang.Exception
public ComponentTestSuite(java.io.File[] path, java.io.File[] root, java.lang.String[] excludes, boolean test, boolean load, boolean start) throws java.lang.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).test
- Run test components.load
- Include broken components (will cause test failure if any). Also shows loadable, but not startable components as succeeded tests.start
- Try starting components, which are no test cases.java.lang.Exception
public ComponentTestSuite(java.lang.String[] args, java.io.File[] paths, java.io.File[] roots, java.lang.String[] excludes, boolean runtests, boolean load, boolean start) throws java.lang.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).runtests
- Run test components.broken
- Include broken components (will cause test failure if any).start
- Try starting components, which are no test cases.java.lang.Exception
protected void startTimer()
protected void stopTimer()
public boolean isAborted()
isAborted
in interface IAbortableTestSuite
public void run(TestResult result)
protected void cleanup(TestResult result)
public static void clearAWT()
public java.lang.ClassLoader getClassLoader()