From 712b86a19af76c7da6bbf2680251db92f0b9b826 Mon Sep 17 00:00:00 2001 From: Philipp Schramm Date: Tue, 26 Jul 2022 13:25:58 +0200 Subject: [PATCH] RED-4510: Generated Redaction Log and Generating will not run with profile --- .../com/iqser/red/service/redaction/v1/server/RulesTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redaction-service-v1/redaction-service-server-v1/src/test/java/com/iqser/red/service/redaction/v1/server/RulesTest.java b/redaction-service-v1/redaction-service-server-v1/src/test/java/com/iqser/red/service/redaction/v1/server/RulesTest.java index 6b94efee..837ea5a3 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/test/java/com/iqser/red/service/redaction/v1/server/RulesTest.java +++ b/redaction-service-v1/redaction-service-server-v1/src/test/java/com/iqser/red/service/redaction/v1/server/RulesTest.java @@ -630,6 +630,9 @@ public class RulesTest { String absolutePath = path.toAbsolutePath().toString(); System.out.println("absolutePath: " + absolutePath); int pos = StringUtils.indexOf(absolutePath, StringUtils.replace(RESOURCES_PATH, "/", "\\")) + 18; + + pos = StringUtils.indexOf(absolutePath, RESOURCES_PATH) + 18; + System.out.println("pos: " + pos); fileNames.add(StringUtils.substring(absolutePath, pos)); System.out.println("Added: " + StringUtils.substring(absolutePath, pos));