diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2018-04-25 17:19:28 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-04-26 20:20:53 +0200 |
commit | 557b62ed2730744c4493d164bf6d20a66e10bc49 (patch) | |
tree | 2222d6d876fb26fdc674774283b6609ca6db42c4 /server/sonar-db-dao | |
parent | 126f70ea1f80a6a74d1734655c1da799df07f774 (diff) | |
download | sonarqube-557b62ed2730744c4493d164bf6d20a66e10bc49.tar.gz sonarqube-557b62ed2730744c4493d164bf6d20a66e10bc49.zip |
SONAR-10544 Apply feedback
Diffstat (limited to 'server/sonar-db-dao')
-rw-r--r-- | server/sonar-db-dao/src/test/java/org/sonar/db/rule/RuleDaoTest.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/server/sonar-db-dao/src/test/java/org/sonar/db/rule/RuleDaoTest.java b/server/sonar-db-dao/src/test/java/org/sonar/db/rule/RuleDaoTest.java index 17f82225c37..03bad9b6c8b 100644 --- a/server/sonar-db-dao/src/test/java/org/sonar/db/rule/RuleDaoTest.java +++ b/server/sonar-db-dao/src/test/java/org/sonar/db/rule/RuleDaoTest.java @@ -537,7 +537,6 @@ public class RuleDaoTest { .setConfigKey("NewConfigKey") .setSeverity(Severity.INFO) .setIsTemplate(true) - .setIsExternal(true) .setLanguage("dart") .setTemplateId(3) .setDefRemediationFunction(DebtRemediationFunction.Type.LINEAR_OFFSET.toString()) @@ -563,7 +562,7 @@ public class RuleDaoTest { assertThat(ruleDto.getSeverity()).isEqualTo(0); assertThat(ruleDto.getLanguage()).isEqualTo("dart"); assertThat(ruleDto.isTemplate()).isTrue(); - assertThat(ruleDto.isExternal()).isTrue(); + assertThat(ruleDto.isExternal()).isFalse(); assertThat(ruleDto.getTemplateId()).isEqualTo(3); assertThat(ruleDto.getDefRemediationFunction()).isEqualTo("LINEAR_OFFSET"); assertThat(ruleDto.getDefRemediationGapMultiplier()).isEqualTo("5d"); @@ -834,10 +833,10 @@ public class RuleDaoTest { assertThat(firstRule.getType()).isEqualTo(r1.getType()); assertThat(firstRule.getCreatedAt()).isEqualTo(r1.getCreatedAt()); assertThat(firstRule.getUpdatedAt()).isEqualTo(r1.getUpdatedAt()); - + RuleForIndexingDto secondRule = it.next(); assertThat(secondRule.isExternal()).isTrue(); - + } @Test @@ -988,8 +987,7 @@ public class RuleDaoTest { .extracting(DeprecatedRuleKeyDto::getNewRepositoryKey, DeprecatedRuleKeyDto::getNewRuleKey) .containsExactly( tuple(null, null), - tuple(null, null) - ); + tuple(null, null)); } @Test @@ -1019,7 +1017,7 @@ public class RuleDaoTest { @Test public void deleteDeprecatedRuleKeys() { DeprecatedRuleKeyDto deprecatedRuleKeyDto1 = db.rules().insertDeprecatedKey(); - db.rules().insertDeprecatedKey();; + db.rules().insertDeprecatedKey(); assertThat(underTest.selectAllDeprecatedRuleKeys(db.getSession())).hasSize(2); |