[java-identity-provider] branch main updated: Avoid deprecated TestNG APIs
Ian Young
ian at iay.org.uk
Fri Aug 11 15:36:53 UTC 2023
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=87e6bed48536584c2b1184accecdba01668fe959
The following commit(s) were added to refs/heads/main by this push:
new 87e6bed48 Avoid deprecated TestNG APIs
87e6bed48 is described below
commit 87e6bed48536584c2b1184accecdba01668fe959
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Fri Aug 11 16:36:49 2023 +0100
Avoid deprecated TestNG APIs
---
.../idp/session/impl/StorageBackedIdPSessionSerializerTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/idp-session-impl/src/test/java/net/shibboleth/idp/session/impl/StorageBackedIdPSessionSerializerTest.java b/idp-session-impl/src/test/java/net/shibboleth/idp/session/impl/StorageBackedIdPSessionSerializerTest.java
index 6dbcf7b41..15eb9de4f 100644
--- a/idp-session-impl/src/test/java/net/shibboleth/idp/session/impl/StorageBackedIdPSessionSerializerTest.java
+++ b/idp-session-impl/src/test/java/net/shibboleth/idp/session/impl/StorageBackedIdPSessionSerializerTest.java
@@ -18,13 +18,13 @@ import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URISyntaxException;
+import java.nio.charset.StandardCharsets;
import java.time.Instant;
import org.opensaml.storage.impl.MemoryStorageService;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
-import org.testng.reporters.Files;
import net.shibboleth.idp.authn.AuthenticationResult;
import net.shibboleth.idp.authn.principal.UsernamePrincipal;
@@ -161,7 +161,7 @@ public class StorageBackedIdPSessionSerializerTest {
private String fileToString(String pathname) throws URISyntaxException, IOException {
try (FileInputStream stream = new FileInputStream(
new File(StorageBackedIdPSessionSerializerTest.class.getResource(pathname).toURI()))) {
- return Files.streamToString(stream);
+ return new String(stream.readAllBytes(), StandardCharsets.UTF_8);
}
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list