public void testGetByNciIdentifier() { Organization o = organizationDao.getById(-1003); List<SiteInvestigator> all = getDao().getByNciIdentifier(new String[] {"NCI_ID-01"}, o.getId()); assertNotNull(all); assertEquals(1, all.size()); assertEquals("312-555-0102", all.get(0).getInvestigator().getPhoneNumber()); }
public void testGetOrganizationInvestigator() { Organization o = organizationDao.getById(-1003); Investigator i = investigatorDao.getById(-3004); SiteInvestigator si = getDao().getOrganizationInvestigator(o, i); assertNotNull(si); assertEquals(-4004, si.getId().intValue()); }
public void testGetOrganizationInvestigators() { Organization o = organizationDao.getById(-1003); List<SiteInvestigator> all = getDao().getOrganizationInvestigators(o); assertNotNull(all); assertEquals(2, all.size()); }