+++ /dev/null
-{
- "tests": [
- {
- "name": "test1",
- "status": "OK",
- "durationInMs": 10
- },
- {
- "name": "test2",
- "status": "ERROR",
- "durationInMs": 97,
- "message": "expected:<true> but was:<false>",
- "stackTrace": "java.lang.AssertionError: expected:<true> but was:<false>\n\tat org.junit.Assert.fail(Assert.java:91)\n\tat org.junit.Assert.failNotEquals(Assert.java:645)\n\tat org.junit.Assert.assertEquals(Assert.java:126)\n\tat org.junit.Assert.assertEquals(Assert.java:145)\n"
- }
- ]
-}
package org.sonar.server.test.ws;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
}
@Test
- @Ignore
public void show_from_test_data() throws Exception {
MockUserSession.set().addComponentPermission(UserRole.CODEVIEWER, "SonarQube", TEST_PLAN_KEY);
.setTextValue("<tests-details>" +
"<testcase status=\"ok\" time=\"10\" name=\"test1\"/>" +
"<testcase status=\"error\" time=\"97\" name=\"test2\">" +
- "<error message=\"expected:<true> but was:<false>\">" +
+ "<error message=\"expected:<true> but was:<false>\">" +
"<![CDATA[" +
"java.lang.AssertionError: expected:<true> but was:<false>\n\t" +
"at org.junit.Assert.fail(Assert.java:91)\n\t" +
--- /dev/null
+{
+ "tests": [
+ {
+ "name": "test1",
+ "status": "OK",
+ "durationInMs": 10
+ },
+ {
+ "name": "test2",
+ "status": "ERROR",
+ "durationInMs": 97,
+ "message": "expected:<true> but was:<false>",
+ "stackTrace": "java.lang.AssertionError: expected:<true> but was:<false>\n\tat org.junit.Assert.fail(Assert.java:91)\n\tat org.junit.Assert.failNotEquals(Assert.java:645)\n\tat org.junit.Assert.assertEquals(Assert.java:126)\n\tat org.junit.Assert.assertEquals(Assert.java:145)\n"
+ }
+ ]
+}