diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2018-10-19 13:33:50 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-11-07 20:21:02 +0100 |
commit | 647a6bbfd4ec768467ba75c82977e88bea1e8e2e (patch) | |
tree | 9834ba24bd676608205f55fc982e738c3fc604a6 /sonar-scanner-engine/src | |
parent | d167e54bc36c509844afbc8030ae658f283cf6b6 (diff) | |
download | sonarqube-647a6bbfd4ec768467ba75c82977e88bea1e8e2e.tar.gz sonarqube-647a6bbfd4ec768467ba75c82977e88bea1e8e2e.zip |
SONAR-11367 Fix test
Diffstat (limited to 'sonar-scanner-engine/src')
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/scanner/sensor/DefaultSensorContextTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/sensor/DefaultSensorContextTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/sensor/DefaultSensorContextTest.java index dc58ee42d94..6d78060315d 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/sensor/DefaultSensorContextTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/sensor/DefaultSensorContextTest.java @@ -111,8 +111,8 @@ public class DefaultSensorContextTest { } @Test - public void shouldSkipDupsOnShortBranchesAndPullRequests() { - when(branchConfig.isShortOrPullRequest()).thenReturn(true); + public void shouldSkipDupsOnIssuesMode() { + when(analysisMode.isIssues()).thenReturn(true); assertThat(adaptor.newCpdTokens()).isEqualTo(DefaultSensorContext.NO_OP_NEW_CPD_TOKENS); } } |