Package org.jboss.deployers.client.spi

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


      assertEquals(8, deployer1.getUndeployOrder());
      assertEquals(7, deployer2.getUndeployOrder());
      assertEquals(6, deployer3.getUndeployOrder());
      assertEquals(5, deployer4.getUndeployOrder());

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

      assertEquals(9, deployer1.getDeployOrder());
      assertEquals(10, deployer2.getDeployOrder());
      assertEquals(11, deployer3.getDeployOrder());
View Full Code Here


      System.out.println("------------------------------------------------------------------------");

      // test proper deployers order
      Deployment deployment = createSimpleDeployment( "exhaustiveDeployersOrderTest" );

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

      for (int i = 0; i < COUNT_OF_DEPLOYERS; i++)
      {
         deployer = deployers.get(i);
View Full Code Here

      System.out.println("------------------------------------------------------------------------");

      // test proper deployers order
      Deployment deployment = createSimpleDeployment( "exhaustiveDeployersOrderTest" );

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

      int deployerDeployOrder;
      int deployerUndeployOrder;
      int deployerDeployOrderInModulo;
View Full Code Here

   public void testAddProcessUndeploy() throws Throwable
   {
      DeployerClient main = getMainDeployer();

      Deployment context = createSimpleDeployment("apu");
      main.addDeployment(context);
      main.process();
      List<String> expected = new ArrayList<String>();
      expected.add(context.getName());
      assertEquals(expected, deployer.getDeployedUnits());
View Full Code Here

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

      Deployment normal = createSimpleDeployment("normal");
      main.addDeployment(normal);
      main.process();
      expected.add(normal.getName());
      assertEquals(expected, deployer.getDeployedUnits());

      main.undeploy(single);
View Full Code Here

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

      Deployment normal = createSimpleDeployment("normal");
      main.addDeployment(normal);
      main.process();
      expected.add(normal.getName());
      assertEquals(expected, deployer.getDeployedUnits());

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

      TestDeployment1 deployment1 = new TestDeployment1();
      TestMetaData1 component1 = new TestMetaData1("TestBean1");
      deployment1.addBean(component1);
      attachments.addAttachment(TestDeployment1.class, deployment1);

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

      assertEquals(Collections.singletonList(component1), realDeployer1.deployed);
     
      main.removeDeployment(deployment);
View Full Code Here

      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();

      TestMetaData1 component1 = new TestMetaData1("TestBean1");
      attachments.addAttachment(TestMetaData1.class, component1);

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

      assertEquals(Collections.singletonList(component1), realDeployer1.deployed);
     
      main.removeDeployment(deployment);
View Full Code Here

   public void testAllFailure() throws Exception
   {
      DeployerClient main = getMainDeployer();
      Deployment deployment = createSimpleDeployment("failure");
      makeFail(deployment, deployer);
      main.addDeployment(deployment);
      main.process();
      try
      {
         main.checkComplete(deployment);
         fail("Should not be here.");
View Full Code Here

   public void testAllSuccess() throws Exception
   {
      DeployerClient main = getMainDeployer();
      Deployment deployment = createSimpleDeployment("failure");
      main.addDeployment(deployment);
      main.process();
      main.checkComplete(deployment);
   }

   public void testStructureFailure() 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.