Package org.apache.commons.betwixt

Examples of org.apache.commons.betwixt.LoopBean


   
    /** Test nested case for writing empty elements */
    public void testNestedWriteEmptyElements() throws Exception{
       
        // write same bean both times
        LoopBean root = new LoopBean("base");
        LoopBean middle = new LoopBean(null);
        root.setFriend(middle);
        middle.setFriend(new LoopBean(null));

        // test output when writing empty elements
        StringWriter out = new StringWriter();
        out.write("<?xml version='1.0'?>");
        BeanWriter writer = new BeanWriter(out);
View Full Code Here


   
    /** Test nested case for writing empty elements */
    public void testNestedWriteEmptyElements() throws Exception{
       
        // write same bean both times
        LoopBean root = new LoopBean("base");
        LoopBean middle = new LoopBean(null);
        root.setFriend(middle);
        middle.setFriend(new LoopBean(null));

        // test output when writing empty elements
        StringWriter out = new StringWriter();
        out.write("<?xml version='1.0'?>");
        BeanWriter writer = new BeanWriter(out);
View Full Code Here

TOP

Related Classes of org.apache.commons.betwixt.LoopBean

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.