Package org.jboss.deployers.client.spi

Examples of org.jboss.deployers.client.spi.DeployerClient


      assertUndeployAfter(deployer6, deployer5);
   }

   public void testIntermediateIsRelativelySorted() throws Exception
   {
      DeployerClient main = createMainDeployer();
      TestFlowDeployer deployer2 = new TestFlowDeployer("A");
      deployer2.setInputs("test1");
      addDeployer(main, deployer2);
      TestFlowDeployer deployer3 = new TestFlowDeployer("B");
      addDeployer(main, deployer3);
      TestFlowDeployer deployer1 = new TestFlowDeployer("C");
      deployer1.setOutputs("test1");
      addDeployer(main, deployer1);

      Deployment deployment = createSimpleDeployment("IntermediateIsRelativelySorted");
      main.addDeployment(deployment);
      main.process();

      assertDeployBefore(deployer2, deployer1);
      assertTrue("B doesn't deploy", deployer3.getDeployOrder() > 0);
      assertEquals(-1, deployer1.getUndeployOrder());
      assertEquals(-1, deployer2.getUndeployOrder());
      assertEquals(-1, deployer3.getUndeployOrder());

      main.removeDeployment(deployment);
      main.process();

      assertDeployBefore(deployer2, deployer1);
      assertTrue("B doesn't deploy", deployer3.getDeployOrder() > 0);
      assertUndeployAfter(deployer2, deployer1);
      assertTrue("B doesn't undeploy", deployer3.getUndeployOrder() > 0);

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

      assertDeployBefore(deployer2, deployer1);
      assertTrue("B doesn't deploy", deployer3.getDeployOrder() > 0);
      assertUndeployAfter(deployer2, deployer1);
      assertTrue("B doesn't undeploy", deployer3.getUndeployOrder() > 0);
View Full Code Here


      assertTrue("B doesn't undeploy", deployer3.getUndeployOrder() > 0);
   }

   public void testTransitionOrdering() throws Exception
   {
      DeployerClient main = createMainDeployer();
      TestFlowDeployer deployer1 = new TestFlowDeployer("A");
      deployer1.setInputs("3");
      deployer1.setOutputs("4");
      addDeployer(main, deployer1);

      TestFlowDeployer deployer2 = new TestFlowDeployer("B");
      deployer2.setInputs("1");
      deployer2.setOutputs("2");
      addDeployer(main, deployer2);

      TestFlowDeployer deployer3 = new TestFlowDeployer("C");
      deployer3.setInputs("2");
      deployer3.setOutputs("3");
      addDeployer(main, deployer3);

      Deployment deployment = createSimpleDeployment("TransitionOrdering");
      main.addDeployment(deployment);
      main.process();

      assertEquals(3, deployer1.getDeployOrder());
      assertEquals(1, deployer2.getDeployOrder());
      assertEquals(2, deployer3.getDeployOrder());
      assertEquals(-1, deployer1.getUndeployOrder());
      assertEquals(-1, deployer2.getUndeployOrder());
      assertEquals(-1, deployer3.getUndeployOrder());

      main.removeDeployment(deployment);
      main.process();

      assertEquals(3, deployer1.getDeployOrder());
      assertEquals(1, deployer2.getDeployOrder());
      assertEquals(2, deployer3.getDeployOrder());
      assertEquals(4, deployer1.getUndeployOrder());
      assertEquals(6, deployer2.getUndeployOrder());
      assertEquals(5, deployer3.getUndeployOrder());

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

      assertEquals(9, deployer1.getDeployOrder());
      assertEquals(7, deployer2.getDeployOrder());
      assertEquals(8, deployer3.getDeployOrder());
      assertEquals(4, deployer1.getUndeployOrder());
View Full Code Here

      assertEquals(5, deployer3.getUndeployOrder());
   }

   public void testSymetricDots() throws Exception
   {
      DeployerClient main = createMainDeployer();
      TestFlowDeployer deployer1 = new TestFlowDeployer("XB");
      deployer1.setInputs("X");
      deployer1.setOutputs("B");
      addDeployer(main, deployer1);

      TestFlowDeployer deployer2 = new TestFlowDeployer("XX");
      deployer2.setInputs("X");
      deployer2.setOutputs("X");
      addDeployer(main, deployer2);

      TestFlowDeployer deployer3 = new TestFlowDeployer("AX");
      deployer3.setInputs("A");
      deployer3.setOutputs("X");
      addDeployer(main, deployer3);

      Deployment deployment = createSimpleDeployment("SymetricDots");
      main.addDeployment(deployment);
      main.process();

      assertEquals(3, deployer1.getDeployOrder());
      assertEquals(2, deployer2.getDeployOrder());
      assertEquals(1, deployer3.getDeployOrder());
      assertEquals(-1, deployer1.getUndeployOrder());
      assertEquals(-1, deployer2.getUndeployOrder());
      assertEquals(-1, deployer3.getUndeployOrder());

      main.removeDeployment(deployment);
      main.process();

      assertEquals(3, deployer1.getDeployOrder());
      assertEquals(2, deployer2.getDeployOrder());
      assertEquals(1, deployer3.getDeployOrder());
      assertEquals(4, deployer1.getUndeployOrder());
      assertEquals(5, deployer2.getUndeployOrder());
      assertEquals(6, deployer3.getUndeployOrder());

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

      assertEquals(9, deployer1.getDeployOrder());
      assertEquals(8, deployer2.getDeployOrder());
      assertEquals(7, deployer3.getDeployOrder());
      assertEquals(4, deployer1.getUndeployOrder());
View Full Code Here

      // (F) (C)
      //  |
      //  T2
      //  |
      // (A)
      DeployerClient main = createMainDeployer();

      TestFlowDeployer deployer2 = new TestFlowDeployer("A");
      deployer2.setInputs("test2");
      addDeployer(main, deployer2);

      TestFlowDeployer deployer3 = new TestFlowDeployer("B");
      addDeployer(main, deployer3);

      TestFlowDeployer deployer6 = new TestFlowDeployer("C");
      deployer6.setInputs("2ndcycle");
      addDeployer(main, deployer6);

      TestFlowDeployer deployer1 = new TestFlowDeployer("D");
      deployer1.setOutputs("test1");
      addDeployer(main, deployer1);

      TestFlowDeployer deployer4 = new TestFlowDeployer("E");
      addDeployer(main, deployer4);

      TestFlowDeployer deployer5 = new TestFlowDeployer("F");
      deployer5.setInputs("test1");
      deployer5.setOutputs("test2");
      addDeployer(main, deployer5);

      TestFlowDeployer deployer7 = new TestFlowDeployer("G");
      addDeployer(main, deployer7);

      TestFlowDeployer deployer8 = new TestFlowDeployer("H");
      deployer8.setOutputs("2ndcycle");
      addDeployer(main, deployer8);

      Deployment deployment = createSimpleDeployment("DoubleCycle");
      main.addDeployment(deployment);
      main.process();

      assertDeploy(deployer3);
      assertDeployBefore(deployer6, deployer8);
      assertDeployBefore(deployer5, deployer1);
      assertDeploy(deployer4);
      assertDeployBefore(deployer2, deployer5);
      assertDeploy(deployer7);
      assertEquals(-1, deployer3.getUndeployOrder());
      assertEquals(-1, deployer8.getUndeployOrder());
      assertEquals(-1, deployer6.getUndeployOrder());
      assertEquals(-1, deployer1.getUndeployOrder());
      assertEquals(-1, deployer4.getUndeployOrder());
      assertEquals(-1, deployer5.getUndeployOrder());
      assertEquals(-1, deployer2.getUndeployOrder());
      assertEquals(-1, deployer7.getUndeployOrder());

      main.removeDeployment(deployment);
      main.process();

      assertDeploy(deployer3);
      assertDeployBefore(deployer6, deployer8);
      assertDeployBefore(deployer5, deployer1);
      assertDeploy(deployer4);
      assertDeployBefore(deployer2, deployer5);
      assertDeploy(deployer7);
      assertUndeploy(deployer3);
      assertUndeployAfter(deployer6, deployer8);
      assertUndeployAfter(deployer5, deployer1);
      assertUndeploy(deployer4);
      assertUndeployAfter(deployer2, deployer5);
      assertUndeploy(deployer7);

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

      assertDeploy(deployer3);
      assertDeployBefore(deployer6, deployer8);
      assertDeployBefore(deployer5, deployer1);
      assertDeploy(deployer4);
View Full Code Here

      assertUndeploy(deployer7);
   }

   public void testOrderedThenFlowWithPassThrough() throws Exception
   {
      DeployerClient main = createMainDeployer();

      TestFlowDeployer deployer4 = new TestFlowDeployer("4");
      deployer4.setInputs("test");
      addDeployer(main, deployer4);

      TestFlowDeployer deployer3 = new TestFlowDeployer("3");
      deployer3.setRelativeOrder(3);
      deployer3.setInputs("test");
      deployer3.setOutputs("test");
      addDeployer(main, deployer3);

      TestFlowDeployer deployer2 = new TestFlowDeployer("2");
      deployer2.setRelativeOrder(2);
      addDeployer(main, deployer2);

      TestFlowDeployer deployer1 = new TestFlowDeployer("1");
      deployer1.setRelativeOrder(1);
      addDeployer(main, deployer1);

      Deployment deployment = createSimpleDeployment("orderedThenFlowWithPassThrough");
      main.addDeployment(deployment);
      main.process();

      assertEquals(1, deployer1.getDeployOrder());
      assertEquals(2, deployer2.getDeployOrder());
      assertEquals(3, deployer3.getDeployOrder());
      assertEquals(4, deployer4.getDeployOrder());
      assertEquals(-1, deployer1.getUndeployOrder());
      assertEquals(-1, deployer2.getUndeployOrder());
      assertEquals(-1, deployer3.getUndeployOrder());
      assertEquals(-1, deployer4.getUndeployOrder());

      main.removeDeployment(deployment);
      main.process();

      assertEquals(1, deployer1.getDeployOrder());
      assertEquals(2, deployer2.getDeployOrder());
      assertEquals(3, deployer3.getDeployOrder());
      assertEquals(4, deployer4.getDeployOrder());
      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());
      assertEquals(12, deployer4.getDeployOrder());
