Redactions with new-line included in IUCLID-Report too
This commit is contained in:
aoezyetimoglu 2021-11-19 13:40:05 +01:00
parent c0e0865913
commit dbf23750b3
3 changed files with 8445 additions and 2 deletions

View File

@ -37,7 +37,7 @@ public class IuclidFunctionService {
if(StringUtils.isBlank(entry.getValue()) || entry.getValue().equalsIgnoreCase("Rectangle")) {
s.append("non-readable content");
} else {
s.append(entry.getValue());
s.append(entry.getValue().replaceAll("\n", " ").replaceAll(" ", " "));
}
if (iterator.hasNext()) {
s.append(", ");

View File

@ -423,7 +423,7 @@ public class RedactionReportIntegrationTest {
public void testIuclidReport() {
String dossierTemplateId = "dossierTemplateId";
ClassPathResource redactionLogResource = new ClassPathResource("files/redaction-log.json");
ClassPathResource redactionLogResource = new ClassPathResource("files/redactionLog2817.json");
RedactionLog redactionLog = objectMapper.readValue(redactionLogResource.getInputStream(), RedactionLog.class);