aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-12-29 01:08:15 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2024-12-29 01:53:03 +0100
commita687ca50e1300565fbf13fdbf885558dba258773 (patch)
treea5185aeee7df3a0866a67d42b71e2ac5f4bb9535
parent9e869d9a923997d2aa05b48f5a45f67bebbb7d45 (diff)
downloadjgit-a687ca50e1300565fbf13fdbf885558dba258773.tar.gz
jgit-a687ca50e1300565fbf13fdbf885558dba258773.zip
PushCertificateStoreTest: replace deprecated PersonIdent constructor
Change-Id: I600538d0ea7ec4377af331341b8e4e2d51a5a51d
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushCertificateStoreTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushCertificateStoreTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushCertificateStoreTest.java
index 4f01e4d445..a03222be0c 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushCertificateStoreTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushCertificateStoreTest.java
@@ -23,6 +23,8 @@ import static org.junit.Assert.assertTrue;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
+import java.time.Instant;
+import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -318,8 +320,8 @@ public class PushCertificateStoreTest {
}
private PersonIdent newIdent() {
- return new PersonIdent(
- "A U. Thor", "author@example.com", ts.getAndIncrement(), 0);
+ return new PersonIdent("A U. Thor", "author@example.com",
+ Instant.ofEpochMilli(ts.getAndIncrement()), ZoneOffset.UTC);
}
private PushCertificateStore newStore() {