Examples of AvailableTypeDetector


Examples of org.junithelper.core.extractor.AvailableTypeDetector

    }

    @Test
    public void instantiation() throws Exception {
        ClassMeta classMeta = null;
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        assertNotNull(target);
    }
View Full Code Here

Examples of org.junithelper.core.extractor.AvailableTypeDetector

    }

    @Test
    public void isPrimitive_A$String_argNull() throws Exception {
        ClassMeta classMeta = null;
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        // given
        String typeName = null;
        // when
        boolean actual = target.isPrimitive(typeName);
        // then
        boolean expected = false;
        assertEquals(expected, actual);
    }
View Full Code Here

Examples of org.junithelper.core.extractor.AvailableTypeDetector

    }

    @Test
    public void isPrimitive_A$String_true() throws Exception {
        ClassMeta classMeta = null;
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        // given
        String typeName = "long";
        // when
        boolean actual = target.isPrimitive(typeName);
        // then
        boolean expected = true;
        assertEquals(expected, actual);
    }
View Full Code Here

Examples of org.junithelper.core.extractor.AvailableTypeDetector

    }

    @Test
    public void isPrimitive_A$String_false() throws Exception {
        ClassMeta classMeta = null;
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        // given
        String typeName = "String";
        // when
        boolean actual = target.isPrimitive(typeName);
        // then
        boolean expected = false;
        assertEquals(expected, actual);
    }
View Full Code Here

Examples of org.junithelper.core.extractor.AvailableTypeDetector

    }

    @Test
    public void isArray_A$String_argNull() throws Exception {
        ClassMeta classMeta = null;
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        // given
        String typeName = null;
        // when
        boolean actual = target.isArray(typeName);
        // then
        boolean expected = false;
        assertEquals(expected, actual);
    }
View Full Code Here

Examples of org.junithelper.core.extractor.AvailableTypeDetector

    }

    @Test
    public void isArray_A$String_true() throws Exception {
        ClassMeta classMeta = null;
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        // given
        String typeName = "String[]";
        // when
        boolean actual = target.isArray(typeName);
        // then
        boolean expected = true;
        assertEquals(expected, actual);
    }
View Full Code Here

Examples of org.junithelper.core.extractor.AvailableTypeDetector

    }

    @Test
    public void isArray_A$String_false() throws Exception {
        ClassMeta classMeta = null;
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        // given
        String typeName = "String";
        // when
        boolean actual = target.isArray(typeName);
        // then
        boolean expected = false;
        assertEquals(expected, actual);
    }
View Full Code Here

Examples of org.junithelper.core.extractor.AvailableTypeDetector

    }

    @Test
    public void isJavaLangPackageType_A$String_argNull() throws Exception {
        ClassMeta classMeta = null;
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        // given
        String typeName = null;
        // when
        boolean actual = target.isJavaLangPackageType(typeName);
        // then
        boolean expected = false;
        assertEquals(expected, actual);
    }
View Full Code Here

Examples of org.junithelper.core.extractor.AvailableTypeDetector

    }

    @Test
    public void isJavaLangPackageType_A$String_true() throws Exception {
        ClassMeta classMeta = null;
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        // given
        String typeName = "String";
        // when
        boolean actual = target.isJavaLangPackageType(typeName);
        // then
        boolean expected = true;
        assertEquals(expected, actual);
    }
View Full Code Here

Examples of org.junithelper.core.extractor.AvailableTypeDetector

    }

    @Test
    public void isJavaLangPackageType_A$String_false() throws Exception {
        ClassMeta classMeta = null;
        AvailableTypeDetector target = new AvailableTypeDetector(classMeta);
        // given
        String typeName = "List";
        // when
        boolean actual = target.isJavaLangPackageType(typeName);
        // then
        boolean expected = false;
        assertEquals(expected, actual);
    }
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.