Ejemplo n.º 1
0
 @Test
 public void testDelete() throws Exception {
   storage.delete(ResumeTestData.R1.getUuid());
   assertSize(2);
   assertGet(ResumeTestData.R2);
   assertGet(ResumeTestData.R3);
   thrown.expect(WebAppException.class);
   thrown.expectMessage(ExceptionType.NOT_FOUND.getMessage());
   assertGet(ResumeTestData.R1);
 }
Ejemplo n.º 2
0
 @org.junit.Test(expected = WebAppException.class)
 public void testDeleteMissed() throws Exception {
   storage.delete("dummy");
 }
Ejemplo n.º 3
0
 @org.junit.Test
 public void testDelete() throws Exception {
   storage.delete(R1.getUuid());
   Assert.assertEquals(2, storage.size());
 }