diff options
Diffstat (limited to 'sonar-scanner-engine/src/test/java/org/sonar/batch')
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/batch/issue/TrackedIssueAdapterTest.java | 6 | ||||
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/batch/scan/report/JSONReportTest.java | 7 |
2 files changed, 4 insertions, 9 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/batch/issue/TrackedIssueAdapterTest.java b/sonar-scanner-engine/src/test/java/org/sonar/batch/issue/TrackedIssueAdapterTest.java index d1a9a723897..f87035fa719 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/batch/issue/TrackedIssueAdapterTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/batch/issue/TrackedIssueAdapterTest.java @@ -42,7 +42,6 @@ public class TrackedIssueAdapterTest { .setGap(2.0) .setStatus("RESOLVED") .setResolution("FIXED") - .setReporter("toto") .setAssignee("tata") .setNew(true) .setCreationDate(creationDate); @@ -53,10 +52,9 @@ public class TrackedIssueAdapterTest { assertThat(issue.severity()).isEqualTo("MAJOR"); assertThat(issue.message()).isEqualTo("msg"); assertThat(issue.line()).isEqualTo(1); - assertThat(issue.effortToFix()).isEqualTo(2.0); + assertThat(issue.gap()).isEqualTo(2.0); assertThat(issue.status()).isEqualTo("RESOLVED"); assertThat(issue.resolution()).isEqualTo("FIXED"); - assertThat(issue.reporter()).isEqualTo("toto"); assertThat(issue.assignee()).isEqualTo("tata"); assertThat(issue.isNew()).isTrue(); assertThat(issue.attribute("foo")).isNull(); @@ -66,7 +64,7 @@ public class TrackedIssueAdapterTest { assertThat(issue.closeDate()).isNull(); assertThat(issue.authorLogin()).isNull(); assertThat(issue.comments()).isEmpty(); - assertThat(issue.debt()).isNull(); + assertThat(issue.effort()).isNull(); assertThat(issue.projectKey()).isNull(); assertThat(issue.projectUuid()).isNull(); assertThat(issue.componentUuid()).isNull(); diff --git a/sonar-scanner-engine/src/test/java/org/sonar/batch/scan/report/JSONReportTest.java b/sonar-scanner-engine/src/test/java/org/sonar/batch/scan/report/JSONReportTest.java index da798a2dbf1..03cc40cc3a2 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/batch/scan/report/JSONReportTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/batch/scan/report/JSONReportTest.java @@ -112,15 +112,12 @@ public class JSONReportTest { issue.setStartLineOffset(3); issue.setEndLineOffset(4); issue.setGap(3.14); - issue.setReporter("julien"); issue.setAssignee("simon"); issue.setCreationDate(SIMPLE_DATE_FORMAT.parse("2013-04-24")); issue.setNew(false); when(issueCache.all()).thenReturn(Lists.newArrayList(issue)); - ScannerInput.User user1 = ScannerInput.User.newBuilder().setLogin("julien").setName("Julien").build(); - ScannerInput.User user2 = ScannerInput.User.newBuilder().setLogin("simon").setName("Simon").build(); - when(userRepository.load("julien")).thenReturn(user1); - when(userRepository.load("simon")).thenReturn(user2); + ScannerInput.User user = ScannerInput.User.newBuilder().setLogin("simon").setName("Simon").build(); + when(userRepository.load("simon")).thenReturn(user); StringWriter writer = new StringWriter(); jsonReport.writeJson(writer); |