Ejemplo n.º 1
0
 public void testStudySiteWorkflowsHasOnePerVisibleStudySite() throws Exception {
   study.addSite(createSite("mayo", "MN567")); // not visible
   List<StudySiteWorkflowStatus> actual = actual().getStudySiteWorkflowStatuses();
   assertEquals("Wrong number of statuses", 1, actual.size());
   assertEquals(
       "1st status is for wrong study site",
       "IL675",
       actual.get(0).getStudySite().getSite().getAssignedIdentifier());
 }
Ejemplo n.º 2
0
  @Override
  protected void setUp() throws Exception {
    super.setUp();

    study = assignIds(createBasicTemplate("CRM 114"));
    for (Epoch e : study.getPlannedCalendar().getEpochs()) {
      for (StudySegment segment : e.getStudySegments()) {
        Period p = createPeriod(1, 1, 1);
        p.addPlannedActivity(createPlannedActivity("T", 1));
        segment.addPeriod(p);
      }
    }
    nu = createSite("NU", "IL675");
    vanderbilt = createSite("VU", "TN054");
    StudySite ss = study.addSite(nu);
    ss.approveAmendment(study.getAmendment(), new Date());
    configuration = registerMockFor(Configuration.class);
  }
Ejemplo n.º 3
0
 public void testBothAvailableAndPendingWhenOneStudySiteIsReadyAndAnotherIsNot() throws Exception {
   setId(81, study.addSite(vanderbilt));
   assertAvailabilityPresent(TemplateAvailability.AVAILABLE);
   assertAvailabilityPresent(TemplateAvailability.PENDING);
 }