Package org.junithelper.core.extractor

Examples of org.junithelper.core.extractor.ImportedListExtractor.extract()


        Configuration config = new Configuration();
        ImportedListExtractor target = new ImportedListExtractor(config);
        // given
        String sourceCodeString = "package foo.var; import java.util.List; import java.io.InputStream; public class Sample { }";
        // when
        List<String> actual = target.extract(sourceCodeString);
        // then
        assertEquals(2, actual.size());
    }

    @Test
View Full Code Here


    public void extract_A$String_StringIsNull() throws Exception {
        Configuration config = new Configuration();
        ImportedListExtractor target = new ImportedListExtractor(config);
        String sourceCodeString = null;
        try {
            target.extract(sourceCodeString);
            fail();
        } catch (JUnitHelperCoreException e) {
        }
    }
View Full Code Here

    @Test
    public void extract_A$String_StringIsEmpty() throws Exception {
        Configuration config = new Configuration();
        ImportedListExtractor target = new ImportedListExtractor(config);
        String sourceCodeString = "";
        List<String> 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.