diff --git a/src/test/java/com/jcraft/jsch/KeyPairIT.java b/src/test/java/com/jcraft/jsch/KeyPairIT.java index f3ccfd68..46de7d6a 100644 --- a/src/test/java/com/jcraft/jsch/KeyPairIT.java +++ b/src/test/java/com/jcraft/jsch/KeyPairIT.java @@ -1,6 +1,5 @@ package com.jcraft.jsch; -import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; import org.testcontainers.containers.GenericContainer; @@ -22,11 +21,6 @@ public class KeyPairIT { .withFileFromClasspath("authorized_keys", "docker/authorized_keys.KeyPairIT") .withFileFromClasspath("Dockerfile", "docker/Dockerfile.KeyPairIT")).withExposedPorts(22); - @BeforeAll - public static void beforeAll() { - JSch.setLogger(new Slf4jLogger()); - } - @ParameterizedTest @MethodSource("com.jcraft.jsch.KeyPairTest#keyArgs") void connectWithPublicKey(String path, String password, String keyType) throws Exception { diff --git a/src/test/java/com/jcraft/jsch/KeyPairTest.java b/src/test/java/com/jcraft/jsch/KeyPairTest.java index 66262e44..b1e9f4b4 100644 --- a/src/test/java/com/jcraft/jsch/KeyPairTest.java +++ b/src/test/java/com/jcraft/jsch/KeyPairTest.java @@ -1,6 +1,5 @@ package com.jcraft.jsch; -import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; import org.junit.jupiter.params.ParameterizedTest; @@ -22,11 +21,6 @@ class KeyPairTest { @TempDir public Path tmpDir; - @BeforeAll - static void init() { - JSch.setLogger(new Slf4jLogger()); - } - static Stream keyArgs() { return Stream.of( // docker/id_rsa rsa