Package org.jboss.deployers.client.spi

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


      String name = "simple";
     
      Deployment deployment = createSimpleDeployment(name);
      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      attachments.addAttachment(DeploymentStage.class, DeploymentStages.DESCRIBE);
      main.deploy(deployment);

      DeploymentUnit unit = getDeploymentUnit(main, name);
     
      assertEquals(DeploymentStages.DESCRIBE, unit.getRequiredStage());
      assertEquals(DeploymentStages.DESCRIBE, main.getDeploymentStage(name));
View Full Code Here


      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      attachments.addAttachment(DeploymentStage.class, DeploymentStages.DESCRIBE);

      Set<String> singleton;
      main.deploy(deployment);
      try
      {
         DeploymentUnit unit = getDeploymentUnit(main, name);
         singleton = Collections.singleton(unit.getName());
View Full Code Here

      Deployment dD = createSimpleDeployment("D");
      addAttachment(dD, null, true);

      try
      {
         main.deploy(dA, dB, dC, dD);
         fail("Should not be here.");
      }
      catch (DeploymentException e)
      {
         IncompleteDeploymentException ide = assertInstanceOf(e, IncompleteDeploymentException.class);
View Full Code Here

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

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

      main.undeploy(context);
View Full Code Here

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

      deployer.clear();
      main.deploy(context);
      expected.clear();
      expected.add(context.getName());
      assertEquals(expected, deployer.getDeployedUnits());
   }
View Full Code Here

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

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

      main.removeDeployment(context);
View Full Code Here

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

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

      Deployment normal = createSimpleDeployment("normal");
View Full Code Here

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

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

      Deployment normal = createSimpleDeployment("normal");
View Full Code Here

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

      Deployment single = createSimpleDeployment("single");
      main.deploy(single);
      List<String> expected = new ArrayList<String>();
      expected.add(single.getName());
      assertEquals(expected, deployer.getDeployedUnits());
     
      DeploymentUnit unit = assertDeploymentUnit(main, single.getName());
View Full Code Here

   {
      DeployerClient main = getMainDeployer();

      Deployment single = createSimpleDeployment("single");
      assertEquals(DeploymentStages.NOT_INSTALLED, main.getDeploymentStage(single.getName()));
      main.deploy(single);
      List<String> expected = new ArrayList<String>();
      expected.add(single.getName());
      assertEquals(expected, deployer.getDeployedUnits());
      assertEquals(DeploymentStages.INSTALLED, main.getDeploymentStage(single.getName()));
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.