Package org.bifrost.xmlio.test.helpers

Examples of org.bifrost.xmlio.test.helpers.TestHelperParent


   */
  public void testSimpleParentChild()
  {
    CharArrayWriter output = new CharArrayWriter();
    assertNotNull(output);
    TestHelperParent simple = new TestHelperParent();
    assertNotNull(simple);
    simple.setVariable("hello world");
    TestHelperParent child = new TestHelperParent();
    assertNotNull(child);
    child.setVariable("salut le monde");
    simple.addTestHelperParent(child);
    Diff myDiff = null;
    try
    {
      XmlWriter xmlWriter = new XmlWriter(output);
View Full Code Here


   */
  public void testDeepParentChild()
  {
    CharArrayWriter output = new CharArrayWriter();
    assertNotNull(output);
    TestHelperParent deep = new TestHelperParent();
    TestHelperParent parent = deep;
    assertNotNull(deep);
    deep.setVariable("a1");
    TestHelperParent child = new TestHelperParent();
    assertNotNull(child);
    child.setVariable("b2");
    parent.addTestHelperParent(child);
    parent = child;
    child = new TestHelperParent();
    assertNotNull(child);
    child.setVariable("c3");
    parent.addTestHelperParent(child);
    parent = child;
    child = new TestHelperParent();
    assertNotNull(child);
    child.setVariable("d4");
    parent.addTestHelperParent(child);
    parent = child;
    Diff myDiff = null;
    try
    {
View Full Code Here

TOP

Related Classes of org.bifrost.xmlio.test.helpers.TestHelperParent

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.