Package org.apache.tuscany.sca.databinding.json

Examples of org.apache.tuscany.sca.databinding.json.MyBean


import org.apache.tuscany.sca.interfacedef.impl.DataTypeImpl;
import org.junit.Test;

public class JacksonTestCase  {
    public void testPOJO() throws Exception {
        MyBean bean = new MyBean();
        bean.setName("Test");
        bean.setAge(20);
        bean.getNotes().add("1");
        bean.getNotes().add("2");
        bean.getMap().put("1", 1);
        MyInterface service = new MyInterfaceImpl();
        service.setId("ID001");
        bean.setService(service);
        bean.setOtherService(service);

        roundTrip(bean);
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.databinding.json.MyBean

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.