Examples of String2Array


Examples of org.nutz.castor.castor.String2Array

        assertTrue(c.canCast(int.class, int[].class));
        assertTrue(c.canCast(String.class, String[].class));
        assertTrue(c.canCast(Dummy.class, Dummy[].class));

        Castor<String, Object> string2Array = new String2Array();

        assertArrayEquals((String[])string2Array.cast("[\"a\",\"b\",\"c\",123,456]", String[].class),
                          c.cast("[\"a\",\"b\",\"c\",123,456]", String.class, String[].class));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.