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

Examples of org.jboss.test.managed.factory.support.JmsDestinationTemplateInfo


      assertEquals("property1_1.value", SimpleValueSupport.wrap("value1-orig"), value1_1);
   }

   public void testSubclassCopy()
   {
      JmsDestinationTemplateInfo info = new JmsDestinationTemplateInfo("testSubclassCopy", "testSubclassCopy", "queue");
      ManagedProperty jndiName = info.getProperties().get("JNDIName");
      jndiName.setValue(SimpleValueSupport.wrap("testSubclassCopy"));
      JmsDestinationTemplateInfo info2 = info.copy();
      jndiName.setValue(SimpleValueSupport.wrap("testSubclassCopy-updated"));
      ManagedProperty jndiName2 = info2.getProperties().get("JNDIName");
      MetaValue value = jndiName.getValue();
      MetaValue value2 = jndiName2.getValue();

      assertTrue(info.getProperties() != info2.getProperties());
      assertTrue(jndiName != jndiName2);
      assertTrue(jndiName.getFields() != jndiName2.getFields());
      assertTrue(value != value2);
      assertEquals("jndiName", SimpleValueSupport.wrap("testSubclassCopy-updated"), jndiName.getValue());
      assertEquals("jndiName2", SimpleValueSupport.wrap("testSubclassCopy"), value2);
View Full Code Here

TOP

Related Classes of org.jboss.test.managed.factory.support.JmsDestinationTemplateInfo

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.