[java-idp-integration-tests] branch master updated: JSPT-79 - Review date and time handling for Java 8
Scott Cantor
cantor.2 at osu.edu
Fri Mar 1 13:12:02 EST 2019
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=d49f1ebce819c7bb6f854952f6dfe1606e9d0cb0
The following commit(s) were added to refs/heads/master by this push:
new d49f1eb JSPT-79 - Review date and time handling for Java 8
d49f1eb is described below
commit d49f1ebce819c7bb6f854952f6dfe1606e9d0cb0
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Mar 1 13:11:59 2019 -0500
JSPT-79 - Review date and time handling for Java 8
https://issues.shibboleth.net/jira/browse/JSPT-79
---
src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
index bcb6e9b..2e0f98d 100644
--- a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
@@ -28,6 +28,8 @@ import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
+import java.time.Instant;
+import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -46,8 +48,6 @@ import net.shibboleth.utilities.java.support.net.URLBuilder;
import net.shibboleth.utilities.java.support.primitive.StringSupport;
import net.shibboleth.utilities.java.support.xml.ParserPool;
-import org.joda.time.DateTime;
-import org.joda.time.format.DateTimeFormat;
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.Platform;
@@ -350,7 +350,7 @@ public abstract class BaseIntegrationTest
Assert.assertTrue(pathToDistIdPHome.toAbsolutePath().toFile().exists(), "Path to dist idp.home not found");
// Path to per-test idp.home
- final String timestamp = new DateTime().toString(DateTimeFormat.forPattern(idpHomePattern));
+ final String timestamp = DateTimeFormatter.ofPattern(idpHomePattern).format(Instant.now());
pathToIdPHome = pathToDistIdPHome.getParent().resolve(timestamp);
log.info("Path to idp.home '{}'", pathToIdPHome.toAbsolutePath());
Assert.assertFalse(pathToIdPHome.toAbsolutePath().toFile().exists(), "Path to idp.home already exists");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list