Package org.apache.maven.surefire.util

Examples of org.apache.maven.surefire.util.ScanResult


        DependencyScanner scanner = new DependencyScanner(
                DependencyScanner.filter(Arrays.asList(artifact), scanDependencies),
                include, exclude, new ArrayList<String>() );

        ScanResult classNames = scanner.scan();
        assertNotNull( classNames );
        System.out.println( "classNames " + classNames.toString() );
        assertEquals( 1, classNames.size() );
        System.out.println(classNames.getClassName(0));

        Properties props = new Properties();
        classNames.writeTo( props );
        assertEquals( 1, props.size() );
    }
View Full Code Here


        List<String> exclude = new ArrayList<String>();

        DirectoryScanner surefireDirectoryScanner =
            new DirectoryScanner( baseDir, include, exclude, new ArrayList<String>() );

        ScanResult classNames = surefireDirectoryScanner.scan();
        assertNotNull( classNames );
        System.out.println( "classNames " + Arrays.asList( classNames ) );
        assertEquals( 3, classNames.size() );

        Properties props = new Properties();
        classNames.writeTo( props );
        assertEquals( 3, props.size() );
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.surefire.util.ScanResult

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.