From 236840051693278ab5438711a81ad13c47c4656f Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 16 Aug 2018 11:53:51 +0200 Subject: SONAR-11137 Fix ITs and add documentation --- .../src/main/java/org/sonar/server/source/ws/LinesAction.java | 1 + .../resources/org/sonar/server/source/ws/lines-example.json | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'server') diff --git a/server/sonar-server/src/main/java/org/sonar/server/source/ws/LinesAction.java b/server/sonar-server/src/main/java/org/sonar/server/source/ws/LinesAction.java index d4a0ab06ad0..bd5857ba362 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/source/ws/LinesAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/source/ws/LinesAction.java @@ -86,6 +86,7 @@ public class LinesAction implements SourcesWsAction { "
  • Line hits from coverage
  • " + "
  • Number of conditions to cover in tests
  • " + "
  • Number of conditions covered by tests
  • " + + "
  • Whether the line is new
  • " + "") .setSince("5.0") .setInternal(true) diff --git a/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json b/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json index 3cdfdd6a4e3..32c2b3ab91b 100644 --- a/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json +++ b/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json @@ -1,10 +1,10 @@ { "sources": [ - {"line": 20, "code": "package org.sonar.check;", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"], + {"line": 20, "code": "package org.sonar.check;", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false], {"line": 21, "code":"", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"], - {"line": 22, "code":"public enum Priority {", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"], - {"line": 23, "code":" /**", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"], - {"line": 24, "code":" * WARNING : DO NOT CHANGE THE ENUMERATION ORDER", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"], - {"line": 25, "code":" * the enum ordinal is used for db persistence", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"] + {"line": 22, "code":"public enum Priority {", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":true], + {"line": 23, "code":" /**", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false], + {"line": 24, "code":" * WARNING : DO NOT CHANGE THE ENUMERATION ORDER", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false], + {"line": 25, "code":" * the enum ordinal is used for db persistence", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false] ] } -- cgit v1.2.3