protected void setUp() throws Exception {
   super.setUp();
   servletContext = new MockServletContext();
   filterConfig = new MockFilterConfig(servletContext);
   request = new MockHttpServletRequest(servletContext);
   response = new MockHttpServletResponse();
   filterChain = registerMockFor(FilterChain.class);
   filterChain.doFilter(request, response);
   replayMocks();
 }
Example #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);
  }