Package org.jboss.test.server.profileservice.component.persistence.support

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


      TestComponent addComponent = createComponentMetaData("component3",
            new ObjectName("org.jboss:type=testComponent3"),
            createCompositeMetaData("composite3", 'c', new Integer(3)));
     
      ManagedObject temp = getMOF().initManagedObject(addComponent, null);
      ManagedComponent component = new TestMgtComponentImpl(temp);
     
      ManagedObject mo = createDeploymentMO();
      PersistenceRoot root = getPersistenceFactory().addComponent(mo, component);
     
      root = restore(root);
View Full Code Here


      Iterator<?> iterator = ((CollectionValue) mo.getProperty("components").getValue()).iterator();
      ManagedObject component1 = (ManagedObject) ((GenericValue) iterator.next()).getValue();
      ManagedObject component2 = (ManagedObject) ((GenericValue) iterator.next()).getValue();
     
      // create the persistence information
      TestMgtComponentImpl tComp1 = new TestMgtComponentImpl(component1);
      PersistenceRoot root = getPersistenceFactory().updateComponent(mo, tComp1);
      TestMgtComponentImpl tComp2 = new TestMgtComponentImpl(component2);
      root = getPersistenceFactory().updateComponent(root, mo, tComp2);     
     
      assertNotNull(root.getComponents());
      // serialize / deserialize
      PersistenceRoot persisted = restore(root);
View Full Code Here

      ManagedObject mo = createDeploymentMO();     
      Iterator<?> iterator = ((CollectionValue) mo.getProperty("components").getValue()).iterator();
      ManagedObject component1 = (ManagedObject) ((GenericValue) iterator.next()).getValue();
     
      // create the persistence information
      TestMgtComponentImpl tComp1 = new TestMgtComponentImpl(component1);
      PersistenceRoot root = getPersistenceFactory().removeComponent(mo, tComp1);
      PersistenceRoot persisted = restore(root);

      // Check removed
      TestDeployment deployment = createDeploymentMetaData();
View Full Code Here

   {
      Iterator<?> iterator = ((CollectionValue) mo.getProperty("components").getValue()).iterator();
      ManagedObject component = (ManagedObject) ((GenericValue) iterator.next()).getValue();
     
      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

Related Classes of org.jboss.test.server.profileservice.component.persistence.support.TestMgtComponentImpl

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.