diff options
author | Godin <mandrikov@gmail.com> | 2010-12-07 10:47:02 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-12-07 10:47:02 +0000 |
commit | a02e4a3754fd80a0ee47fa1349e017d1da1aec59 (patch) | |
tree | fb596731416ef28f5b27da40941bc4aa8b32b379 /sonar-ws-client/src/test | |
parent | 1eec109f39f6cb356da0b81bb2c312caea451ccb (diff) | |
download | sonarqube-a02e4a3754fd80a0ee47fa1349e017d1da1aec59.tar.gz sonarqube-a02e4a3754fd80a0ee47fa1349e017d1da1aec59.zip |
SONAR-2024: Fix operations with generic types
Diffstat (limited to 'sonar-ws-client/src/test')
-rw-r--r-- | sonar-ws-client/src/test/java/org/sonar/wsclient/services/ResourceQueryTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
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" })); } } |