Examples of ClassMeta


Examples of org.junithelper.core.meta.ClassMeta

    @Test
    public void extract_A$String_Enum_ContentType() throws Exception {
        ClassMetaExtractor target = new ClassMetaExtractor(config);
        String sourceCodeString = IOUtil.readAsString(IOUtil.getResourceAsStream("inputs/Enum_ContentType.txt"),
                "UTF-8");
        ClassMeta actual = target.extract(sourceCodeString);
        assertEquals("a.b.c", actual.packageName);
        assertEquals(false, actual.isAbstract);
        assertEquals(true, actual.isEnum);
        assertEquals("ContentType", actual.name);
        assertEquals(2, actual.methods.size());
View Full Code Here

Examples of org.junithelper.core.meta.ClassMeta

    @Test
    public void extract_A$String_StringIsEmpty() throws Exception {
        ClassMetaExtractor target = new ClassMetaExtractor(config);
        String sourceCodeString = "";
        ClassMeta actual = target.extract(sourceCodeString);
        assertThat(actual, notNullValue());
    }
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.