88899091929394959697
} if (options != null) { options.dispose(); } if (readOptions != null) { readOptions.dispose(); } } } }
3334353637383940414243
boolean boolValue = rand.nextBoolean(); opt.setVerifyChecksums(boolValue); assertThat(opt.verifyChecksums()).isEqualTo(boolValue); } finally { if (opt != null) { opt.dispose(); } } } @Test
4950515253545556575859
boolean boolValue = rand.nextBoolean(); opt.setFillCache(boolValue); assertThat(opt.fillCache()).isEqualTo(boolValue); } finally { if (opt != null) { opt.dispose(); } } } @Test
6566676869707172737475
boolean boolValue = rand.nextBoolean(); opt.setTailing(boolValue); assertThat(opt.tailing()).isEqualTo(boolValue); } finally { if (opt != null) { opt.dispose(); } } } @Test
7980818283848586878889
opt = new ReadOptions(); opt.setSnapshot(null); assertThat(opt.snapshot()).isNull(); } finally { if (opt != null) { opt.dispose(); } } } @Test
143144145146147148149150151152
} private ReadOptions setupUninitializedReadOptions( ExpectedException exception) { ReadOptions readOptions = new ReadOptions(); readOptions.dispose(); exception.expect(AssertionError.class); return readOptions; } }
323334353637383940
boolean boolValue = rand.nextBoolean(); opt.setTailing(boolValue); assert(opt.tailing() == boolValue); } opt.dispose(); System.out.println("Passed ReadOptionsTest"); } }