Package cc.plural.jsonij.reflect

Examples of cc.plural.jsonij.reflect.ReflectType


     */
    @Test
    public void testInspectObjectType_Double_Array() {
        System.out.println("inspectObjectType_Double_Array");
        Class<?> c = null;
        ReflectType expResult = null;

        c = Double[].class;
        expResult = ReflectType.ARRAY_DOUBLE;

        System.out.println(String.format("Found Class: \"%s\"", c));
        ReflectType result = ReflectType.inspectObjectType(c);
        assertEquals(expResult, result);

        boolean expResultPrimitive = false;
        boolean resultPrimitive = result.isPrimitive();
        assertEquals(expResultPrimitive, resultPrimitive);
    }
View Full Code Here


     */
    @Test
    public void testInspectObjectType_String_Array() {
        System.out.println("inspectObjectType_String_Array");
        Class<?> c = null;
        ReflectType expResult = null;

        c = String[].class;
        expResult = ReflectType.ARRAY_STRING;

        System.out.println(String.format("Found Class: \"%s\"", c));
        ReflectType result = ReflectType.inspectObjectType(c);
        assertEquals(expResult, result);
    }
View Full Code Here

     */
    @Test
    public void testInspectObjectType_int_2DArray() {
        System.out.println("inspectObjectType_int_2DArray");
        Class<?> c = null;
        ReflectType expResult = null;

        c = int[][].class;
        expResult = ReflectType.ARRAY_ARRAY;

        System.out.println(String.format("Found Class: \"%s\"", c));
        ReflectType result = ReflectType.inspectObjectType(c);
        assertEquals(expResult, result);
    }
View Full Code Here

TOP

Related Classes of cc.plural.jsonij.reflect.ReflectType

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.