Package org.beangle.model.example

Examples of org.beangle.model.example.ManagerEmployer


    List<Object> datas = CollectUtils.newArrayList();
    Float age = new Float(22);
    datas.add(age);

    Map<String, Object> person = CollectUtils.newHashMap();
    ManagerEmployer employer1 = new ManagerEmployer();
    person.put("firstName", "jack");
    person.put("employer", employer1);
    datas.add(person);

    ManagerEmployer employer2 = new ManagerEmployer();
    ContractInfo info = new ContractInfo();
    info.setAdd1("add1");
    employer2.setContractInfo(info);
    person.put("employer2", employer2);

    assertEquals(age, extractor.getPropertyValue(datas, "[0]"));
    assertEquals("jack", extractor.getPropertyValue(datas, "[1][\"firstName\"]"));
    assertNull(extractor.getPropertyValue(datas, "[1][\"employer\"].contractInfo.add1"));
View Full Code Here


    List<Object> datas = CollectUtils.newArrayList();
    Float age = new Float(22);
    datas.add(age);

    Map<String, Object> person = CollectUtils.newHashMap();
    ManagerEmployer employer1 = new ManagerEmployer();
    person.put("firstName", "jack");
    person.put("employer", employer1);
    datas.add(person);

    ManagerEmployer employer2 = new ManagerEmployer();
    ContractInfo info = new ContractInfo();
    info.setAdd1("add1");
    employer2.setContractInfo(info);
    person.put("employer2", employer2);

    assertEquals(age, extractor.getPropertyValue(datas, "[0]"));
    assertEquals("jack", extractor.getPropertyValue(datas, "[1][\"firstName\"]"));
    assertNull(extractor.getPropertyValue(datas, "[1][\"employer\"].contractInfo.add1"));
View Full Code Here

TOP

Related Classes of org.beangle.model.example.ManagerEmployer

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.