Package org.jboss.deployers.client.spi

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


      main.process();
      Set<String> expected = new HashSet<String>();
      expected.add(context.getName());
      assertEquals(expected, deployer.getDeployedUnits());
     
      main.removeDeployment(context.getName());
      main.process();
      assertEquals(expected, deployer.getUndeployedUnits());
     
      deployer.clear();
      main.addDeployment(context);
View Full Code Here


      DeploymentContext context = assertDeploymentContext(main, "single");
      assertEquals(DeploymentState.DEPLOYED, context.getState());
      assertEquals(deployer.cl, context.getClassLoader());
     
      main.removeDeployment(deployment);
      main.process();
      assertEquals(DeploymentState.UNDEPLOYED, context.getState());
      assertNull(context.getClassLoader());
   }
View Full Code Here

      assertEquals(DeploymentState.DEPLOYED, top.getState());
      assertEquals(deployer.cl, top.getClassLoader());
      assertEquals(DeploymentState.DEPLOYED, sub.getState());
      assertEquals(deployer.cl, sub.getClassLoader());
     
      main.removeDeployment(deployment);
      main.process();
      assertEquals(DeploymentState.UNDEPLOYED, top.getState());
      assertNull(top.getClassLoader());
      assertEquals(DeploymentState.UNDEPLOYED, sub.getState());
      assertNull(sub.getClassLoader());
View Full Code Here

      assertEquals(expectedParentChild1, deployer2.getUndeployedUnits());
      assertEquals(DeploymentState.ERROR, main.getDeploymentState(deployment.getName()));
      assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child1Name));
      assertEquals(DeploymentState.ERROR, main.getDeploymentState(child2Name));
     
      main.removeDeployment(deployment);
      main.process();
      main.checkComplete();
   }

   public void testDeployParentMultipleChildrenAndComponentsNoErrors() throws Exception
View Full Code Here

      assertEquals(expectedNone, deployer4.undeployed);
      assertEquals(DeploymentState.DEPLOYED, main.getDeploymentState(deployment.getName()));
      assertEquals(DeploymentState.DEPLOYED, main.getDeploymentState(child1Name));
      assertEquals(DeploymentState.DEPLOYED, main.getDeploymentState(child2Name));
     
      main.removeDeployment(deployment);
      main.process();
      main.checkComplete();
   }

   public void testDeployParentMultipleChildrenAndComponentsParentComponent1Fails() throws Exception
View Full Code Here

      assertEquals(expectedNone, deployer4.undeployed);
      assertEquals(DeploymentState.ERROR, main.getDeploymentState(deployment.getName()));
      assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child1Name));
      assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child2Name));
     
      main.removeDeployment(deployment);
      main.process();
      main.checkComplete();
   }

   public void testDeployParentMultipleChildrenAndComponentsParentComponent2Fails() throws Exception
View Full Code Here

      assertEquals(expectedPmd1, deployer4.undeployed);
      assertEquals(DeploymentState.ERROR, main.getDeploymentState(deployment.getName()));
      assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child1Name));
      assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child2Name));
     
      main.removeDeployment(deployment);
      main.process();
      main.checkComplete();
   }

   public void testDeployParentMultipleChildrenAndComponentsChild1Component1Fails() throws Exception
View Full Code Here

      assertEquals(expectedPmd1Pmd2, deployer4.undeployed);
      assertEquals(DeploymentState.ERROR, main.getDeploymentState(deployment.getName()));
      assertEquals(DeploymentState.ERROR, main.getDeploymentState(child1Name));
      assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child2Name));
     
      main.removeDeployment(deployment);
      main.process();
      main.checkComplete();
   }

   public void testDeployParentMultipleChildrenAndComponentsChild1Component2Fails() throws Exception
View Full Code Here

      assertEquals(expectedPmd1Pmd2C1md1, deployer4.undeployed);
      assertEquals(DeploymentState.ERROR, main.getDeploymentState(deployment.getName()));
      assertEquals(DeploymentState.ERROR, main.getDeploymentState(child1Name));
      assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child2Name));
     
      main.removeDeployment(deployment);
      main.process();
      main.checkComplete();
   }

   public void testDeployParentMultipleChildrenAndComponentsChild2Component1Fails() throws Exception
View Full Code Here

      assertEquals(expectedPmd1Pmd2C1md1C1md2, deployer4.undeployed);
      assertEquals(DeploymentState.ERROR, main.getDeploymentState(deployment.getName()));
      assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child1Name));
      assertEquals(DeploymentState.ERROR, main.getDeploymentState(child2Name));
     
      main.removeDeployment(deployment);
      main.process();
      main.checkComplete();
   }

   public void testDeployParentMultipleChildrenAndComponentsChild2Component2Fails() throws Exception
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.