Package org.jboss.test.managed.factory.support.amof

Examples of org.jboss.test.managed.factory.support.amof.CustomName


    * Test the transformer value of the annotation
    */
   public void testTransformer()
   {
      ManagementObjectWithRuntimeRef mowref = new ManagementObjectWithRuntimeRef();
      mowref.setRefName(new CustomName("jboss:test=testTransformer"));
      ManagedObject managedObject = initManagedObject(mowref);
      createManagedObject(ManagementObjectChangedName.class);
      assertEquals("jboss:test=testTransformer", managedObject.getComponentName());
   }
View Full Code Here


      AbstractManagedObjectFactory mof = new AbstractManagedObjectFactory();
      mof.setInstanceClassFactory(ManagementObjectWithRuntimeRef.class, new ManagementObjectWithRuntimeRefICF());
      testMOF = mof;

      ManagementObjectWithRuntimeRef mowref = new ManagementObjectWithRuntimeRef();
      mowref.setRefName(new CustomName("jboss:test=testTransformer"));
      ManagedObject managedObject = initManagedObject(mowref);
      createManagedObject(ManagementObjectChangedName.class);
      assertEquals("jboss:test=testTransformer", managedObject.getComponentName());
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.managed.factory.support.amof.CustomName

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.