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