From dae798ac18403cf0e95468a521e463f3e954a01f Mon Sep 17 00:00:00 2001 From: salander85 Date: Tue, 5 Dec 2023 12:32:09 +0100 Subject: [PATCH] Remove unused TestUtility function --- .../integration/commons/utils/TestUtils.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/integration-test/java/com/commercetools/sync/integration/commons/utils/TestUtils.java b/src/integration-test/java/com/commercetools/sync/integration/commons/utils/TestUtils.java index 39f4992ce6..ad71ee2048 100644 --- a/src/integration-test/java/com/commercetools/sync/integration/commons/utils/TestUtils.java +++ b/src/integration-test/java/com/commercetools/sync/integration/commons/utils/TestUtils.java @@ -2,25 +2,9 @@ import static io.vrap.rmf.base.client.utils.json.JsonUtils.fromInputStream; -import java.io.IOException; import java.io.InputStream; -import java.io.UncheckedIOException; -import java.nio.charset.StandardCharsets; -import java.util.Objects; -import org.apache.commons.io.IOUtils; public class TestUtils { - public static String stringFromResource(final String resourcePath) { - try { - return IOUtils.toString( - Objects.requireNonNull( - Thread.currentThread().getContextClassLoader().getResourceAsStream(resourcePath)), - StandardCharsets.UTF_8); - } catch (final IOException e) { - throw new UncheckedIOException(e); - } - } - public static T readObjectFromResource(final String resourcePath, final Class objectType) { final InputStream resourceAsStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(resourcePath);