@Test public void testGet_2() throws Exception { User userInfo = new User(); Contact contact1 = new Contact(); contact1.setEmail("*****@*****.**"); userInfo.setContact(contact1); Identifier userId = Users.getInstance().create(userInfo); assertTrue(Users.getInstance().get(userId) != null); }
/** * Run the void delete(Identifier) method test. * * @throws Exception * @generatedBy CodePro at 11/22/13 12:41 PM */ @Test(expected = hostel.exception.IdentifierNotFoundException.class) public void testDelete_2() throws Exception { User userInfo = new User(); Contact contact1 = new Contact(); contact1.setEmail("*****@*****.**"); userInfo.setContact(contact1); Identifier userId = Users.getInstance().create(userInfo); Users.getInstance().delete(userId); Users.getInstance().get(userId); }