Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.2.23 changes #745

Merged
merged 3 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@
</goals>
<configuration>
<bundledSignatures combine.children="append">
<bundledSignature>commons-io-unsafe-2.14.0</bundledSignature>
<bundledSignature>commons-io-unsafe-2.17.0</bundledSignature>
</bundledSignatures>
</configuration>
</execution>
Expand Down
16 changes: 16 additions & 0 deletions src/test/java/com/jcraft/jsch/SftpATTRSTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,30 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import java.time.ZoneOffset;
import java.util.Date;
import java.util.Random;
import java.util.TimeZone;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

public class SftpATTRSTest {

private static TimeZone timezone;
private final Random random = new Random();

@BeforeAll
public static void beforeAll() {
timezone = TimeZone.getDefault();
TimeZone.setDefault(TimeZone.getTimeZone(ZoneOffset.UTC));
}

@AfterAll
public static void afterAll() {
TimeZone.setDefault(timezone);
}

@Test
public void testToDateString0() {
String expected = new Date(0L).toString();
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/docker/Dockerfile.openssh99
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:edge
FROM alpine:3.21
RUN apk update && \
apk upgrade && \
apk add openssh && \
Expand Down
Loading