Examples of ElementWildcardWithCollectionProperty


Examples of org.jboss.test.xb.builder.object.type.xmlanyelement.support.ElementWildcardWithCollectionProperty

      super(name);
   }

   public void testUnmarshalWildcardWithProperties() throws Exception
   {
      ElementWildcardWithCollectionProperty result = unmarshalObject(ElementWildcardWithCollectionProperty.class);
      Collection<String> properties = result.getProperties();
      ArrayList<String> expected = new ArrayList<String>();
      expected.add("1");
      expected.add("2");
      assertEquals(expected, properties);
      Element element = result.getWildcard();
      assertNotNull(element);
      assertEquals("test-element", element.getNodeName());
      NodeList childNodes = element.getChildNodes();
      assertNotNull(childNodes);
      assertEquals(1, childNodes.getLength());
View Full Code Here

Examples of org.jboss.test.xb.builder.object.type.xmlanyelement.support.ElementWildcardWithCollectionProperty

      assertEquals("test-child-element", element.getNodeName());
   }

   public void testUnmarshalResolvedWildcard() throws Exception
   {
      ElementWildcardWithCollectionProperty result = unmarshalObject(ElementWildcardWithCollectionProperty.class);
      Collection<String> properties = result.getProperties();
      ArrayList<String> expected = new ArrayList<String>();
      expected.add("1");
      expected.add("2");
      assertEquals(expected, properties);
      Element element = result.getWildcard();
      assertNotNull(element);
      assertEquals("wildcard", element.getNodeName());
      NodeList childNodes = element.getChildNodes();
      assertNotNull(childNodes);
      assertEquals(1, childNodes.getLength());
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.