Esempio n. 1
0
 public void testFindMatchingChildPeriodByNameWhenNameIsNotPresent() throws Exception {
   Period p1 = createPeriod("P1", 4, 7, 1);
   Period p2 = createPeriod("P2", 4, 7, 1);
   studySegment.addPeriod(p1);
   studySegment.addPeriod(p2);
   assertNull(studySegment.findNaturallyMatchingChild("Q"));
 }
Esempio n. 2
0
 public void testFindMatchingChildPeriodByNameWhenNameUnique() throws Exception {
   Period p1 = setGridId("GRID-1", createPeriod("P1", 4, 7, 1));
   Period p2 = setGridId("GRID-2", createPeriod("P2", 4, 7, 1));
   studySegment.addPeriod(p1);
   studySegment.addPeriod(p2);
   assertSame("Not found", p2, studySegment.findNaturallyMatchingChild("P2"));
 }