Ejemplo n.º 1
0
 @Test
 public void testCreateNewAdminUserStringStringString() {
   service.createNewAdminUser("robbo", "*****@*****.**", "password");
   Account a = service.loadAccountByUserName("robbo");
   assertNotNull(a);
   assertEquals("*****@*****.**", a.getEmail());
 }
Ejemplo n.º 2
0
 @Test
 public void testCreateNewAdminUserStringStringStringStringString() {
   service.createNewUser("robbo", "*****@*****.**", "password", "rob", "hinds", Role.ROLE_ADMIN);
   Account a = service.loadAccountByUserName("robbo");
   assertNotNull(a);
   assertEquals("*****@*****.**", a.getEmail());
   assertEquals("rob", a.getFirstName());
   assertEquals("hinds", a.getLastName());
 }