Skip to content
Snippets Groups Projects
Commit 6eac37ed authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-5412 XTAITCase: Fix bad import

parent fa1e8df5
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigInteger;
import java.nio.charset.StandardCharsets;
import java.time.ZonedDateTime;
import java.util.Arrays;
import java.util.List;
......@@ -21,7 +22,6 @@ import org.apache.commons.codec.Resources;
import org.apache.commons.io.IOUtils;
import de.ozgcloud.common.binaryfile.TempFileUtils;
import kotlin.text.Charsets;
public class XtaResponseTestFactory {
......@@ -121,7 +121,7 @@ public class XtaResponseTestFactory {
private static Stream<String> listResourceFileNames(String resourceDirectoryPath) {
try (var inputStream = Resources.getInputStream(resourceDirectoryPath)) {
return Arrays.stream(IOUtils.toString(inputStream, Charsets.UTF_8).split("\n"));
return Arrays.stream(IOUtils.toString(inputStream, StandardCharsets.UTF_8).split("\n"));
} catch (IOException e) {
throw new RuntimeException(e);
}
......
......@@ -26,7 +26,6 @@ import org.springframework.util.MimeTypeUtils;
import de.ozgcloud.eingang.common.errorhandling.TechnicalException;
import de.ozgcloud.eingang.common.formdata.IncomingFile;
import kotlin.text.Charsets;
class ZipFileExtractorTest {
......@@ -149,7 +148,7 @@ class ZipFileExtractorTest {
private List<TestZipEntry> fromMap(Map<String, String> entries) {
return entries.entrySet().stream().map(kv -> TestZipEntry.builder()
.name(kv.getKey())
.content(kv.getValue().getBytes(Charsets.UTF_8))
.content(kv.getValue().getBytes(StandardCharsets.UTF_8))
.build())
.toList();
}
......@@ -212,7 +211,6 @@ class ZipFileExtractorTest {
}
}
@DisplayName("sum uncompressed entry size")
@Nested
class TestSumUncompressedEntrySize {
......@@ -234,7 +232,6 @@ class ZipFileExtractorTest {
}
}
@Nested
class TestContentType {
......@@ -267,7 +264,6 @@ class ZipFileExtractorTest {
}
}
@DisplayName("map zip entries")
@Nested
class TestMapZipEntries {
......@@ -307,5 +303,4 @@ class ZipFileExtractorTest {
return string.getBytes(StandardCharsets.UTF_8);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment