|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.derbyTesting.junit.BaseTestCase
org.apache.derbyTesting.junit.BaseJDBCTestCase
org.apache.derbyTesting.functionTests.util.CanonTestCase
org.apache.derbyTesting.functionTests.util.HarnessJavaTest
public abstract class HarnessJavaTest
Run a '.java' test from the old harness in the Junit infrastructure.
The test's output is compared to a master file using the facilities
of the super class CanonTestCase.
This allows a faster switch to running all tests under a single
JUnit infrastructure. Running a test using this class does not
preclude it from being converted to a real JUnit assert based test.
| Field Summary | |
|---|---|
private static java.lang.Object[] |
MAIN_ARG
|
private static java.lang.Class[] |
MAIN_ARG_TYPE
|
| Fields inherited from class org.apache.derbyTesting.functionTests.util.CanonTestCase |
|---|
DEFAULT_ENCODING, outputEncoding |
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
protected |
HarnessJavaTest(java.lang.String name)
Create a test, the name corresonds to the class name of the test (without any package information). |
| Method Summary | |
|---|---|
protected static junit.framework.Test |
decorate(HarnessJavaTest test)
Decorate a HarnessJavaTest test. |
protected abstract java.lang.String |
getArea()
Return the folder of the test, such as 'jdbcapi' or 'lang'. |
void |
runTest()
|
private void |
setSystemOut(java.io.PrintStream out)
Need to capture System.out so that we can compare it. |
| Methods inherited from class org.apache.derbyTesting.functionTests.util.CanonTestCase |
|---|
compareCanon, getOutputStream, tearDown |
| Methods inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
alarm, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertSecurityManager, assertThrowableEquals, execJavaCmd, fail, getFailureFolder, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeSystemProperty, runBare, setSystemProperty, traceit |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, setName, setUp, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.Object[] MAIN_ARG
private static final java.lang.Class[] MAIN_ARG_TYPE
| Constructor Detail |
|---|
protected HarnessJavaTest(java.lang.String name)
name - | Method Detail |
|---|
protected abstract java.lang.String getArea()
public void runTest()
throws java.lang.Throwable
runTest in class junit.framework.TestCasejava.lang.Throwableprotected static junit.framework.Test decorate(HarnessJavaTest test)
private void setSystemOut(java.io.PrintStream out)
out -
|
Built on Sat 2009-11-28 18:44:18-0800, from revision 885187 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||