/** Test groups summary loading */ @Test public void testLoadAllGroupsSummary() throws Exception { System.out.println(">>> Loading all groups summary"); UserTransaction tx = getUserTransaction(); try { AdminEJBLocal instance = (AdminEJBLocal) getEJBInstance(AdminEJB.class.getSimpleName()); tx.begin(); List<GroupSummary> result = instance.getGroupsSummary(); tx.commit(); assertNotNull("List of groups summary is null.", result); assertFalse("List of groups summary is empty.", result.size() <= 0); System.out.println(">>> Found " + result.size() + " groups summaries."); } catch (Exception e) { tx.rollback(); fail(e.getMessage()); } }