コード例 #1
0
  @Test(timeOut = AbstractTestSupport.DEFAULT_TEST_TIMEOUT * 2, enabled = true)
  public void testTeardownWithoutUnInstallApplication() throws Exception {

    ApplicationInstaller travelInstaller = new ApplicationInstaller(getRestUrl(), "travel");
    travelInstaller.recipePath(TRAVEL_PATH);

    ApplicationInstaller petclinicInstaller = new ApplicationInstaller(getRestUrl(), "petclinic");
    petclinicInstaller.recipePath(PETCLINIC_SIMPLE_PATH);

    travelInstaller.install();
    petclinicInstaller.install();

    super.teardown();

    AssertUtils.assertTrue(
        "Application 'travel' should not have been discovered since a teardown was executed",
        admin.getApplications().getApplication("travel") == null);

    AssertUtils.assertTrue(
        "Application 'petclinic' should not have been discovered since a teardown was executed",
        admin.getApplications().getApplication("petclinic") == null);

    super.scanForLeakedAgentNodes();
  }
コード例 #2
0
 @AfterClass(alwaysRun = true)
 public void closeAdmin() {
   super.closeAdmin();
 }
コード例 #3
0
 @BeforeClass(alwaysRun = true)
 protected void bootstrap() throws Exception {
   super.bootstrap();
 }