Skip to content
Snippets Groups Projects
Commit f29636ce authored by Lukas Malte Monnerjahn's avatar Lukas Malte Monnerjahn
Browse files

Merge remote-tracking branch 'origin/OZG-6754-xdomea-Validierung' into OZG-6754-xdomea-Validierung

parents 9322cb8e 5eb7f7fb
No related branches found
No related tags found
No related merge requests found
...@@ -5,13 +5,10 @@ import java.io.IOException; ...@@ -5,13 +5,10 @@ import java.io.IOException;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.function.UnaryOperator;
import java.util.stream.Stream; import java.util.stream.Stream;
import java.util.zip.ZipEntry; import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream; import java.util.zip.ZipOutputStream;
import jakarta.annotation.Nullable;
import org.apache.commons.codec.Resources; import org.apache.commons.codec.Resources;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
...@@ -60,12 +57,6 @@ public class ZipFileTestFactory { ...@@ -60,12 +57,6 @@ public class ZipFileTestFactory {
).toList()); ).toList());
} }
public static byte[] replaceXmlString(byte[] data, @Nullable UnaryOperator<String> xmlStringReplacer) {
return xmlStringReplacer == null
? data
: xmlStringReplacer.apply(new String(data, StandardCharsets.UTF_8)).getBytes(StandardCharsets.UTF_8);
}
static Stream<String> listResourceFileNames(String resourceDirectoryPath) { static Stream<String> listResourceFileNames(String resourceDirectoryPath) {
try (var inputStream = Resources.getInputStream(resourceDirectoryPath)) { try (var inputStream = Resources.getInputStream(resourceDirectoryPath)) {
return Arrays.stream(IOUtils.toString(inputStream, StandardCharsets.UTF_8).split("\n")); return Arrays.stream(IOUtils.toString(inputStream, StandardCharsets.UTF_8).split("\n"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment