From: Julien Lancelot Date: Tue, 4 Jul 2017 14:46:02 +0000 (+0200) Subject: SONAR-9483 Fix ut compilation issue X-Git-Tag: 6.5-M2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=903e15d3f41f5dd9c10f9b95fb75e446122af163;p=sonarqube.git SONAR-9483 Fix ut compilation issue --- diff --git a/server/sonar-server/src/test/java/org/sonar/server/rule/ws/SearchActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/rule/ws/SearchActionTest.java index 4f9108f2256..43a69948204 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/rule/ws/SearchActionTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/rule/ws/SearchActionTest.java @@ -239,7 +239,7 @@ public class SearchActionTest { @Test public void when_searching_for_several_tags_combine_them_with_OR() throws IOException { - OrganizationDto organization = dbTester.organizations().insert(); + OrganizationDto organization = db.organizations().insert(); RuleDefinitionDto bothTagsRule = createJavaRule(); insertMetadata(organization, bothTagsRule, setTags("tag1", "tag2")); RuleDefinitionDto oneTagRule = createJavaRule(); @@ -316,9 +316,9 @@ public class SearchActionTest { @Test public void should_not_return_tags_of_foreign_organization() throws IOException { - OrganizationDto organizationWithSpecificTags = dbTester.organizations().insert(); - OrganizationDto myOrganization = dbTester.organizations().insert(); - RuleDefinitionDto rule = dbTester.rules().insert(setSystemTags("system1", "system2")); + OrganizationDto organizationWithSpecificTags = db.organizations().insert(); + OrganizationDto myOrganization = db.organizations().insert(); + RuleDefinitionDto rule = db.rules().insert(setSystemTags("system1", "system2")); insertMetadata(organizationWithSpecificTags, rule, setTags("tag1", "tag2")); indexRules();