示例#1
0
 @Test
 public void testDeleteNotFound() throws Exception {
   thrown.expect(WebAppException.class);
   thrown.expectMessage(ExceptionType.NOT_FOUND.getMessage());
   thrown.expect(new ExceptionTypeMatcher(ExceptionType.NOT_FOUND));
   storage.load("dummy");
 }
示例#2
0
 @org.junit.Test(expected = WebAppException.class)
 public void testDeleteNotFound() throws Exception {
   storage.load("dummy");
 }
示例#3
0
 @org.junit.Test
 public void testUpdate() throws Exception {
   R2.setFullName("Updated N2");
   storage.update(R2);
   Assert.assertEquals(R2, storage.load(R2.getUuid()));
 }
示例#4
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()));
 }
示例#5
0
 private void assertGet(Resume r) {
   assertEquals(r, storage.load(r.getUuid()));
 }