]> source.dussan.org Git - sonarqube.git/commitdiff
Fix SearchActionMediumTest (which worked until hardcoded date 2014-12-04)
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 4 Dec 2014 08:39:13 +0000 (09:39 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 4 Dec 2014 08:39:13 +0000 (09:39 +0100)
Workaround is not good at all (postponed the date). Waiting for removal of formatted dates in ws response.

server/sonar-server/src/test/java/org/sonar/server/issue/ws/SearchActionMediumTest.java
server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/issue.json
server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/issue_linked_on_removed_file.json
server/sonar-server/src/test/resources/org/sonar/server/issue/ws/SearchActionMediumTest/issues_on_different_projects.json

index 578c3a17ccf0fd2d4c6db9eefded193b7d6c6f69..83a4641e9d345d2ec51293a8c38a34470b900851 100644 (file)
@@ -158,7 +158,7 @@ public class SearchActionMediumTest {
       .setReporter("fabrice")
       .setActionPlanKey("AP-ABCD")
       .setIssueCreationDate(DateUtils.parseDate("2014-09-04"))
-      .setIssueUpdateDate(DateUtils.parseDate("2014-12-04"));
+      .setIssueUpdateDate(DateUtils.parseDate("2017-12-04"));
     db.issueDao().insert(session, issue);
     session.commit();
 
@@ -176,7 +176,7 @@ public class SearchActionMediumTest {
       .setStatus("OPEN").setResolution("OPEN")
       .setSeverity("MAJOR")
       .setIssueCreationDate(DateUtils.parseDate("2014-09-04"))
-      .setIssueUpdateDate(DateUtils.parseDate("2014-12-04"));
+      .setIssueUpdateDate(DateUtils.parseDate("2017-12-04"));
     db.issueDao().insert(session, issue);
 
     ComponentDto project2 = ComponentTesting.newProjectDto().setUuid("DBCA").setProjectUuid("DBCA")
@@ -200,7 +200,7 @@ public class SearchActionMediumTest {
       .setStatus("OPEN").setResolution("OPEN")
       .setSeverity("MAJOR")
       .setIssueCreationDate(DateUtils.parseDate("2014-09-04"))
-      .setIssueUpdateDate(DateUtils.parseDate("2014-12-04"));
+      .setIssueUpdateDate(DateUtils.parseDate("2017-12-04"));
     db.issueDao().insert(session, issue2);
 
     session.commit();
@@ -312,7 +312,7 @@ public class SearchActionMediumTest {
       .setStatus("OPEN").setResolution("OPEN")
       .setSeverity("MAJOR")
       .setIssueCreationDate(DateUtils.parseDate("2014-09-04"))
-      .setIssueUpdateDate(DateUtils.parseDate("2014-12-04"));
+      .setIssueUpdateDate(DateUtils.parseDate("2017-12-04"));
     db.issueDao().insert(session, issue);
     session.commit();
 
@@ -436,7 +436,7 @@ public class SearchActionMediumTest {
   public void display_facets() throws Exception {
     IssueDto issue = IssueTesting.newDto(rule, file, project)
       .setIssueCreationDate(DateUtils.parseDate("2014-09-04"))
-      .setIssueUpdateDate(DateUtils.parseDate("2014-12-04"))
+      .setIssueUpdateDate(DateUtils.parseDate("2017-12-04"))
       .setDebt(10L)
       .setStatus("OPEN")
       .setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2")
@@ -455,7 +455,7 @@ public class SearchActionMediumTest {
   public void hide_rules() throws Exception {
     IssueDto issue = IssueTesting.newDto(rule, file, project)
       .setIssueCreationDate(DateUtils.parseDate("2014-09-04"))
-      .setIssueUpdateDate(DateUtils.parseDate("2014-12-04"))
+      .setIssueUpdateDate(DateUtils.parseDate("2017-12-04"))
       .setDebt(10L)
       .setStatus("OPEN")
       .setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2")
index ce1dbd12f71dc940c21c93bc90b59c52e26e36e2..f8b21d5396bdbdce7cbb27e7af31e712f6502184 100644 (file)
@@ -17,7 +17,7 @@
       "assignee": "simon",
       "reporter": "fabrice",
       "actionPlan": "AP-ABCD",
-      "updateDate": "2014-12-04T00:00:00+0100",
+      "updateDate": "2017-12-04T00:00:00+0100",
       "fUpdateAge": "less than a minute"
     }
   ],
index 78eb3deaf01ac4dcc6686d3d670dc8df2256a417..1538300ea9ae6d3e0bf089969746de3a2ca5beac 100644 (file)
@@ -8,7 +8,7 @@
       "status": "OPEN",
       "resolution": "OPEN",
       "severity": "MAJOR",
-      "updateDate": "2014-12-04T00:00:00+0100",
+      "updateDate": "2017-12-04T00:00:00+0100",
       "fUpdateAge": "less than a minute"
     }
   ],
index 521cd834b2e622575e9d7e6b6d478c4fbeeaecce..59e9bd71cc0e63cffe16fa08817d6baa0fd45f27 100644 (file)
@@ -8,7 +8,7 @@
       "status": "OPEN",
       "resolution": "OPEN",
       "severity": "MAJOR",
-      "updateDate": "2014-12-04T00:00:00+0100",
+      "updateDate": "2017-12-04T00:00:00+0100",
       "fUpdateAge": "less than a minute"
     },
     {
@@ -19,7 +19,7 @@
       "status": "OPEN",
       "resolution": "OPEN",
       "severity": "MAJOR",
-      "updateDate": "2014-12-04T00:00:00+0100",
+      "updateDate": "2017-12-04T00:00:00+0100",
       "fUpdateAge": "less than a minute"
     }
   ],