From a0f2105b46566f5bea0da5915e923fc20fd31eda Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Fri, 4 Aug 2017 15:33:05 +0200 Subject: SONAR-9576 More simple predicate to skip default status filter --- .../org/sonar/scanner/scan/filesystem/SameInputFilePredicateTest.java | 1 + 1 file changed, 1 insertion(+) (limited to 'sonar-scanner-engine/src') diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/SameInputFilePredicateTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/SameInputFilePredicateTest.java index 049f576d84d..0597befba70 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/SameInputFilePredicateTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/SameInputFilePredicateTest.java @@ -46,6 +46,7 @@ public class SameInputFilePredicateTest { public void testHasExplicitFilterOnStatus() { assertThat(SameInputFilePredicate.hasExplicitFilterOnStatus(predicates.all())).isFalse(); assertThat(SameInputFilePredicate.hasExplicitFilterOnStatus(predicates.hasStatus(InputFile.Status.ADDED))).isTrue(); + assertThat(SameInputFilePredicate.hasExplicitFilterOnStatus(predicates.hasAnyStatus())).isTrue(); assertThat(SameInputFilePredicate.hasExplicitFilterOnStatus(predicates.and(predicates.all(), predicates.hasStatus(InputFile.Status.ADDED)))).isTrue(); } } -- cgit v1.2.3