Пример #1
0
 @Test
 public void testCreateNewAdminUserStringStringString() {
   service.createNewAdminUser("robbo", "*****@*****.**", "password");
   Account a = service.loadAccountByUserName("robbo");
   assertNotNull(a);
   assertEquals("*****@*****.**", a.getEmail());
 }
Пример #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());
 }