View Full Code Here

      assertEquals(5, deployer4.getUndeployOrder());
   }

   public void testSimplePassThrough() throws Exception
   {
      DeployerClient main = createMainDeployer();

      TestFlowDeployer postJBWMD = new TestFlowDeployer("PassThrough");
      postJBWMD.setInputs("JBWMD", "CLMD");
      postJBWMD.setOutputs("JBWMD", "CLMD");
      addDeployer(main, postJBWMD);
View Full Code Here

      addDeployer(main, postJBWMD);
   }

   public void testWebBeansOrder() throws Exception
   {
      DeployerClient main = createMainDeployer();

      TestFlowDeployer mcfcld = new TestFlowDeployer("ManagedConnectionFactory");
      mcfcld.setInputs("ManagedConnectionFactoryDeploymentGroup");
      mcfcld.setOutputs("CLMD");
      addDeployer(main, mcfcld);
View Full Code Here

      addDeployer(main, postWMD);
   }

   public void testWebServicesDeployersOrder() throws Exception
   {
      DeployerClient main = createMainDeployer();

      TestFlowDeployer deployer1 = new TestFlowDeployer("FakeDeployer");
      deployer1.setOutputs("WebServicesMetaData", "WebServiceDeployment", "JBossWebMetaData" );
      addDeployer(main, deployer1);

      TestFlowDeployer deployer2 = new TestFlowDeployer("WebServicesDeploymentTypeDeployer");
      deployer2.setInputs("WebServicesMetaData", "WebServiceDeployment", "JBossWebMetaData" );
      deployer2.setOutputs("DeploymentType", "JBossWebMetaData");
      addDeployer(main, deployer2);

      TestFlowDeployer deployer4 = new TestFlowDeployer("WebServiceDeployerPreJSE");
      deployer4.setInputs("JBossWebMetaData", "DeploymentType");
      deployer4.setOutputs("JBossWebMetaData");
      addDeployer(main, deployer4);

      TestFlowDeployer deployer5 = new TestFlowDeployer("AbstractWarDeployer");
      deployer5.setInputs("JBossWebMetaData");
      deployer5.setOutputs("WarDeployment");
      addDeployer(main, deployer5);

      TestFlowDeployer deployer6 = new TestFlowDeployer("ServiceCL");
      deployer6.setInputs("DeploymentType", "WarDeployment");
      addDeployer(main, deployer6);

      // #2 duplicate
      TestFlowDeployer deployer3 = new TestFlowDeployer("WebServicesDeploymentTypeDeployer2");
      deployer3.setInputs("WebServicesMetaData", "WebServiceDeployment", "JBossWebMetaData" );
      deployer3.setOutputs("DeploymentType", "JBossWebMetaData");
      addDeployer(main, deployer3);

      // #4 duplicate
      TestFlowDeployer deployer7 = new TestFlowDeployer("WebServiceDeployerEJB");
      deployer7.setInputs("JBossWebMetaData", "DeploymentType");
      deployer7.setOutputs("JBossWebMetaData");
      addDeployer(main, deployer7);

      Deployment deployment = createSimpleDeployment("testWSDeploymentOrder");
      main.addDeployment(deployment);
      main.process();

      assertEquals(1, deployer1.getDeployOrder());
      assertEquals(2, deployer2.getDeployOrder());
      assertEquals(3, deployer3.getDeployOrder());
//      assertEquals(4, deployer7.getDeployOrder());
      assertDeployBefore(deployer2, deployer1);
      assertDeployBefore(deployer3, deployer1);
      assertDeployBefore(deployer7, deployer2);
      assertDeployBefore(deployer7, deployer3);
      assertDeployBefore(deployer4, deployer2);
      assertDeployBefore(deployer4, deployer3);
      assertDeployBefore(deployer5, deployer4);
      assertDeployBefore(deployer5, deployer7);
      assertDeployBefore(deployer6, deployer5);
      assertDeployBefore(deployer6, deployer2);
      assertDeployBefore(deployer6, deployer3);
//      assertEquals(5, deployer4.getDeployOrder());
//      assertEquals(6, deployer5.getDeployOrder());
//      assertEquals(7, deployer6.getDeployOrder());
      assertEquals(-1, deployer1.getUndeployOrder());
      assertEquals(-1, deployer2.getUndeployOrder());
      assertEquals(-1, deployer3.getUndeployOrder());
      assertEquals(-1, deployer4.getUndeployOrder());
      assertEquals(-1, deployer5.getUndeployOrder());
      assertEquals(-1, deployer6.getUndeployOrder());

      main.removeDeployment(deployment);
      main.process();

      assertEquals(1, deployer1.getDeployOrder());
      assertEquals(2, deployer2.getDeployOrder());
      assertEquals(3, deployer3.getDeployOrder());
//      assertEquals(4, deployer7.getDeployOrder());
      assertDeployBefore(deployer2, deployer1);
      assertDeployBefore(deployer3, deployer1);
      assertDeployBefore(deployer7, deployer2);
      assertDeployBefore(deployer7, deployer3);
      assertDeployBefore(deployer4, deployer2);
      assertDeployBefore(deployer4, deployer3);
      assertDeployBefore(deployer5, deployer4);
      assertDeployBefore(deployer5, deployer7);
      assertDeployBefore(deployer6, deployer5);
      assertDeployBefore(deployer6, deployer2);
      assertDeployBefore(deployer6, deployer3);
//      assertEquals(5, deployer4.getDeployOrder());
//      assertEquals(6, deployer5.getDeployOrder());
//      assertEquals(7, deployer6.getDeployOrder());
      assertEquals(14, deployer1.getUndeployOrder());
      assertEquals(13, deployer2.getUndeployOrder());
      assertEquals(12, deployer3.getUndeployOrder());
//      assertEquals(11, deployer7.getUndeployOrder());
//      assertEquals(10, deployer4.getUndeployOrder());
//      assertEquals(9, deployer5.getUndeployOrder());
//      assertEquals(8, deployer6.getUndeployOrder());
      assertUndeployAfter(deployer2, deployer1);
      assertUndeployAfter(deployer3, deployer1);
      assertUndeployAfter(deployer7, deployer2);
      assertUndeployAfter(deployer7, deployer3);
      assertUndeployAfter(deployer4, deployer2);
      assertUndeployAfter(deployer4, deployer3);
      assertUndeployAfter(deployer5, deployer4);
      assertUndeployAfter(deployer5, deployer7);
      assertUndeployAfter(deployer6, deployer5);
      assertUndeployAfter(deployer6, deployer2);
      assertUndeployAfter(deployer6, deployer3);

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

      assertEquals(15, deployer1.getDeployOrder());
      assertEquals(16, deployer2.getDeployOrder());
      assertEquals(17, deployer3.getDeployOrder());
//      assertEquals(18, deployer7.getDeployOrder());
      assertDeployBefore(deployer2, deployer1);
      assertDeployBefore(deployer3, deployer1);
      assertDeployBefore(deployer7, deployer2);
      assertDeployBefore(deployer7, deployer3);
      assertDeployBefore(deployer4, deployer2);
      assertDeployBefore(deployer4, deployer3);
      assertDeployBefore(deployer5, deployer4);
      assertDeployBefore(deployer5, deployer7);
      assertDeployBefore(deployer6, deployer5);
      assertDeployBefore(deployer6, deployer2);
      assertDeployBefore(deployer6, deployer3);
//      assertEquals(19, deployer4.getDeployOrder());
//      assertEquals(20, deployer5.getDeployOrder());
//      assertEquals(21, deployer6.getDeployOrder());
      assertEquals(14, deployer1.getUndeployOrder());
      assertEquals(13, deployer2.getUndeployOrder());
      assertEquals(12, deployer3.getUndeployOrder());
//      assertEquals(11, deployer7.getUndeployOrder());
//      assertEquals(10, deployer4.getUndeployOrder());
//      assertEquals(9, deployer5.getUndeployOrder());
//      assertEquals(8, deployer6.getUndeployOrder());
      assertUndeployAfter(deployer2, deployer1);
      assertUndeployAfter(deployer3, deployer1);
      assertUndeployAfter(deployer7, deployer2);
      assertUndeployAfter(deployer7, deployer3);
      assertUndeployAfter(deployer4, deployer2);
      assertUndeployAfter(deployer4, deployer3);
      assertUndeployAfter(deployer5, deployer4);
      assertUndeployAfter(deployer5, deployer7);
      assertUndeployAfter(deployer6, deployer5);
      assertUndeployAfter(deployer6, deployer2);
      assertUndeployAfter(deployer6, deployer3);

      main.removeDeployment(deployment);
      main.process();
   }
