Ejemplo n.º 1
0
  protected boolean storySetUp() throws Throwable {
    // init the container
    try {
      container = ServiceContainerFactory.createContainer(ServiceContainerType.TOMCAT_6_CONTAINER);
    } catch (Exception ex) {
      ex.printStackTrace();
      fail("Failed to create container: " + ex.getMessage());
    }

    tci = new NotificationTestCaseInfo();

    RemoveSkeletonStep step1 = new RemoveSkeletonStep(tci);
    try {
      step1.runStep();
    } catch (Throwable e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    return true;
  }
Ejemplo n.º 2
0
 protected void storyTearDown() throws Throwable {
   RemoveSkeletonStep step1 = new RemoveSkeletonStep(tci);
   try {
     step1.runStep();
   } catch (Throwable e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   StopContainerStep step2 = new StopContainerStep(container);
   try {
     step2.runStep();
   } catch (Throwable e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   DestroyContainerStep step3 = new DestroyContainerStep(container);
   try {
     step3.runStep();
   } catch (Throwable e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }