public void testViewNonExistantRecords() { action = new ViewMyRecordsAction(evil, 0l); try { action.getFamilyHistory(); } catch (iTrustException e) { assertEquals( "A database exception has occurred. Please see the log in the console for stacktrace", e.getMessage()); } try { action.getFamily(); } catch (iTrustException e) { assertEquals( "A database exception has occurred. Please see the log in the console for stacktrace", e.getMessage()); } }
public void testGetFamilyHistory() throws iTrustException { List<FamilyMemberBean> fmbList = action.getFamilyHistory(); assertEquals(5, fmbList.size()); }