View Full Code Here

      main.process();
   }

   public void testDeployersOrder1() throws Exception
   {
      DeployerClient main = createMainDeployer();

      TestFlowDeployer deployer6 = new TestFlowDeployer( "6" );
      deployer6.setInputs( "a11", "a12", "a13", "a14", "a33" );
      addDeployer(main, deployer6);

      TestFlowDeployer deployer5 = new TestFlowDeployer( "5" );
      deployer5.setInputs( "a21", "a33", "a41" );
      deployer5.setOutputs( "a33", "a51", "a52" );
      addDeployer(main, deployer5);

      TestFlowDeployer deployer4 = new TestFlowDeployer( "4" );
      deployer4.setInputs( "a14", "a33" );
      deployer4.setOutputs( "a14", "a33", "a41" );
      addDeployer( main, deployer4 );

      TestFlowDeployer deployer3 = new TestFlowDeployer( "3" );
      deployer3.setInputs( "a13", "a21" );
      deployer3.setOutputs( "a32", "a33" );
      addDeployer( main, deployer3 );

      TestFlowDeployer deployer2 = new TestFlowDeployer( "2" );
      deployer2.setInputs( "a11", "a12" );
      deployer2.setOutputs( "a12", "a21", "a22" );
      addDeployer( main, deployer2 );

      TestFlowDeployer deployer1 = new TestFlowDeployer( "1" );
      deployer1.setOutputs( "a11", "a12", "a13", "a14" );
      addDeployer( main, deployer1 );

      Deployment deployment = createSimpleDeployment( "deployersOrderTest" );
      main.addDeployment(deployment);
      main.process();

      assertEquals(1, deployer1.getDeployOrder());
      assertEquals(2, deployer2.getDeployOrder());
      assertEquals(3, deployer3.getDeployOrder());
      assertEquals(4, deployer4.getDeployOrder());
      assertEquals(5, deployer5.getDeployOrder());
      assertEquals(6, deployer6.getDeployOrder());
      assertEquals(-1, deployer1.getUndeployOrder());
      assertEquals(-1, deployer2.getUndeployOrder());
      assertEquals(-1, deployer3.getUndeployOrder());
      assertEquals(-1, deployer4.getUndeployOrder());
      assertEquals(-1, deployer5.getUndeployOrder());
      assertEquals(-1, deployer6.getUndeployOrder());

      main.removeDeployment(deployment);
      main.process();

      assertEquals(1, deployer1.getDeployOrder());
      assertEquals(2, deployer2.getDeployOrder());
      assertEquals(3, deployer3.getDeployOrder());
      assertEquals(4, deployer4.getDeployOrder());
      assertEquals(5, deployer5.getDeployOrder());
      assertEquals(6, deployer6.getDeployOrder());
      assertEquals(12, deployer1.getUndeployOrder());
      assertEquals(11, deployer2.getUndeployOrder());
      assertEquals(10, deployer3.getUndeployOrder());
      assertEquals(9, deployer4.getUndeployOrder());
      assertEquals(8, deployer5.getUndeployOrder());
      assertEquals(7, deployer6.getUndeployOrder());

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

      assertEquals(13, deployer1.getDeployOrder());
      assertEquals(14, deployer2.getDeployOrder());
      assertEquals(15, deployer3.getDeployOrder());
      assertEquals(16, deployer4.getDeployOrder());
      assertEquals(17, deployer5.getDeployOrder());
      assertEquals(18, deployer6.getDeployOrder());
      assertEquals(12, deployer1.getUndeployOrder());
      assertEquals(11, deployer2.getUndeployOrder());
      assertEquals(10, deployer3.getUndeployOrder());
      assertEquals(9, deployer4.getUndeployOrder());
      assertEquals(8, deployer5.getUndeployOrder());
      assertEquals(7, deployer6.getUndeployOrder());

      main.removeDeployment(deployment);
      main.process();
   }
