From 94df7f69d0d536cc32bb5fd8bbf445cd0ac552fc Mon Sep 17 00:00:00 2001 From: Godin Date: Mon, 6 Dec 2010 18:47:39 +0000 Subject: SONAR-1829: Rename the term "Priority" by "Severity" for rules in sonar-ws-client --- .../wsclient/unmarshallers/ViolationUnmarshallerTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sonar-ws-client/src/test/java') diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshallerTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshallerTest.java index 7eb1e1aaf7b..4f2feefd4a5 100644 --- a/sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshallerTest.java +++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshallerTest.java @@ -19,12 +19,6 @@ */ package org.sonar.wsclient.unmarshallers; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.nullValue; -import static org.hamcrest.Matchers.notNullValue; -import static org.hamcrest.core.IsNot.not; -import static org.junit.Assert.assertThat; - import org.apache.commons.io.IOUtils; import org.junit.Test; import org.sonar.wsclient.services.Violation; @@ -32,6 +26,12 @@ import org.sonar.wsclient.services.Violation; import java.io.IOException; import java.util.List; +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.CoreMatchers.nullValue; +import static org.hamcrest.Matchers.notNullValue; +import static org.hamcrest.core.IsNot.not; +import static org.junit.Assert.assertThat; + public class ViolationUnmarshallerTest { @Test @@ -46,7 +46,7 @@ public class ViolationUnmarshallerTest { assertThat(violation.getMessage(), is("throw java.lang.Exception")); assertThat(violation.getLine(), is(97)); assertThat(violation.getCreatedAt(), notNullValue()); - assertThat(violation.getPriority(), is("MAJOR")); + assertThat(violation.getSeverity(), is("MAJOR")); assertThat(violation.getRuleKey(), is("pmd:SignatureDeclareThrowsException")); assertThat(violation.getRuleName(), is("Signature Declare Throws Exception")); assertThat(violation.getResourceKey(), -- cgit v1.2.3