Package db.buffers
Class VersionedLocalBufferFileTest
- java.lang.Object
-
- generic.test.AbstractGTest
-
- generic.test.AbstractGenericTest
-
- db.buffers.VersionedLocalBufferFileTest
-
public class VersionedLocalBufferFileTest extends AbstractGenericTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class generic.test.AbstractGenericTest
AbstractGenericTest.ExceptionHandlingRunner
-
-
Field Summary
-
Fields inherited from class generic.test.AbstractGenericTest
concurrentTestExceptionRule, DEFAULT_TEST_TOOL_NAME, ruleChain, TESTDATA_DIRECTORY_NAME, watchman
-
Fields inherited from class generic.test.AbstractGTest
BATCH_MODE, DEFAULT_WAIT_DELAY, DEFAULT_WAIT_TIMEOUT, DEFAULT_WINDOW_TIMEOUT, PARALLEL_MODE, PRIVATE_LONG_WAIT_TIMEOUT, testName
-
-
Constructor Summary
Constructors Constructor Description VersionedLocalBufferFileTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtearDown()voidtestOldVersionOpen()Test opening an older version of a versioned file.voidtestPrivateModify()Test checked-out file modify scenario: version-1 file is created and derived private file is modified.voidtestVersionedFileCreateAndCopy()Test add-to-version control scenario: versioned file is created using private file.voidtestVersionLocalExpansionUpdate()Test local update following a merge checkin scenario.voidtestVersionLocalExpansionUpdate2()Test local update following a merge checkin scenario.voidtestVersionLocalTruncationUpdate()Test local update following a merge checkin scenario.voidtestVersionLocalUpdate()Test local update following a merge checkin scenario.voidtestVersionQuickUpdate()Test quick checkin scenario: versioned file is updated using private changes.-
Methods inherited from class generic.test.AbstractGenericTest
clickMouse, clickMouse, clickTableCell, createApplicationConfiguration, createApplicationLayout, createStackTraceForAllThreads, createTempDirectory, createTempFile, createTempFile, createTempFileForTest, createTempFileForTest, createTempFilePath, createTempFilePath, deleteMatchingTempFiles, deleteSimilarTempFiles, doubleClick, dragMouse, editCell, executeOnSwingWithoutBlocking, findAbstractButtonByName, findAbstractButtonByText, findButtonByIcon, findButtonByText, findComponent, findComponent, findComponentByName, findComponentByName, findComponentsByName, findOwnedWindows, findPathToText, findTestDataFile, findTreePathToText, fixupGUI, getAllWindows, getDebugFileDirectory, getInstanceField, getInstanceFieldByClassType, getLocalResourceFile, getTestDataDir, getTestDataDirectory, getTestDataFile, getText, hasTestFailed, initializeLayout, initializeSystemProperties, invokeConstructor, invokeInstanceMethod, invokeInstanceMethod, leftClick, loadTextResource, loadTextResource, middleClick, moveMouse, postEvent, pressButton, pressButton, pressButtonByName, pressButtonByName, pressButtonByText, pressButtonByText, printMemory, privateWaitForPostedSwingRunnables_SwingSafe, rightClick, runSwing, runSwing, runSwing, setComboBoxSelection, setInstanceField, setText, testFailed, toString, waitForPostedSwingRunnables, waitForSwing, waitForTasks, windowForComponent, yieldToSwing
-
Methods inherited from class generic.test.AbstractGTest
assertArraysEqualOrdered, assertArraysEqualUnordered, assertArraysEqualUnordered, assertContainsExactly, assertContainsExactly, assertListEqualOrdered, assertListEqualOrdered, assertListEqualsArrayOrdered, assertListEqualsArrayUnordered, assertListEqualUnordered, failWithException, getName, getRandomInt, getRandomInt, getRandomString, getRandomString, getTestDirectoryPath, sleep, waitFor, waitFor, waitFor, waitForCondition, waitForCondition, waitForConditionWithoutFailing, waitForValue, waitForValueWithoutFailing
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception- Throws:
java.lang.Exception
-
testVersionedFileCreateAndCopy
public void testVersionedFileCreateAndCopy() throws java.lang.ExceptionTest add-to-version control scenario: versioned file is created using private file. Test results in the creation of private file and version-1 containing: Parms: TestParm1=0x321, TestParm2=0x543 Buffers: 0[10]=0xf0.., 1[11]=0xf1.., 2[-1]=empty- Throws:
java.lang.Exception
-
testPrivateModify
public void testPrivateModify() throws java.lang.ExceptionTest checked-out file modify scenario: version-1 file is created and derived private file is modified. Test results in the creation of private file and version-1. Version-1 file contains: Parms: TestParm1=0x321, TestParm2=0x543 Buffers: 0[10]=0xf0.., 1[11]=0xf1.., 2[-1]=empty Private file is based upon version-1 and modified to contain: Parms: TestParm1=0x322, TestParm2=0x544 Buffers: 0[10]=0xf0.., 1[11]=0xf1.., 2[-1]=empty, 3[-1]=empty, 4[14]=0xf4..- Throws:
java.lang.Exception
-
testVersionQuickUpdate
public void testVersionQuickUpdate() throws java.lang.ExceptionTest quick checkin scenario: versioned file is updated using private changes. Test results in the creation of a private file and version-2 containing: Parms: TestParm1=0x322, TestParm2=0x544 Buffers: 0[10]=0xf0.., 1[11]=0xf1.., 2[-1]=empty, 3[-1]=empty, 4[14]=0xf4.. Version-1 file contains: Parms: TestParm1=0x321, TestParm2=0x543 Buffers: 0[10]=0xf0.., 1[11]=0xf1.., 2[-1]=empty- Throws:
java.lang.Exception
-
testOldVersionOpen
public void testOldVersionOpen() throws java.lang.ExceptionTest opening an older version of a versioned file. Version-1 is opened and checked.- Throws:
java.lang.Exception
-
testVersionLocalUpdate
public void testVersionLocalUpdate() throws java.lang.ExceptionTest local update following a merge checkin scenario. A new private file is created based upon version-1. This private file is modified resulting in a file which is same size as version-2. This new private file prior to update contains: Parms: TestParm1=0x320, TestParm2=0x540 Buffers: 0[10]=0xf0.., 1[21]=0xff.., 2[-1]=empty, 3[13]=0xf3.., 4[14]=empty Following update the private file should match version-2 which contains: Parms: TestParm1=0x322, TestParm2=0x544 Buffers: 0[10]=0xf0.., 1[11]=0xf1.., 2[-1]=empty, 3[-1]=empty, 4[14]=0xf4..- Throws:
java.lang.Exception
-
testVersionLocalTruncationUpdate
public void testVersionLocalTruncationUpdate() throws java.lang.ExceptionTest local update following a merge checkin scenario. A new private file is created based upon version-1. This private file is modified resulting in a file which is longer than version-2. This new private file prior to update contains: Parms: TestParm1=0x320, TestParm2=0x540, TestParm2=0x670 Buffers: 0[-1]=empty, 1[11]=0xf1.., 2[12]=0xf2.., 3[13]=0xf3.., 4[14]=empty, 5[15]=0xf5.., 6[-1]=empty Following update the private file should match version-2 which contains: Parms: TestParm1=0x322, TestParm2=0x544 Buffers: 0[10]=0xf0.., 1[11]=0xf1.., 2[-1]=empty, 3[-1]=empty, 4[14]=0xf4..- Throws:
java.lang.Exception
-
testVersionLocalExpansionUpdate
public void testVersionLocalExpansionUpdate() throws java.lang.ExceptionTest local update following a merge checkin scenario. A new private file is created based upon version-1. This private file is modified resulting in a file which is shorter than version-2. This new private file prior to update contains: Parms: TestParm1=0x320 Buffers: 0[-1]=empty, 1[21]=0xff.., 2[12]=0xf2.. Following update the private file should match version-2 which contains: Parms: TestParm1=0x322, TestParm2=0x544 Buffers: 0[10]=0xf0.., 1[11]=0xf1.., 2[-1]=empty, 3[-1]=empty, 4[14]=0xf4..- Throws:
java.lang.Exception
-
testVersionLocalExpansionUpdate2
public void testVersionLocalExpansionUpdate2() throws java.lang.ExceptionTest local update following a merge checkin scenario. A new private file is created based upon version-1. This private file is modified resulting in a file which is shorter than a new version-3. This new private file prior to update contains: Parms: TestParm1=0x320 Buffers: 0[-1]=empty, 1[21]=0xff.., 2[12]=0xf2.. Following update the private file should match version-3 which contains: Parms: TestParm1=0x329, TestParm2=0x549, TestParm2=0x679 Buffers: 0[-1]=empty, 1[11]=0xf1.., 2[12]=0xf2.., 3[13]=0xf3.., 4[14]=empty, 5[15]=0xf5.., 6[-1]=empty, 7[17]=0xf7.., 8[18]=0xf8.., 9[19]=0xf9..- Throws:
java.lang.Exception
-
-