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();
 }
Пример #2
0
 public void setUp() throws Exception {
   super.setUp();
   action = new TestAction();
 }
 public void setUp() throws Exception {
   super.setUp();
   lip = new LoggingInvocationProcessor();
   writer = new StringWriter();
 }