Examples of IterableElementList


Examples of org.openiaml.model.xpath.IterableElementList

   * Make sure all 'nodes' are unique.
   * @throws Exception
   */
  public void testUniqueNodes() throws Exception {
    Document gmfgraph = getGmfgraph();
    IterableElementList nl = xpath(gmfgraph, "/Canvas/nodes");
   
    assertNotSame("We should have at least one node node", nl.getLength(), 0);
    Set<String> found = new HashSet<String>();
    for (Element child : nl) {
      String childName = child.getAttribute("name");
     
      assertFalse("More than one node found for '" + childName + "'", found.contains(childName));
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.