Package org.jboss.deployers.client.spi

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


      Deployment deployment = createSimpleDeployment(parentName);
      makeFail(deployment, deployer2);
      addChild(deployment, child1Path);
      addChild(deployment, child2Path);
      main.addDeployment(deployment);
      main.process();

      assertEquals(expectedParentChild1Child2, deployer1.getDeployedUnits());
      assertEquals(expectedParentChild1Child2, deployer1.getUndeployedUnits());
      assertEquals(expectedParent, deployer2.getDeployedUnits());
      assertEquals(expectedNothing, deployer2.getUndeployedUnits());
View Full Code Here


      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 testDeployParentMultipleChildrenFailInChild1Deployer1() throws Exception
   {
View Full Code Here

      Deployment deployment = createSimpleDeployment(parentName);
      ContextInfo child1 = addChild(deployment, child1Path);
      makeFail(child1, deployer1);
      addChild(deployment, child2Path);
      main.addDeployment(deployment);
      main.process();

      assertEquals(expectedParentChild1, deployer1.getDeployedUnits());
      assertEquals(expectedParent, deployer1.getUndeployedUnits());
      assertEquals(expectedNothing, deployer2.getDeployedUnits());
      assertEquals(expectedNothing, deployer2.getUndeployedUnits());
View Full Code Here

      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 testDeployParentMultipleChildrenFailInChild1Deployer2() throws Exception
   {
View Full Code Here

      Deployment deployment = createSimpleDeployment(parentName);
      ContextInfo child1 = addChild(deployment, child1Path);
      makeFail(child1, deployer2);
      addChild(deployment, child2Path);
      main.addDeployment(deployment);
      main.process();

      assertEquals(expectedParentChild1Child2, deployer1.getDeployedUnits());
      assertEquals(expectedParentChild1Child2, deployer1.getUndeployedUnits());
      assertEquals(expectedParentChild1, deployer2.getDeployedUnits());
      assertEquals(expectedParent, deployer2.getUndeployedUnits());
View Full Code Here

      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 testDeployParentMultipleChildrenFailInChild2Deployer1() throws Exception
   {
View Full Code Here

      Deployment deployment = createSimpleDeployment(parentName);
      addChild(deployment, child1Path);
      ContextInfo child2 = addChild(deployment, child2Path);
      makeFail(child2, deployer1);
      main.addDeployment(deployment);
      main.process();

      assertEquals(expectedParentChild1Child2, deployer1.getDeployedUnits());
      assertEquals(expectedParentChild1, deployer1.getUndeployedUnits());
      assertEquals(expectedNothing, deployer2.getDeployedUnits());
      assertEquals(expectedNothing, deployer2.getUndeployedUnits());
View Full Code Here

      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 testDeployParentMultipleChildrenFailInChild2Deployer2() throws Exception
   {
View Full Code Here

      Deployment deployment = createSimpleDeployment(parentName);
      addChild(deployment, child1Path);
      ContextInfo child2 = addChild(deployment, child2Path);
      makeFail(child2, deployer2);
      main.addDeployment(deployment);
      main.process();

      assertEquals(expectedParentChild1Child2, deployer1.getDeployedUnits());
      assertEquals(expectedParentChild1Child2, deployer1.getUndeployedUnits());
      assertEquals(expectedParentChild1Child2, deployer2.getDeployedUnits());
      assertEquals(expectedParentChild1, deployer2.getUndeployedUnits());
View Full Code Here

      assertUndeployAfter(deployer4, deployer3);
      assertUndeployAfter(deployer5, deployer4);
      assertUndeployAfter(deployer6, deployer5);

      main.addDeployment(deployment);
      main.process();

      assertDeployBefore(deployer6, deployer1);
      assertDeployBefore(deployer6, deployer2);
      assertDeployBefore(deployer4, deployer3);
      assertDeployBefore(deployer5, deployer4);
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.