diff options
author | Godin <mandrikov@gmail.com> | 2010-12-06 18:47:39 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-12-06 18:47:39 +0000 |
commit | 94df7f69d0d536cc32bb5fd8bbf445cd0ac552fc (patch) | |
tree | 5b478a972d2659909de786a4fd9e1c84e65faec0 /sonar-ws-client/src/test/java | |
parent | 3d4fc89dcb178c5f7188dd34f05fee580bc3906f (diff) | |
download | sonarqube-94df7f69d0d536cc32bb5fd8bbf445cd0ac552fc.tar.gz sonarqube-94df7f69d0d536cc32bb5fd8bbf445cd0ac552fc.zip |
SONAR-1829: Rename the term "Priority" by "Severity" for rules in sonar-ws-client
Diffstat (limited to 'sonar-ws-client/src/test/java')
-rw-r--r-- | sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshallerTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
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(), |