[java-metadata-aggregator] branch main updated: Make test data file binary so that test is cross-platform

Ian Young ian at iay.org.uk
Thu Sep 3 10:52:47 UTC 2020


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

iay pushed a commit to branch main
in repository java-metadata-aggregator.

View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=b38f827ad2c656b26c6b0d476da115b9343105e2

The following commit(s) were added to refs/heads/main by this push:
       new  b38f827   Make test data file binary so that test is cross-platform
b38f827 is described below

commit b38f827ad2c656b26c6b0d476da115b9343105e2
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Thu Sep 3 11:52:43 2020 +0100

    Make test data file binary so that test is cross-platform
---
 .../src/test/java/net/shibboleth/metadata/BaseTestTest.java             | 2 +-
 .../net/shibboleth/metadata/{BaseTest-bytes.txt => BaseTest-bytes.bin}  | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/BaseTestTest.java b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/BaseTestTest.java
index 2534fdb..e9ba1de 100644
--- a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/BaseTestTest.java
+++ b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/BaseTestTest.java
@@ -17,7 +17,7 @@ public class BaseTestTest extends BaseTest {
 
     @Test
     public void testReadBytes() throws Exception {
-        final var bytes = readBytes("bytes.txt");
+        final var bytes = readBytes("bytes.bin");
         Assert.assertEquals(bytes.length, 6);
         Assert.assertEquals(new String(bytes, StandardCharsets.UTF_8), "hello\n");
     }
diff --git a/aggregator-pipeline/src/test/resources/net/shibboleth/metadata/BaseTest-bytes.txt b/aggregator-pipeline/src/test/resources/net/shibboleth/metadata/BaseTest-bytes.bin
similarity index 100%
rename from aggregator-pipeline/src/test/resources/net/shibboleth/metadata/BaseTest-bytes.txt
rename to aggregator-pipeline/src/test/resources/net/shibboleth/metadata/BaseTest-bytes.bin

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


More information about the commits mailing list