Package com.alexgilleran.icesoap.xml

Examples of com.alexgilleran.icesoap.xml.XMLTextNode


    assertEquals(expected, getXMLObject().toString());
  }

  @Test
  public void testNullValue() {
    XMLTextNode node = new XMLTextNodeImpl(null, "name", null);
    node.declarePrefix(XMLNode.NS_PREFIX_XSI, XMLNode.NS_URI_XSI);

    assertEquals(
        "<name xsi:nil=\"true\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" />",
        node.toString());
  }
View Full Code Here


    XMLParentNode node2 = (XMLParentNode) node1SubElements.get(0);
    assertEquals(NAME_NODE_2, node2.getName());
    assertEquals(NAMESPACE_NODE_2, node2.getNamespace());

    assertTrue(XMLTextNode.class.isAssignableFrom(baseNodeElements.get(1).getClass()));
    XMLTextNode textElement = (XMLTextNode) baseNodeElements.get(1);
    assertEquals(NAME_TEXT_NODE, textElement.getName());
    assertEquals(NAMESPACE_TEXT_NODE, textElement.getNamespace());
    assertEquals(VALUE_TEXT_NODE, textElement.getValue());
  }
View Full Code Here

TOP

Related Classes of com.alexgilleran.icesoap.xml.XMLTextNode

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.