예제 #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);
 }
예제 #2
0
 @org.junit.Test(expected = WebAppException.class)
 public void testDeleteMissed() throws Exception {
   storage.delete("dummy");
 }
예제 #3
0
 @org.junit.Test
 public void testDelete() throws Exception {
   storage.delete(R1.getUuid());
   Assert.assertEquals(2, storage.size());
 }