org.apache.derbyTesting.functionTests.tests.store
Class BootAllTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.derbyTesting.junit.BaseTestCase
              extended by org.apache.derbyTesting.junit.BaseJDBCTestCase
                  extended by org.apache.derbyTesting.functionTests.tests.store.BootAllTest
All Implemented Interfaces:
junit.framework.Test

public class BootAllTest
extends BaseJDBCTestCase

Tests for the system property "derby.system.bootAll" DERBY-1296 - Setting property derby.system.bootAll causes an Exception create & shutdown three databases as well as the default shutdown the engine set "derby.system.bootAll" check at least four databases are listed in the driver info Test drops the three databases after their use as it uses the singleUseDatabaseDecorator. Test is written to be tolerant of other databases in the system.


Field Summary
 
Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
 
Constructor Summary
BootAllTest(java.lang.String name)
          Creates a new instance of BootAllTest
 
Method Summary
 void createShutdownDatabase()
           
 void shutdownDerby()
           
static junit.framework.Test suite()
           
 void testSettingBootAllPropertyWithHomePropertySet()
          DERBY-1296 - Setting property derby.system.bootAll causes an Exception Check that setting the system property "derby.system.bootAll" will not cause an exception when used in combination with the system property "derby.system.home".
 
Methods inherited from class org.apache.derbyTesting.junit.BaseJDBCTestCase
assertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertTableRowCount, assertUpdateCount, assertUpdateCount, checkAllConsistency, checkEstimatedRowCount, commit, createStatement, createStatement, createStatement, dropTable, dropTable, getConnection, getDatabaseProperty, getLastSQLException, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbedded
 
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
 

Constructor Detail

BootAllTest

public BootAllTest(java.lang.String name)
Creates a new instance of BootAllTest

Method Detail

suite

public static junit.framework.Test suite()

createShutdownDatabase

public void createShutdownDatabase()
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

shutdownDerby

public void shutdownDerby()

testSettingBootAllPropertyWithHomePropertySet

public void testSettingBootAllPropertyWithHomePropertySet()
                                                   throws java.lang.Exception
DERBY-1296 - Setting property derby.system.bootAll causes an Exception Check that setting the system property "derby.system.bootAll" will not cause an exception when used in combination with the system property "derby.system.home". The property "derby.system.home" is set by default for all tests and does not need to be explicitly set in this test.

Throws:
java.lang.Exception

Built on Sat 2009-11-28 18:44:18-0800, from revision 885187

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.