DataFilesReportSoapResponseTransformer { public DataFilesReport toSoapResponse(ee.openeid.siva.validation.document.report.DataFilesReport report) { DataFilesReport responseReport = new DataFilesReport(); responseReport.setDataFiles(toSoapResponseDataFiles(report.getDataFiles())); return responseReport; }  DataFilesReport toSoapResponse(ee.openeid.siva.validation.document.report.DataFilesReport report);  }
@Test public void vIsCorrectlyTransformedToSoapResponseReport() { ee.openeid.siva.validation.document.report.DataFilesReport dataFilesReport = createMockedDataFilesReport(); DataFilesReport responseReport = transformer.toSoapResponse(dataFilesReport); assertEquals(dataFilesReport.getDataFiles().get(0).getBase64(), responseReport.getDataFiles().getDataFile().get(0).getBase64()); assertEquals(dataFilesReport.getDataFiles().get(0).getFilename(), responseReport.getDataFiles().getDataFile().get(0).getFilename()); assertEquals(dataFilesReport.getDataFiles().get(0).getMimeType(), responseReport.getDataFiles().getDataFile().get(0).getMimeType()); assertEquals(dataFilesReport.getDataFiles().get(0).getSize(), responseReport.getDataFiles().getDataFile().get(0).getSize()); }