diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2014-03-14 11:12:39 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2014-03-14 12:44:02 +0100 |
commit | 4149bcb700a85338effe3d9efe94354467af7207 (patch) | |
tree | 68d5fd67aa6b383217577a7b89e04550f36040fb /sonar-batch/src/test/java/org/sonar/batch/scan | |
parent | af03cde80a12ac335c3be04c24f5d099b2e84013 (diff) | |
download | sonarqube-4149bcb700a85338effe3d9efe94354467af7207.tar.gz sonarqube-4149bcb700a85338effe3d9efe94354467af7207.zip |
SONAR-4790 replace static factory FilePredicates by FileSystem#predicates()
Conflicts:
sonar-plugin-api/src/test/java/org/sonar/api/batch/fs/FilePredicatesTest.java
Diffstat (limited to 'sonar-batch/src/test/java/org/sonar/batch/scan')
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java b/sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java index 4c477cdc6f1..594a777095d 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java @@ -26,7 +26,6 @@ import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; import org.mockito.Mockito; import org.sonar.api.CoreProperties; -import org.sonar.api.batch.fs.FilePredicates; import org.sonar.api.batch.fs.InputFile; import org.sonar.api.batch.fs.internal.DefaultInputFile; import org.sonar.api.config.Settings; @@ -38,7 +37,10 @@ import java.nio.charset.Charset; import java.util.Arrays; import static org.fest.assertions.Assertions.assertThat; -import static org.mockito.Mockito.*; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.verifyZeroInteractions; +import static org.mockito.Mockito.when; public class DefaultModuleFileSystemTest { @@ -163,10 +165,10 @@ public class DefaultModuleFileSystemTest { when(moduleInputFileCache.inputFiles()).thenReturn(Lists.newArrayList(mainInput, testInput)); fs.index(); - Iterable<InputFile> inputFiles = fs.inputFiles(FilePredicates.hasType(InputFile.Type.MAIN)); + Iterable<InputFile> inputFiles = fs.inputFiles(fs.predicates().hasType(InputFile.Type.MAIN)); assertThat(inputFiles).containsOnly(mainInput); - Iterable<File> files = fs.files(FilePredicates.hasType(InputFile.Type.MAIN)); + Iterable<File> files = fs.files(fs.predicates().hasType(InputFile.Type.MAIN)); assertThat(files).containsOnly(mainFile); } |