@Test public void testChangeSetForm() { try { RVVException.UseTreeSetsForTesting = true; // Create a bit set which matches the seen versions of vh1 BitSet bs1 = new BitSet(); bs1.set(1024); RegionVersionHolder vh1 = buildHolder(bs1); bs1.set(510); bs1.set(511); bs1.set(512); recordVersions(vh1, bs1); validateExceptions(vh1); compareWithBitSet(bs1, vh1); } finally { RVVException.UseTreeSetsForTesting = false; } }
bs1.set(50, 101); RegionVersionHolder vh1 = buildHolder(bs1); validateExceptions(vh1); compareWithBitSet(bs1, vh1); bs2.set(49, 101); RegionVersionHolder vh2 = buildHolder(bs2); validateExceptions(vh2); vh2.initializeFrom(vh1);
RegionVersionHolder vh1 = buildHolder(bs1); validateExceptions(vh1); bs2.set(1, 4); RegionVersionHolder vh2 = buildHolder(bs2);