예제 #1
0
 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());
 }
예제 #2
0
 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());
 }
예제 #3
0
 public void testGetOrganizationInvestigators() {
   Organization o = organizationDao.getById(-1003);
   List<SiteInvestigator> all = getDao().getOrganizationInvestigators(o);
   assertNotNull(all);
   assertEquals(2, all.size());
 }