Package org.apache.geronimo.test.generated

Examples of org.apache.geronimo.test.generated.Account


        return this.jc.getClass().getName();
    }

    public void testMarshall() throws Exception {
       
        Account bean = new Account();
        bean.setFirstName("foo");
        bean.setLastName("bar");

        Marshaller m = this.jc.createMarshaller();
        StringWriter writer = new StringWriter();
        m.marshal(bean, writer);
        writer.flush();
View Full Code Here


    }

    public void testUnmarshall() throws Exception {
       
        Unmarshaller m = this.jc.createUnmarshaller();
        Account bean = (Account)m.unmarshal(new StringReader(INPUT));
       
        if (!(bean.getFirstName().equals("first") &&
              bean.getLastName().equals("last"))) {
            throw new Exception("Unexpected data");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.test.generated.Account

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.