aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2018-10-19 13:33:50 +0200
committerSonarTech <sonartech@sonarsource.com>2018-11-07 20:21:02 +0100
commit647a6bbfd4ec768467ba75c82977e88bea1e8e2e (patch)
tree9834ba24bd676608205f55fc982e738c3fc604a6 /sonar-scanner-engine/src
parentd167e54bc36c509844afbc8030ae658f283cf6b6 (diff)
downloadsonarqube-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.java4
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);
}
}