Ejemplo n.º 1
0
 @Test
 public void testReset() throws InterruptedException {
   saveData(10, "name", "description");
   store.reset();
   Data readData = store.read(10);
   Assert.assertNull(readData);
 }
Ejemplo n.º 2
0
  @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);
  }