Package org.sonar.api.resources

Examples of org.sonar.api.resources.InputFile


  }

  private static Project mockProjectWithSomeFiles(String languageKey) {
    Project project = TestUtils.mockProject();
    List<InputFile> listofFiles = new LinkedList<InputFile>();
    InputFile inputFile = mock(InputFile.class);
    listofFiles.add(0, inputFile);
    when(project.getLanguageKey()).thenReturn(languageKey);
    when(project.getFileSystem().mainFiles(languageKey)).thenReturn(listofFiles);
    return project;
  }
View Full Code Here


  }

  private static List<InputFile> fromSourceFiles(List<File> sourceFiles) {
    List<InputFile> result = new ArrayList<InputFile>();
    for (File file : sourceFiles) {
      InputFile inputFile = mock(InputFile.class);
      when(inputFile.getFile()).thenReturn(new File(file, ""));
      result.add(inputFile);
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of org.sonar.api.resources.InputFile

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.