aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-07-12 08:17:24 +0200
committerDavid Gageot <david@gageot.net>2012-07-12 17:21:01 +0200
commitff40d72923a6b480ee0d4795ba8ed417d079baf1 (patch)
treea723cd4612b925ad3cf669cc3ca10bfc05f60f59 /plugins
parentb5f52d01f06c94bd179e6eba6c86180199734735 (diff)
downloadsonarqube-ff40d72923a6b480ee0d4795ba8ed417d079baf1.tar.gz
sonarqube-ff40d72923a6b480ee0d4795ba8ed417d079baf1.zip
Improve test code
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/DefaultResourcePermissionsTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/DefaultResourcePermissionsTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/DefaultResourcePermissionsTest.java
index 319c9b1d27e..9d098414fbb 100644
--- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/DefaultResourcePermissionsTest.java
+++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/DefaultResourcePermissionsTest.java
@@ -42,7 +42,7 @@ public class DefaultResourcePermissionsTest extends AbstractDaoTestCase {
// do not insert duplicated rows
permissions.grantGroupRole(project, "sonar-administrators", "admin");
- checkColumns("grantGroupRole", "group_roles", "group_id", "resource_id", "role");
+ checkTables("grantGroupRole", new String[] {"id"}, "group_roles");
}
@Test
@@ -86,7 +86,7 @@ public class DefaultResourcePermissionsTest extends AbstractDaoTestCase {
// do not insert duplicated rows
permissions.grantUserRole(project, "marius", "admin");
- checkColumns("grantUserRole", "user_roles", "user_id", "resource_id", "role");
+ checkTables("grantUserRole", new String[] {"id"}, "user_roles");
}
@Test
@@ -151,4 +151,4 @@ public class DefaultResourcePermissionsTest extends AbstractDaoTestCase {
// does not exist
assertThat(permissions.hasRoles(new Project("not_found"))).isFalse();
}
-} \ No newline at end of file
+}