Package db.buffers

Class VersionedLocalBufferFileTest

    • Constructor Detail

      • VersionedLocalBufferFileTest

        public VersionedLocalBufferFileTest()
    • 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.Exception
        Test 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.Exception
        Test 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.Exception
        Test 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.Exception
        Test 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.Exception
        Test 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.Exception
        Test 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.Exception
        Test 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.Exception
        Test 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