diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-03-20 16:28:49 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-03-20 17:43:21 +0100 |
commit | b68ea730e96bed09e7a9dd4a102fa8cc94d8f416 (patch) | |
tree | 3177022362eac3f583ce4001cd58c38bc073814a /server/sonar-web/src/test/json | |
parent | 66de27e8ad72f9f7c236d545d7c75f2c9c8399e6 (diff) | |
download | sonarqube-b68ea730e96bed09e7a9dd4a102fa8cc94d8f416.tar.gz sonarqube-b68ea730e96bed09e7a9dd4a102fa8cc94d8f416.zip |
SONAR-6215 apply feedback
Diffstat (limited to 'server/sonar-web/src/test/json')
-rw-r--r-- | server/sonar-web/src/test/json/workspace/app.json | 24 | ||||
-rw-r--r-- | server/sonar-web/src/test/json/workspace/issues.json | 9 | ||||
-rw-r--r-- | server/sonar-web/src/test/json/workspace/lines.json | 72 |
3 files changed, 105 insertions, 0 deletions
diff --git a/server/sonar-web/src/test/json/workspace/app.json b/server/sonar-web/src/test/json/workspace/app.json new file mode 100644 index 00000000000..e8b7516ee3c --- /dev/null +++ b/server/sonar-web/src/test/json/workspace/app.json @@ -0,0 +1,24 @@ +{ + "uuid": "12345", + "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java", + "path": "src/main/java/org/sonar/batch/index/Cache.java", + "name": "Cache.java", + "longName": "src/main/java/org/sonar/batch/index/Cache.java", + "q": "FIL", + "subProject": "org.codehaus.sonar:sonar-batch", + "subProjectName": "SonarQube :: Batch", + "project": "org.codehaus.sonar:sonar", + "projectName": "SonarQube", + "fav": false, + "canMarkAsFavourite": false, + "canCreateManualIssue": false, + "measures": { + "lines": "378", + "coverage": "74.3%", + "duplicationDensity": "5.8%", + "debt": "2h 10min", + "sqaleRating": "A", + "debtRatio": "1.1%", + "issues": "6" + } +} diff --git a/server/sonar-web/src/test/json/workspace/issues.json b/server/sonar-web/src/test/json/workspace/issues.json new file mode 100644 index 00000000000..bc18adc855a --- /dev/null +++ b/server/sonar-web/src/test/json/workspace/issues.json @@ -0,0 +1,9 @@ +{ + "total": 0, + "p": 1, + "ps": 100, + "issues": [], + "rules": [], + "users": [], + "languages": [] +} diff --git a/server/sonar-web/src/test/json/workspace/lines.json b/server/sonar-web/src/test/json/workspace/lines.json new file mode 100644 index 00000000000..ff06641ec93 --- /dev/null +++ b/server/sonar-web/src/test/json/workspace/lines.json @@ -0,0 +1,72 @@ +{"sources": [ + { + "line": 1, + "code": "<span class=\"cppd\">/*</span>", + "scmAuthor": "simon.brandhof@gmail.com", + "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb", + "scmDate": "2013-04-16T17:26:34+0200" + }, + { + "line": 2, + "code": "<span class=\"cppd\"> * SonarQube, open source software quality management tool.</span>", + "scmAuthor": "simon.brandhof@gmail.com", + "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec", + "scmDate": "2013-04-21T11:58:14+0200" + }, + { + "line": 3, + "code": "<span class=\"cppd\"> * Copyright (C) 2008-2014 SonarSource</span>", + "scmAuthor": "simon.brandhof@gmail.com", + "scmRevision": "57ae3026c36ae3b0b71756d6161124b1ae594c53", + "scmDate": "2014-03-11T17:52:41+0100" + }, + { + "line": 4, + "code": "<span class=\"cppd\"> * mailto:contact AT sonarsource DOT com</span>", + "scmAuthor": "simon.brandhof@gmail.com", + "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb", + "scmDate": "2013-04-16T17:26:34+0200" + }, + { + "line": 5, + "code": "<span class=\"cppd\"> *</span>", + "scmAuthor": "simon.brandhof@gmail.com", + "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb", + "scmDate": "2013-04-16T17:26:34+0200" + }, + { + "line": 6, + "code": "<span class=\"cppd\"> * SonarQube is free software; you can redistribute it and/or</span>", + "scmAuthor": "simon.brandhof@gmail.com", + "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec", + "scmDate": "2013-04-21T11:58:14+0200" + }, + { + "line": 7, + "code": "<span class=\"cppd\"> * modify it under the terms of the GNU Lesser General Public</span>", + "scmAuthor": "simon.brandhof@gmail.com", + "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb", + "scmDate": "2013-04-16T17:26:34+0200" + }, + { + "line": 8, + "code": "<span class=\"cppd\"> * License as published by the Free Software Foundation; either</span>", + "scmAuthor": "simon.brandhof@gmail.com", + "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb", + "scmDate": "2013-04-16T17:26:34+0200" + }, + { + "line": 9, + "code": "<span class=\"cppd\"> * version 3 of the License, or (at your option) any later version.</span>", + "scmAuthor": "simon.brandhof@gmail.com", + "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb", + "scmDate": "2013-04-16T17:26:34+0200" + }, + { + "line": 10, + "code": "<span class=\"cppd\"> *</span>", + "scmAuthor": "simon.brandhof@gmail.com", + "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb", + "scmDate": "2013-04-16T17:26:34+0200" + } +]} |