public class ShutDownDBWhenNSShutsDownTest extends BaseJDBCTestCase
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
ShutDownDBWhenNSShutsDownTest(java.lang.String name)
Creates a new instance of ShutDownDBWhenNSShutsDownTest
|
| Modifier and Type | Method and Description |
|---|---|
private void |
createDatabase() |
private boolean |
fileExists(java.lang.String fileName) |
private void |
scenarioEngineShutdownDoesNotTakeDownNS(boolean loadEmbeddedDriver)
Test that a shutdown of the engine does not take down the network
server.
|
private void |
shutdownServerCheckDBShutDown(boolean dbShutDown)
Checks whether the server shuts down causes the databases it has booted
to be shut down.
|
static junit.framework.Test |
suite()
Only run the fixtures in network server mode as that's what they are testing.
|
void |
testDatabasesShutDownWhenNSShutdownAPI()
Test that the NetworkServer does not shut down the
databases it has booted when started from the API.
|
void |
testEngineShutdownDoesNotTakeDownNSAutoReload()
Test the scenario from scenarioEngineShutdownDoesNotTakeDownNS
relying on the network server to reloading the embedded driver
after the network server has shutdown.
|
void |
testEngineShutdownDoesNotTakeDownNSManualReload()
Test the scenario from scenarioEngineShutdownDoesNotTakeDownNS
reloading the embedded driver after the network server has shutdown.
|
void |
XXtestDatabasesShutDownWhenNSShutdown()
Test that the NetworkServer shuts down the databases it has booted when
started from the command line, and that it does not shut down the
databases it has booted when started from the API.
|
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, usingEmbeddedalarm, 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, traceitassertEquals, 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, toStringpublic ShutDownDBWhenNSShutsDownTest(java.lang.String name)
public static junit.framework.Test suite()
public void testEngineShutdownDoesNotTakeDownNSManualReload()
throws java.lang.Exception
java.lang.Exceptionpublic void testEngineShutdownDoesNotTakeDownNSAutoReload()
throws java.lang.Exception
java.lang.Exceptionprivate void scenarioEngineShutdownDoesNotTakeDownNS(boolean loadEmbeddedDriver)
throws java.lang.Exception
java.lang.Exceptionpublic void testDatabasesShutDownWhenNSShutdownAPI()
throws java.lang.Exception
java.lang.Exceptionpublic void XXtestDatabasesShutDownWhenNSShutdown()
throws java.lang.Exception
java.lang.Exceptionprivate void shutdownServerCheckDBShutDown(boolean dbShutDown)
throws java.lang.Exception
dbShutDown - Indicates whether the database should have been shut
down.java.lang.Exceptionprivate boolean fileExists(java.lang.String fileName)
throws java.lang.Exception
java.lang.Exceptionprivate void createDatabase()
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.