Skip to content

Commit

Permalink
#10208 - fixed build error
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancornita committed Oct 11, 2022
1 parent 36f89b9 commit c5bac66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public SampleReport fromDto(@NotNull SampleReportDto source, ExternalMessage lab
if (source.getTestReports() != null) {
List<TestReport> testReports = new ArrayList<>();
for (TestReportDto t : source.getTestReports()) {
TestReport testReport = testReportFacade.fromDto(t, target, false);
TestReport testReport = testReportFacade.fromDto(t, false);
testReports.add(testReport);
}
target.setTestReports(testReports);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void testFromDto() {
User assignee = new User();
assignee.setUuid("12345");

when(testReportFacade.fillOrBuildEntity(eq(testReportDto), any(ExternalMessage.class), eq(false))).thenReturn(testReport);
when(sampleReportFacade.fromDto(eq(sampleReportDto), any(ExternalMessage.class), eq(false))).thenReturn(sampleReport);
when(userservice.getByReferenceDto(assignee.toReference())).thenReturn(assignee);

source.addSampleReport(sampleReportDto);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void testFromDto() {
TestReport testReport = new TestReport();
testReport.setUuid("testreport-uuid");
TestReportDto testReportDto = TestReportFacadeEjb.toDto(testReport);
when(testReportFacade.fromDto(eq(testReportDto), any(SampleReport.class), eq(false))).thenReturn(testReport);
when(testReportFacade.fromDto(eq(testReportDto), eq(false))).thenReturn(testReport);

Sample sample = new Sample();
sample.setUuid("sample-uuid");
Expand Down

0 comments on commit c5bac66

Please sign in to comment.