Package org.sonar.api.scan.filesystem

Examples of org.sonar.api.scan.filesystem.ModuleFileSystem.sourceDirs()


  public static ModuleFileSystem mockFileSystem(File baseDir,
                                                List<File> sourceDirs, List<File> testDirs) {
    ModuleFileSystem fs = mock(ModuleFileSystem.class);
    when(fs.sourceCharset()).thenReturn(Charset.forName("UTF-8"));
    when(fs.baseDir()).thenReturn(baseDir);
    when(fs.sourceDirs()).thenReturn(sourceDirs);
    when(fs.testDirs()).thenReturn(testDirs);

    List<File> mainSourceFiles = scanForSourceFiles(sourceDirs);
    List<File> testSourceFiles = scanForSourceFiles(testDirs);
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.