Exemplo n.º 1
0
 @org.junit.Test
 public void testLoad() throws Exception {
   Assert.assertEquals(R1, storage.load(R1.getUuid()));
   Assert.assertEquals(R2, storage.load(R2.getUuid()));
   Assert.assertEquals(R3, storage.load(R3.getUuid()));
 }
Exemplo n.º 2
0
 @org.junit.Test
 public void testUpdate() throws Exception {
   R2.setFullName("Updated N2");
   storage.update(R2);
   Assert.assertEquals(R2, storage.load(R2.getUuid()));
 }
Exemplo n.º 3
0
 @org.junit.Test
 public void testDelete() throws Exception {
   storage.delete(R1.getUuid());
   Assert.assertEquals(2, storage.size());
 }