Package org.junithelper.core.extractor

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


    }

    @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

    }

    @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

    }

    @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

    }

    @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

    }

    @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

    }

    @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

    }

    @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

    }

    @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

    }

    @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

Related Classes of org.junithelper.core.extractor.AvailableTypeDetector

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.