|
|||||||||
| 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
abstract class CanonTestCase
Run a test that compares itself to a master (canon) file. This is used to support cannon based tests that ran under the old Derby test harness without having to convert them. It is not recommended for new tests. New test should use the JUnit assert mechanisms.
| Field Summary | |
|---|---|
(package private) static java.lang.String |
DEFAULT_ENCODING
|
(package private) java.lang.String |
outputEncoding
|
private java.io.ByteArrayOutputStream |
rawBytes
|
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
CanonTestCase(java.lang.String name)
|
|
CanonTestCase(java.lang.String name,
java.lang.String encoding)
|
|
| Method Summary | |
|---|---|
(package private) void |
compareCanon(java.lang.String canon)
Compare the output to the canon provided. |
private void |
dumpForFail(byte[] rawOutput)
Dump the output that did not compare correctly into the failure folder with the name this.getName() + ".out". |
(package private) java.io.OutputStream |
getOutputStream()
|
protected void |
tearDown()
Tear down this fixture, sub-classes should call super.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, runTest, 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 |
|---|
static final java.lang.String DEFAULT_ENCODING
final java.lang.String outputEncoding
private java.io.ByteArrayOutputStream rawBytes
| Constructor Detail |
|---|
CanonTestCase(java.lang.String name)
CanonTestCase(java.lang.String name,
java.lang.String encoding)
| Method Detail |
|---|
java.io.OutputStream getOutputStream()
void compareCanon(java.lang.String canon)
throws java.lang.Throwable
canon - Name of canon as a resource.
java.lang.Throwable
private void dumpForFail(byte[] rawOutput)
throws java.io.IOException,
java.security.PrivilegedActionException
rawOutput -
java.io.IOException
java.security.PrivilegedActionException
protected void tearDown()
throws java.lang.Exception
BaseJDBCTestCase
tearDown in class BaseJDBCTestCasejava.lang.Exception
|
Built on Thu 2009-11-26 18:42:53-0800, from revision 884739 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||