From a02e4a3754fd80a0ee47fa1349e017d1da1aec59 Mon Sep 17 00:00:00 2001 From: Godin Date: Tue, 7 Dec 2010 10:47:02 +0000 Subject: SONAR-2024: Fix operations with generic types --- .../test/java/org/sonar/wsclient/services/ResourceQueryTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sonar-ws-client/src/test') diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/services/ResourceQueryTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/services/ResourceQueryTest.java index 4c180bd240f..6581518d4bf 100644 --- a/sonar-ws-client/src/test/java/org/sonar/wsclient/services/ResourceQueryTest.java +++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/services/ResourceQueryTest.java @@ -41,7 +41,7 @@ public class ResourceQueryTest { query.setMetrics("loc", "coverage", "lines"); assertThat(query.getUrl(), is("/api/resources?metrics=loc,coverage,lines&verbose=false&")); assertThat(query.getResourceKeyOrId(), nullValue()); - assertThat(query.getMetrics(), is(new String[]{"loc", "coverage", "lines"})); + assertThat(query.getMetrics(), is(new String[] { "loc", "coverage", "lines" })); } @Test @@ -62,7 +62,7 @@ public class ResourceQueryTest { @Test public void measuresOnRulePriorities() { ResourceQuery query = new ResourceQuery().setMetrics("violations"); - query.setRulePriorities("MAJOR,MINOR"); + query.setRuleSeverities("MAJOR,MINOR"); assertThat(query.getUrl(), is("/api/resources?metrics=violations&rule_priorities=MAJOR,MINOR&verbose=false&")); } @@ -71,6 +71,6 @@ public class ResourceQueryTest { public void build() { ResourceQuery query = ResourceQuery.createForMetrics("org.foo", "ncloc", "lines"); assertThat(query.getResourceKeyOrId(), is("org.foo")); - assertThat(query.getMetrics(), is(new String[]{"ncloc", "lines"})); + assertThat(query.getMetrics(), is(new String[] { "ncloc", "lines" })); } } -- cgit v1.2.3