Package org.jboss.deployers.client.spi

Examples of org.jboss.deployers.client.spi.DeployerClient.undeploy()


         assertEquals(singleton, all.getDeployedUnits());
         assertEquals(singleton, empty.getDeployedUnits());
      }
      finally
      {
         main.undeploy(deployment);
      }

      assertEmpty(missing.getUndeployedUnits());
      assertEquals(singleton, all.getUndeployedUnits());
      assertEquals(singleton, empty.getUndeployedUnits());       
View Full Code Here


      main.deploy(context);
      List<String> expected = new ArrayList<String>();
      expected.add(context.getName());
      assertEquals(expected, deployer.getDeployedUnits());

      main.undeploy(context);
      assertEquals(expected, deployer.getUndeployedUnits());

      deployer.clear();
      main.deploy(context);
      expected.clear();
View Full Code Here

      main.process();
      List<String> expected = new ArrayList<String>();
      expected.add(context.getName());
      assertEquals(expected, deployer.getDeployedUnits());

      main.undeploy(context);
      assertEquals(expected, deployer.getUndeployedUnits());
   }

   public void testDeployShutdown() throws Throwable
   {
View Full Code Here

      main.addDeployment(normal);
      main.process();
      expected.add(normal.getName());
      assertEquals(expected, deployer.getDeployedUnits());

      main.undeploy(single);
      expected.clear();
      expected.add(single.getName());
      assertEquals(expected, deployer.getUndeployedUnits());

      main.removeDeployment(normal.getName());
View Full Code Here

      main.process();
      expected.clear();
      expected.add(normal.getName());
      assertEquals(expected, deployer.getUndeployedUnits());

      main.undeploy(single);
      expected.add(single.getName());
      assertEquals(expected, deployer.getUndeployedUnits());
   }

/*
 
View Full Code Here

      assertEquals(expected, deployer.getDeployedUnits());
     
      DeploymentUnit unit = assertDeploymentUnit(main, single.getName());
      assertEquals(main, unit.getMainDeployer());
     
      main.undeploy(single);
      assertNull(unit.getMainDeployer());
   }

   public void testChangeStage() throws Throwable
   {
View Full Code Here

      main.change(single.getName(), DeploymentStages.CLASSLOADER);
      assertEquals(expected, deployer.getUndeployedUnits());
      assertEquals(DeploymentStages.CLASSLOADER, main.getDeploymentStage(single.getName()));
     
      main.undeploy(single);
      assertEquals(DeploymentStages.NOT_INSTALLED, main.getDeploymentStage(single.getName()));
      assertEquals(expected, deployer.getDeployedUnits());
      assertEquals(expected, deployer.getUndeployedUnits());
      try
      {
View Full Code Here

      addAttachment(dB, null);
      main.deploy(dB);

      main.checkComplete(dA);

      main.undeploy(dB);

      try
      {
         main.checkComplete(dA);
         fail("Should not be here.");
View Full Code Here

      addComponentAttachment(dB, null);
      main.deploy(dB);

      main.checkComplete(dA);

      main.undeploy(dB);

      try
      {
         main.checkComplete(dA);
         fail("Should not be here.");
View Full Code Here

      addRequirePackage(clmd, B.class, new VersionRange(v1, true, v2, true));
      assertDeploy(mainDeployer, cd);

      mainDeployer.checkComplete();

      mainDeployer.undeploy(bd);
      try
      {
         mainDeployer.checkComplete();
         fail("Should not be here!");
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.