Package fi.jumi.core.config

Examples of fi.jumi.core.config.SuiteConfigurationBuilder


    public void looks_for_tests_from_directories_on_classpath() throws IOException {
        Path libraryJar = tryRepeatedly(() -> tempDir.newFile("library.jar").toPath());
        Path folder1 = tryRepeatedly(() -> tempDir.newFolder("folder1").toPath());
        Path folder2 = tryRepeatedly(() -> tempDir.newFolder("folder2").toPath());

        SuiteConfigurationBuilder suite = new SuiteConfigurationBuilder()
                .setIncludedTestsPattern("glob:the pattern")
                .addToClasspath(libraryJar)
                .addToClasspath(folder1)
                .addToClasspath(folder2);

        List<Path> classesDirectories = SuiteFactory.getClassDirectories(suite.freeze());
        assertThat(classesDirectories, contains(folder1, folder2));
    }
View Full Code Here

TOP

Related Classes of fi.jumi.core.config.SuiteConfigurationBuilder

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.