@Test public void testReset() throws InterruptedException { saveData(10, "name", "description"); store.reset(); Data readData = store.read(10); Assert.assertNull(readData); }
@Test public void testSave() throws InterruptedException { Data data = new Data(10, "name", "description"); data.setEnable(true); saveData(10, "name", "description", true); Data readData = store.read(10); Assert.assertEquals(data, readData); }