Package org.nutz.ioc.json.pojo

Examples of org.nutz.ioc.json.pojo.IocTO00


    }

    @Test
    public void test_2darray_iocvalue() {
        Ioc ioc = I("obj:{args:[[['a','b'],['c','d']]]}");
        IocTO00 obj = ioc.get(IocTO00.class, "obj");
        assertEquals(2, obj.getStrss().length);
        assertEquals(2, obj.getStrss()[0].length);
        assertEquals("a", obj.getStrss()[0][0]);
        assertEquals("b", obj.getStrss()[0][1]);
        assertEquals("c", obj.getStrss()[1][0]);
        assertEquals("d", obj.getStrss()[1][1]);
    }
View Full Code Here


        objMap.put("args", new Object[]{strss});

        map.put("obj", objMap);
        Ioc ioc = new NutIoc(new MapLoader(map));

        IocTO00 obj = ioc.get(IocTO00.class, "obj");
        assertEquals(2, obj.getStrss().length);
        assertEquals(2, obj.getStrss()[0].length);
        assertEquals("a", obj.getStrss()[0][0]);
        assertEquals("b", obj.getStrss()[0][1]);
        assertEquals("c", obj.getStrss()[1][0]);
        assertEquals("d", obj.getStrss()[1][1]);
    }
View Full Code Here

TOP

Related Classes of org.nutz.ioc.json.pojo.IocTO00

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.