This is an automated email from the ASF dual-hosted git repository.
twolf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
The following commit(s) were added to refs/heads/master by this push:
new c128e0bec Fix a test class
c128e0bec is described below
commit c128e0becb04eae9c0685c2cae05add56f8d7114
Author: Thomas Wolf <[email protected]>
AuthorDate: Sun Jul 20 10:55:12 2025 +0200
Fix a test class
Extend JUnitTestSupport instead of importing assertArrayEquals, which
moreover was imported wrongly (JUnit 4 instead of 5).
---
sshd-sftp/src/test/java/org/apache/sshd/sftp/client/OpenSshTest.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git
a/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/OpenSshTest.java
b/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/OpenSshTest.java
index 3e3deae08..19be1517a 100644
--- a/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/OpenSshTest.java
+++ b/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/OpenSshTest.java
@@ -30,6 +30,7 @@ import org.apache.sshd.common.Factory;
import org.apache.sshd.common.random.Random;
import org.apache.sshd.common.util.io.IoUtils;
import org.apache.sshd.common.util.security.SecurityUtils;
+import org.apache.sshd.util.test.JUnitTestSupport;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@@ -38,10 +39,8 @@ import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;
import org.testcontainers.utility.MountableFile;
-import static org.junit.Assert.assertArrayEquals;
-
@Testcontainers(disabledWithoutDocker = true)
-class OpenSshTest {
+class OpenSshTest extends JUnitTestSupport {
private static final String RESOURCES = "/" +
OpenSshTest.class.getPackage().getName().replace('.', '/');