public class ReplicationRun_Local extends ReplicationRun
ReplicationRun.Load, ReplicationRun.State
ALL_INTERFACES, bootLoad, classPath, commitFreq, dataEncryption, DB_PROTOCOL, derbyMasterVersion, derbyProperties, derbySlaveVersion, derbyVersion, DRIVER_CLASS_NAME, freezeDB, FS, junit_jar, junitTest, jvmVersion, LF, localEnv, masterDatabasePath, masterDbSubPath, masterJvmVersion, masterPostRepl, masterPostSlave, masterPreRepl, masterServerHost, masterServerPort, MINUTES, networkServerControl, PS, remoteShell, replicatedDb, REPLICATION_DB_NOT_BOOTED, REPLICATION_MASTER_TIMED_OUT, REPLICATION_SLAVE_SHUTDOWN_OK, REPLICATION_SLAVE_STARTED_OK, replicationTest, REPLICATIONTEST_PROPFILE, replicationVerify, runUnReplicated, showSysinfo, simpleLoad, simpleLoadTuples, SLAVE_OPERATION_DENIED_WHILE_CONNECTED, slaveDatabasePath, slaveDbSubPath, slaveJvmVersion, slavePostSlave, slavePreSlave, slaveReplPort, slaveServerHost, slaveServerPort, sleepTime, specialTestingJar, sqlLoadInit, state, test_jars, testClientHost, testUser, THREADS, tuplesToInsertPerf, unFreezeDB, userDir, userHome, util
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
ReplicationRun_Local(java.lang.String testcaseName)
Creates a new instance of ReplicationRun_Local
|
ReplicationRun_Local(java.lang.String testcaseName,
java.lang.String user,
java.lang.String password)
Creates a new instance of ReplicationRun_Local running with authentication.
|
Modifier and Type | Method and Description |
---|---|
static junit.framework.Test |
localAuthenticationSuite() |
static junit.framework.Test |
suite() |
void |
testReplication_Local_LogFilesSynched()
DERBY-3382: Test that start replication fails if master db is updated
after copying the db to the slave location
|
void |
testReplication_Local_TestStraightReplication()
Test the "normal" replication scenario:
Load on the master db while replicating to slave db,
then verify that slave db is correct after failover.
|
_testInsertUpdateDeleteOnMaster, _verify, _verifyDatabase, assertException, assertSqlStateSlaveConn, bootMasterDatabase, cleanAllTestHosts, configureDataSource, connectPing, credentials, destroySlaveDB, executeOnMaster, executeOnSlave, failOver, getConnection, getMasterConnection, getSlaveConnection, initEnvironment, initMaster, initSlave, killMaster, killSlave, makeReadyForReplication, masterDbPath, masterLoadURL, masterURL, restartServer, runBare, runTest, runTestOnSlave, serverURL, setUp, showCurrentState, shutdownDb, slaveDbPath, slaveURL, startMaster, startOptionalLoad, startServer, startServerMonitor, startSlave, stopServer, stopSlave, stopSlave, tearDown, useEncryption, verifyMaster, verifySlave, waitForConnect, waitForSQLState, xFindServerPID, xStopServer
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, toString
public ReplicationRun_Local(java.lang.String testcaseName)
testcaseName
- Identifying the test.public ReplicationRun_Local(java.lang.String testcaseName, java.lang.String user, java.lang.String password)
public static junit.framework.Test suite()
public static junit.framework.Test localAuthenticationSuite()
public void testReplication_Local_TestStraightReplication() throws java.lang.Exception
java.lang.Exception
public void testReplication_Local_LogFilesSynched() throws java.lang.Exception
java.lang.Exception
- on test errors.Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.