コード例 #1
0
 private ActionHelper createActionHelper(String forwardName) throws Exception {
   ActionHelper result = new ActionHelper();
   result.setUpAction(action, forwardName);
   result.getForm().setFormName("probeEditForm");
   result.getRequest().setupAddParameter(ProbeDetailsAction.PROBEID, probe.getId().toString());
   String id = probeSuite.getId().toString();
   result.getRequest().setupAddParameter(RequestContext.SUITE_ID, id);
   result.getRequest().setupAddParameter(RequestContext.SUITE_ID, id);
   return result;
 }
コード例 #2
0
 protected void setUp() throws Exception {
   super.setUp();
   user = UserTestUtils.createUserInOrgOne();
   UserTestUtils.addMonitoring(user.getOrg());
   probeSuite = ProbeSuiteTest.createTestProbeSuite(user);
   probe =
       (TemplateProbe)
           MonitoringFactoryTest.createTestProbe(user, MonitoringConstants.getProbeTypeSuite());
   probeSuite.addProbe(probe, user);
   MonitoringFactory.saveProbeSuite(probeSuite, user);
   probeSuite = (ProbeSuite) reload(probeSuite);
   action = new ProbeSuiteProbeEditAction();
 }