diff options
author | Zipeng WU <zipeng.wu@sonarsource.com> | 2022-02-24 17:40:25 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-02-26 20:02:50 +0000 |
commit | 30b3456935e069ae51179ea33ea6b57f42bf1d46 (patch) | |
tree | 96ab00efcb033f8c31261a761cac356981d4b641 /sonar-plugin-api-impl/src/test/java | |
parent | 765ac490d9bb24d575f331b4fbb2b5d2f6654319 (diff) | |
download | sonarqube-30b3456935e069ae51179ea33ea6b57f42bf1d46.tar.gz sonarqube-30b3456935e069ae51179ea33ea6b57f42bf1d46.zip |
SONAR-16064 new API in SensorContext to indicate possibility to skip unchanged files
Diffstat (limited to 'sonar-plugin-api-impl/src/test/java')
-rw-r--r-- | sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/sensor/internal/SensorContextTesterTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/sensor/internal/SensorContextTesterTest.java b/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/sensor/internal/SensorContextTesterTest.java index 6d30694829b..eb61b3a55d4 100644 --- a/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/sensor/internal/SensorContextTesterTest.java +++ b/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/sensor/internal/SensorContextTesterTest.java @@ -75,6 +75,13 @@ public class SensorContextTesterTest { } @Test + public void test_canSkipUnchangedFiles() { + assertThat(tester.canSkipUnchangedFiles()).isFalse(); + tester.setCanSkipUnchangedFiles(true); + assertThat(tester.canSkipUnchangedFiles()).isTrue(); + } + + @Test public void testActiveRules() { NewActiveRule activeRule = new NewActiveRule.Builder() .setRuleKey(RuleKey.of("foo", "bar")) |