|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.TestSuite org.eclipse.emf.test.tools.merger.JMergerTestSuite
public class JMergerTestSuite
Runs JDOM JMergerJDOMTest
or AST JMergerASTTest
or both
for each data directory /data/merge.input/<java version>/merge*
.
Each test determines if it can be ran for each data directory.
JMergerTest.DIRECTORY_NAMES_TO_JAVA_VERSIONS
,
JMergerJDOMTest.JMergerJDOMTest(TestSuite, File)
,
JMergerASTTest.JMergerASTTest(TestSuite, File)
Nested Class Summary | |
---|---|
protected static class |
JMergerTestSuite.JMergerDataDirectoryFilter
Filter for the directories that will be used as data directories for tests. |
Field Summary | |
---|---|
protected static java.io.File |
DEFAULT_ROOT_DIRECTORY
Default root data directory containing java versions subdirectories. |
Constructor Summary | |
---|---|
JMergerTestSuite(java.lang.String name)
|
Method Summary | |
---|---|
protected void |
addTestCases(junit.framework.TestSuite ts,
java.io.File dataDirectory)
Adds tests that can be ran for the given data directory to the test suite. |
protected junit.framework.TestSuite |
createSingleInputTestSuite(java.io.File dataDirectory)
Creates and returns test suite for a single input directory. |
protected junit.framework.TestSuite |
createTestSuiteRecursively(java.io.File directory)
Creates a test suite recursively for all directories in the directory tree. |
protected java.io.File |
determineRootDataDirectory()
|
protected void |
populateSuite()
Populates suite with test cases for each data directory. |
static junit.framework.TestSuite |
suite()
|
Methods inherited from class junit.framework.TestSuite |
---|
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.io.File DEFAULT_ROOT_DIRECTORY
Default is /data/merge.input
JMergerTest.DIRECTORY_NAMES_TO_JAVA_VERSIONS
Constructor Detail |
---|
public JMergerTestSuite(java.lang.String name)
name
- Method Detail |
---|
public static junit.framework.TestSuite suite()
protected java.io.File determineRootDataDirectory()
JMergerTest.DIRECTORY_NAMES_TO_JAVA_VERSIONS
protected void populateSuite()
protected junit.framework.TestSuite createTestSuiteRecursively(java.io.File directory)
JMergerTestSuite.JMergerDataDirectoryFilter
.
directory
- root directory to create test suite for
protected junit.framework.TestSuite createSingleInputTestSuite(java.io.File dataDirectory)
dataDirectory
- directory containing directory with subDirectoryNameprotected void addTestCases(junit.framework.TestSuite ts, java.io.File dataDirectory)
ts
- test suite to add tests todataDirectory
-
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |