117118119120121122123124125126127
/** * 对象转MapList测试 */ @Test public void objCompileTest() { Abc abc = new Abc(); abc.id = 1; abc.name = "jk"; Object obj = Mapl.toMaplist(abc); assertTrue(obj instanceof Map); assertEquals(1, Mapl.cell(obj, "id"));
131132133134135136137138139140141142143144
/** * 对象转MapList测试 */ @Test public void objCompileArrayTest() { Abc abc = new Abc(); abc.id = 1; abc.name = "jk"; Abc b = new Abc(); b.id = 2; b.name = "juqkai"; List<Abc> list = new ArrayList<Abc>(); list.add(abc); list.add(b);
120121122123124125126127128129130
165166167168169170171172173174175176177178