Пример #1
0
 @Test
 public void testLoadAccount() {
   List<Account> accs = service.findAllAccounts();
   assertTrue(accs.size() > 0);
   Account original = accs.get(0);
   Account a = service.loadAccount(original.getId()); // this is will load
   // the test account
   assertNotNull(a);
   assertEquals(original.getUserName(), a.getUserName());
 }
Пример #2
0
 @Test
 public void testLoadAccountByUserName() {
   Account a = service.loadAccountByUserName("test");
   assertNotNull(a);
   assertEquals("test", a.getUserName());
 }