diff options
author | Janos Gyerik <janos.gyerik@sonarsource.com> | 2017-01-31 17:10:15 +0100 |
---|---|---|
committer | dbmeneses <duarte.meneses@sonarsource.com> | 2017-01-31 18:11:25 +0100 |
commit | 75253f80b38dfc106971011e8aacc6ea117b11c4 (patch) | |
tree | 4e1a3fc2784ce68e343d94c5670518fe0797c7f4 /plugins/sonar-xoo-plugin | |
parent | f4e4e1f30da63c41701e237f92d55171c7d5b927 (diff) | |
download | sonarqube-75253f80b38dfc106971011e8aacc6ea117b11c4.tar.gz sonarqube-75253f80b38dfc106971011e8aacc6ea117b11c4.zip |
Fix assertions in Xoo
Diffstat (limited to 'plugins/sonar-xoo-plugin')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/XooPluginTest.java | 4 | ||||
-rw-r--r-- | plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/XooPluginTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/XooPluginTest.java index b8e8441b919..e0b4d9101a3 100644 --- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/XooPluginTest.java +++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/XooPluginTest.java @@ -36,7 +36,7 @@ public class XooPluginTest { SonarRuntime runtime = SonarRuntimeImpl.forSonarLint(Version.parse("5.4")); Plugin.Context context = new Plugin.Context(runtime); new XooPlugin().define(context); - assertThat(context.getExtensions()).hasSize(43).doesNotContain(CpdTokenizerSensor.class); + assertThat(context.getExtensions()).hasSize(44).doesNotContain(CpdTokenizerSensor.class); } @Test @@ -44,6 +44,6 @@ public class XooPluginTest { SonarRuntime runtime = SonarRuntimeImpl.forSonarQube(Version.parse("5.5"), SonarQubeSide.SCANNER); Plugin.Context context = new Plugin.Context(runtime); new XooPlugin().define(context); - assertThat(context.getExtensions()).hasSize(46).contains(CpdTokenizerSensor.class); + assertThat(context.getExtensions()).hasSize(47).contains(CpdTokenizerSensor.class); } } diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java index e298ebbce0a..0eb766bfec0 100644 --- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java +++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java @@ -42,7 +42,7 @@ public class XooRulesDefinitionTest { assertThat(repo).isNotNull(); assertThat(repo.name()).isEqualTo("Xoo"); assertThat(repo.language()).isEqualTo("xoo"); - assertThat(repo.rules()).hasSize(16); + assertThat(repo.rules()).hasSize(17); RulesDefinition.Rule rule = repo.rule(OneIssuePerLineSensor.RULE_KEY); assertThat(rule.name()).isNotEmpty(); |