Package com.calclab.emite.base.xml

Examples of com.calclab.emite.base.xml.XMLPacket.removeChild()


  }

  private static void shouldRemoveChildIfPresent(final HelperExtended helper) {
    helper.log("- shouldRemoveChildIfPresent");
    final XMLPacket root = helper.createPacket("packet");
    helper.assertFalse(root.removeChild(helper.createPacket("otherPacket")));
    final XMLPacket child = root.addChild("child", null);
    helper.assertEquals(1, root.getChildren().size());
    helper.assertTrue(root.removeChild(child));
    helper.assertEquals(0, root.getChildren().size());
    helper.log("- test ends");
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.