public abstract class HarnessJavaTest extends CanonTestCase
Modifier and Type | Field and Description |
---|---|
private static java.lang.Object[] |
MAIN_ARG |
private static java.lang.Class[] |
MAIN_ARG_TYPE |
DEFAULT_ENCODING, outputEncoding
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Modifier | Constructor and Description |
---|---|
protected |
HarnessJavaTest(java.lang.String name)
Create a test, the name corresonds to the class name
of the test (without any package information).
|
Modifier and Type | Method and Description |
---|---|
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.
|
compareCanon, getOutputStream
assertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, emptyStatementCache, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbedded
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isJava8, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemProperty, sleep, sleepAtLeastOneTick, traceit
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, setName, setUp, toString
private static final java.lang.Object[] MAIN_ARG
private static final java.lang.Class[] MAIN_ARG_TYPE
protected HarnessJavaTest(java.lang.String name)
name
- protected abstract java.lang.String getArea()
public void runTest() throws java.lang.Throwable
runTest
in class junit.framework.TestCase
java.lang.Throwable
protected static junit.framework.Test decorate(HarnessJavaTest test)
private void setSystemOut(java.io.PrintStream out)
out
- Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.