[java-plugin-shibd] branch main updated: Remove UTF-8 assumption from test.

Scott Cantor cantor.2 at osu.edu
Tue Jun 18 13:03:49 UTC 2024


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-plugin-shibd.

View the commit online:
http://git.shibboleth.net/view/?p=java-plugin-shibd.git;a=commit;h=0138d6c61e2a7a8bd11645bb2b673da7f1172420

The following commit(s) were added to refs/heads/main by this push:
     new 0138d6c  Remove UTF-8 assumption from test.
0138d6c is described below

commit 0138d6c61e2a7a8bd11645bb2b673da7f1172420
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Jun 18 09:03:46 2024 -0400

    Remove UTF-8 assumption from test.
---
 .../java/net/shibboleth/sp/config/impl/ParseAgentRequestMapTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sp-server-impl/src/test/java/net/shibboleth/sp/config/impl/ParseAgentRequestMapTest.java b/sp-server-impl/src/test/java/net/shibboleth/sp/config/impl/ParseAgentRequestMapTest.java
index 98e86fa..aa38a65 100644
--- a/sp-server-impl/src/test/java/net/shibboleth/sp/config/impl/ParseAgentRequestMapTest.java
+++ b/sp-server-impl/src/test/java/net/shibboleth/sp/config/impl/ParseAgentRequestMapTest.java
@@ -115,8 +115,8 @@ public class ParseAgentRequestMapTest extends BaseAgentRequestTest {
         
         try (final InputStream in = getClass().getResourceAsStream("example-map.xml")) {
             assert in != null;
-            arc.setInput(new DDF().unsafe_string(
-                    StringSupport.inputStreamToString(in, Charset.forName("UTF-8").newDecoder()).getBytes(Charset.forName("UTF-8"))));
+            final byte[] bytes = in.readAllBytes();
+            arc.setInput(new DDF().unsafe_string(bytes));
         }
         
         // To capture wire input needed to drive flow.

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list