Package com.alibaba.dubbo.common.model

Examples of com.alibaba.dubbo.common.model.Person


   
    @Test
    public void test_simpleCollection() throws Exception {
        Type gtype = getType("returnListPersonMethod");
        List<Person> list = new ArrayList<Person>();
        list.add(new Person());
        {
            Person person = new Person();
            person.setName("xxxx");
            list.add(person);
        }
        assertObject(list,gtype);
    }
View Full Code Here


    }

    @Test
    public void testRealizeLinkedList() throws Exception {
        LinkedList<Person> input = new LinkedList<Person>();
        Person person = new Person();
        person.setAge(37);
        input.add(person);
        Object obj = PojoUtils.generalize(input);
        Assert.assertTrue(obj instanceof List);
        Assert.assertTrue(input.get(0) instanceof Person);
        Object output = PojoUtils.realize(obj, LinkedList.class);
View Full Code Here

* @author ding.lid
*/
public abstract class AbstractSerializationPersionOkTest extends AbstractSerializationTest {
    @Test
    public void test_Person() throws Exception {
        assertObject(new Person());
    }
View Full Code Here

        assertObject(new Person());
    }

    @Test
    public void test_Person_withType() throws Exception {
        assertObjectWithType(new Person(), Person.class);
    }
View Full Code Here

    }
   
    @Test
    public void test_PersonList() throws Exception {
        List<Person> args = new ArrayList<Person>();
        args.add(new Person());

        assertObject(args);
    }
View Full Code Here

    }

    @Test
    public void test_PersonSet() throws Exception {
        Set<Person> args = new HashSet<Person>();
        args.add(new Person());

        assertObject(args);
    }
View Full Code Here

    }

    @Test
    public void test_IntPersonMap() throws Exception {
        Map<Integer, Person> args = new HashMap<Integer, Person>();
        args.put(1, new Person());

        assertObject(args);
    }
View Full Code Here

    }

    @Test
    public void test_StringPersonMap() throws Exception {
        Map<String, Person> args = new HashMap<String, Person>();
        args.put("1", new Person());

        assertObject(args);
    }
View Full Code Here

    @Test
    public void test_StringPersonListMap() throws Exception {
        Map<String, List<Person>> args = new HashMap<String, List<Person>>();

        List<Person> sublist = new ArrayList<Person>();
        sublist.add(new Person());
        args.put("1", sublist);

        assertObject(args);
    }
View Full Code Here

    @Test
    public void test_PersonListList() throws Exception {
        List<List<Person>> args = new ArrayList<List<Person>>();
        List<Person> sublist = new ArrayList<Person>();
        sublist.add(new Person());
        args.add(sublist);

        assertObject(args);
    }
View Full Code Here

TOP

Related Classes of com.alibaba.dubbo.common.model.Person

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.