@Test public void fileaccess_50() { BlockAccess file = make() ; Block b1 = data(file, 10) ; Block b2 = data(file, 20) ; file.write(b1) ; file.write(b2) ; Block b1a = file.read(b1.getId()) ; Block b2a = file.read(b2.getId()) ; assertNotSame(b1a, b1) ; assertNotSame(b2a, b2) ; sameValue(b1, b1a) ; sameValue(b2, b2a) ; } }
@Test public void fileaccess_50() { BlockAccess file = make() ; Block b1 = data(file, 10) ; Block b2 = data(file, 20) ; file.write(b1) ; file.write(b2) ; Block b1a = file.read(b1.getId()) ; Block b2a = file.read(b2.getId()) ; assertNotSame(b1a, b1) ; assertNotSame(b2a, b2) ; sameValue(b1, b1a) ; sameValue(b2, b2a) ; } }