Examples of TestDeployment


Examples of org.jboss.arquillian.spi.TestDeployment

   @Test
   public void shouldHandleWebArchive() throws Exception
   {
      Archive<?> archive = new ServletProtocolDeploymentPackager().generateDeployment(
            new TestDeployment(
                  ShrinkWrap.create(WebArchive.class, "applicationArchive.war")
                     .addClass(getClass()),
                  createAuxiliaryArchives()),
            processors());
View Full Code Here

Examples of org.jboss.arquillian.spi.TestDeployment

   @Test
   public void shouldHandleWebArchiveWithWebXML() throws Exception
   {
      Archive<?> archive = new ServletProtocolDeploymentPackager().generateDeployment(
            new TestDeployment(
                  ShrinkWrap.create(WebArchive.class, "applicationArchive.war")
                     .addClass(getClass())
                     .setWebXML(createWebDescriptor()),
                  createAuxiliaryArchives()),
            processors());
View Full Code Here

Examples of org.jboss.arquillian.spi.TestDeployment

{
   @Test
   public void shouldHandleJavaArchive() throws Exception
   {
      Archive<?> archive = new ServletProtocolDeploymentPackager().generateDeployment(
            new TestDeployment(
                  ShrinkWrap.create(JavaArchive.class, "applicationArchive.jar"),
                  createAuxiliaryArchives()),
            processors());
     
      Assert.assertTrue(
View Full Code Here

Examples of org.jboss.arquillian.spi.TestDeployment

  
   @Test
   public void shouldHandleEnterpriseArchive() throws Exception
   {
      Archive<?> archive = new ServletProtocolDeploymentPackager().generateDeployment(
            new TestDeployment(
                  ShrinkWrap.create(EnterpriseArchive.class, "applicationArchive.ear"),
                  createAuxiliaryArchives()),
            processors());

      Assert.assertTrue(
View Full Code Here

Examples of org.jboss.arquillian.spi.TestDeployment

   @Test
   public void shouldHandleWebArchive() throws Exception
   {
      Archive<?> archive = new ServletProtocolDeploymentPackager().generateDeployment(
            new TestDeployment(
                  ShrinkWrap.create(WebArchive.class, "applicationArchive.war"),
                  createAuxiliaryArchives()),
            processors());
     
      Assert.assertTrue(
View Full Code Here

Examples of org.jboss.test.server.profileservice.component.persistence.support.TestDeployment

      ManagedObject mo = createDeploymentMO();
      PersistenceRoot root = getPersistenceFactory().addComponent(mo, component);
     
      root = restore(root);
     
      TestDeployment attachment = createDeploymentMetaData();
      getPersistenceFactory().restorePersistenceRoot(root, attachment, null);
     
      //
      assertEquals(3, attachment.getComponents().size());
   }
View Full Code Here

Examples of org.jboss.test.server.profileservice.component.persistence.support.TestDeployment

      assertNotNull(root.getComponents());
      // serialize / deserialize
      PersistenceRoot persisted = restore(root);
     
      // Create a new root attachment with empty components
      TestDeployment test = new TestDeployment();
      test.getComponents().add(createComponentMetaData("component1", null, null));
      test.getComponents().add(createComponentMetaData("component2", null, null));
      // Apply the persisted information, which should recreate the missing properties
      getPersistenceFactory().restorePersistenceRoot(persisted, test, null);
      assertFalse(test.getComponents().isEmpty());
     
      // Check if the properties are available again
      for(TestComponent restoredComponent : test.getComponents())
      {
         assertNotNull("null object name "+ restoredComponent.getName(), restoredComponent.getObjectName());
         assertNotNull("null composite "+ restoredComponent.getName(), restoredComponent.getComposite());
      }
   }
View Full Code Here

Examples of org.jboss.test.server.profileservice.component.persistence.support.TestDeployment

      TestMgtComponentImpl tComp1 = new TestMgtComponentImpl(component1);
      PersistenceRoot root = getPersistenceFactory().removeComponent(mo, tComp1);
      PersistenceRoot persisted = restore(root);

      // Check removed
      TestDeployment deployment = createDeploymentMetaData();
      getPersistenceFactory().restorePersistenceRoot(persisted, deployment, null);
      assertEquals(1, deployment.getComponents().size());
     
      // Reset
      root = getPersistenceFactory().resetComponent(persisted, mo, tComp1);
      persisted = restore(root);
      assertNull(persisted.getComponents());
View Full Code Here

Examples of org.jboss.test.server.profileservice.component.persistence.support.TestDeployment

      // Get the components
      ManagedObject mo = createDeploymentMO();

      PersistenceRoot root = new PersistenceRoot();
     
      TestDeployment deployment = updateName(root, mo, "change1");
      mo = getMOF().initManagedObject(deployment, null);
     
      deployment = updateName(root, mo, "change2");
      mo = getMOF().initManagedObject(deployment, null);
     
View Full Code Here

Examples of org.jboss.test.server.profileservice.component.persistence.support.TestDeployment

     
      component.getProperty("name").setValue(SimpleValueSupport.wrap(name));
      root = getPersistenceFactory().updateComponent(root, mo, new TestMgtComponentImpl(component));
      root = restore(root);
     
      TestDeployment deployment = createDeploymentMetaData();
      getPersistenceFactory().restorePersistenceRoot(root, deployment, null);
      return deployment;
   }
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.