View Full Code Here

      main.process();
   }

   public void testRemovingOverlapping() throws Exception
   {
      DeployerClient main = createMainDeployer();

      // "1", "2", "3", "4" and "6" are provided by deployers in different stage
      TestFlowDeployer deployer1 = new TestFlowDeployer( "WSEJBAdapterDeployer" );
      deployer1.setInputs( "1", "2", "3", "4" );
      deployer1.setOutputs( "5" );
      addDeployer(main, deployer1);

      TestFlowDeployer deployer2 = new TestFlowDeployer( "WSTypeDeployer" );
      deployer2.setInputs( "5", "4", "6" ); // note 6 is both input and output
      deployer2.setOutputs( "6", "7" );
      addDeployer(main, deployer2);

      TestFlowDeployer deployer3 = new TestFlowDeployer( "WSDeploymentDeployer" );
      deployer3.setInputs( "6", "7" ); // note 6 is both input and output
      deployer3.setOutputs( "8", "6" );
      addDeployer( main, deployer3 );

      TestFlowDeployer deployer4 = new TestFlowDeployer( "WSDeploymentAspectDeployer" );
      deployer4.setInputs( "6", "7", "8" )// note 6 is both input and output
      deployer4.setOutputs( "9", "6", "0" );
      addDeployer( main, deployer4 );

      Deployment deployment = createSimpleDeployment( "deployersOrderTest" );

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

      assertEquals(1, deployer1.getDeployOrder());
      assertEquals(2, deployer2.getDeployOrder());
      assertEquals(3, deployer3.getDeployOrder());
      assertEquals(4, deployer4.getDeployOrder());
      assertEquals(-1, deployer1.getUndeployOrder());
      assertEquals(-1, deployer2.getUndeployOrder());
      assertEquals(-1, deployer3.getUndeployOrder());
      assertEquals(-1, deployer4.getUndeployOrder());

      main.removeDeployment(deployment);
      main.process();

      assertEquals(1, deployer1.getDeployOrder());
      assertEquals(2, deployer2.getDeployOrder());
      assertEquals(3, deployer3.getDeployOrder());
      assertEquals(4, deployer4.getDeployOrder());
      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());
      assertEquals(12, deployer4.getDeployOrder());
      assertEquals(8, deployer1.getUndeployOrder());
      assertEquals(7, deployer2.getUndeployOrder());
      assertEquals(6, deployer3.getUndeployOrder());
      assertEquals(5, deployer4.getUndeployOrder());

      main.removeDeployment(deployment);
      main.process();
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.client.spi.DeployerClient

Copyright © 2018 www.massapicom. 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.