Ejemplo n.º 1
0
 @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);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }