Package org.odftoolkit.odfdom.incubator.doc.text

Examples of org.odftoolkit.odfdom.incubator.doc.text.OdfTextHeading.addContent()


    LOG.info("addContent");
    String content = "heading content";
    OdfTextHeading instance = new OdfTextHeading(dom);
    Node node;
    Assert.assertNotNull(instance);
    instance.addContent(content);
    node = instance.getFirstChild();
    Assert.assertNotNull(node);
    Assert.assertEquals(Node.TEXT_NODE, node.getNodeType());
    Assert.assertEquals(content, node.getTextContent());
  }
View Full Code Here


    LOG.info("addContent");
    String content = "heading content";
    OdfTextHeading instance = new OdfTextHeading(dom);
    Node node;
    Assert.assertNotNull(instance);
    instance.addContent(content);
    node = instance.getFirstChild();
    Assert.assertNotNull(node);
    Assert.assertEquals(Node.TEXT_NODE, node.getNodeType());
    Assert.assertEquals(content, node.getTextContent());
  }
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.