Package cc.plural.jsonij.reflect

Examples of cc.plural.jsonij.reflect.ReflectType


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

        c = Byte[].class;
        expResult = ReflectType.ARRAY_BYTE;

        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 inspectObjectType_short_Array() {
        System.out.println("inspectObjectType_short_Array");
        Class<?> c = null;
        ReflectType expResult = null;

        c = short[].class;
        expResult = ReflectType.ARRAY_SHORT;

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

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

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

        c = Short[].class;
        expResult = ReflectType.ARRAY_SHORT;

        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_int_Array() {
        System.out.println("inspectObjectType_int");
        Class<?> c = null;
        ReflectType expResult = null;

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

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

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

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

        c = Integer[].class;
        expResult = ReflectType.ARRAY_INTEGER;

        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_float_Array() {
        System.out.println("inspectObjectType_float_Array");
        Class<?> c = null;
        ReflectType expResult = null;

        c = float[].class;
        expResult = ReflectType.ARRAY_FLOAT;

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

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

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

        c = Float[].class;
        expResult = ReflectType.ARRAY_FLOAT;

        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_long_Array() {
        System.out.println("inspectObjectType_long_Array");
        Class<?> c = null;
        ReflectType expResult = null;

        c = long[].class;
        expResult = ReflectType.ARRAY_LONG;

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

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

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

        c = Long[].class;
        expResult = ReflectType.ARRAY_LONG;

        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_double_Array() {
        System.out.println("inspectObjectType_double_Array");
        Class<?> c = null;
        ReflectType expResult = null;

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

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

        boolean expResultPrimitive = true;
        boolean resultPrimitive = result.isPrimitive();
        assertEquals(expResultPrimitive, resultPrimitive);
    }
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.