aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client/src/test
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-12-07 10:47:02 +0000
committerGodin <mandrikov@gmail.com>2010-12-07 10:47:02 +0000
commita02e4a3754fd80a0ee47fa1349e017d1da1aec59 (patch)
treefb596731416ef28f5b27da40941bc4aa8b32b379 /sonar-ws-client/src/test
parent1eec109f39f6cb356da0b81bb2c312caea451ccb (diff)
downloadsonarqube-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.java6
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" }));
}
}