public class SysinfoTest extends BaseJDBCTestCase
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<java.lang.String> |
OUTPUT |
private static java.lang.String |
POLICY_FILE_NAME |
private static boolean |
useProperties
Set to true before adding a test to the suite to add some extra properties.
|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
SysinfoTest(java.lang.String name)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
assertMatchingStringExists(java.lang.String actualOutput)
Check sysinfo output to make sure that it contains strings
specfied in OUTPUT.
|
private static junit.framework.Test |
decorateTest()
Decorate a test with SecurityManagerSetup, clientServersuite, and
SupportFilesSetup.
|
private static java.lang.String |
findClassDir() |
private void |
print(java.lang.String name,
java.lang.String s)
Prints strings to System.out to make it easier to update the tests
when the output changes if derby.tests.debug is true.
|
static junit.framework.Test |
suite()
Creates a suite with two testcases, with and without some extra
system properties.
|
void |
tearDown()
Tear down this fixture, sub-classes should call
super.tearDown().
|
void |
testSysinfo()
Test sysinfo
|
void |
testSysinfoLocale()
Test sysinfo w/ foreign (non-English) locale.
|
void |
testSysinfoMethod()
Test sysinfo by calling NetworkServerControl.getSysinfo()
|
assertCallError, assertCheckTable, assertCommitError, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertResults, assertResults, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, chattyPrepare, chattyPrepareCall, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, dumpRs, dumpRs, emptyStatementCache, executeQuery, expectCompilationError, expectCompilationError, expectExecutionError, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, goodStatement, goodUpdate, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, usingDB2Client, usingDerbyNetClient, usingEmbedded
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSameNullness, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, newAssertionFailedError, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemErr, setSystemOut, setSystemProperty, sleep, sleepAtLeastOneTick, traceit, vmAtLeast
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, runTest, setName, setUp, toString
private static final java.lang.String POLICY_FILE_NAME
private java.util.ArrayList<java.lang.String> OUTPUT
private static boolean useProperties
public SysinfoTest(java.lang.String name)
name
- public static junit.framework.Test suite()
private static junit.framework.Test decorateTest()
public void testSysinfo() throws java.lang.Exception
java.lang.Exception
public void testSysinfoMethod() throws java.lang.Exception
java.lang.Exception
public void testSysinfoLocale() throws java.lang.Exception
java.lang.Exception
private void print(java.lang.String name, java.lang.String s)
name
- just a label to identify the strings
- the string to be printedpublic void tearDown() throws java.lang.Exception
BaseJDBCTestCase
tearDown
in class BaseJDBCTestCase
java.lang.Exception
private static java.lang.String findClassDir()
private void assertMatchingStringExists(java.lang.String actualOutput)
actualOutput
- Actual sysinfo outputApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.