You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2023/03/02 15:50:42 UTC
[uima-uimaj-io-jsoncas] 01/01: Issue #21: Tests in CasSerializerTest fail on Windows due to line endings
This is an automated email from the ASF dual-hosted git repository.
rec pushed a commit to branch bugfix/21-Tests-in-CasSerializerTest-fail-on-Windows-due-to-line-endings
in repository https://gitbox.apache.org/repos/asf/uima-uimaj-io-jsoncas.git
commit 78bfcc8e838f3f07fd1f55a4c3dd5f9fd2e54fbc
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Thu Mar 2 16:50:36 2023 +0100
Issue #21: Tests in CasSerializerTest fail on Windows due to line endings
- Normalize the line endings for the purpose of the test
---
.../java/org/apache/uima/json/jsoncas2/ser/CasSerializerTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/java/org/apache/uima/json/jsoncas2/ser/CasSerializerTest.java b/src/test/java/org/apache/uima/json/jsoncas2/ser/CasSerializerTest.java
index 975c894..92d8424 100644
--- a/src/test/java/org/apache/uima/json/jsoncas2/ser/CasSerializerTest.java
+++ b/src/test/java/org/apache/uima/json/jsoncas2/ser/CasSerializerTest.java
@@ -64,7 +64,7 @@ class CasSerializerTest {
sut.setTypeSystemMode(TypeSystemMode.MINIMAL);
sut.serialize(cas, out);
- assertThat(contentOf(out, UTF_8)).isEqualTo(
+ assertThat(contentOf(out, UTF_8)).isEqualToNormalizingNewlines(
contentOf(getClass().getResource("/CasSerializerTest/minimalTypeSystem.json"), UTF_8));
}
@@ -78,7 +78,7 @@ class CasSerializerTest {
sut.setTypeSystemMode(TypeSystemMode.FULL);
sut.serialize(cas, out);
- assertThat(contentOf(out, UTF_8)).isEqualTo(
+ assertThat(contentOf(out, UTF_8)).isEqualToNormalizingNewlines(
contentOf(getClass().getResource("/CasSerializerTest/fullTypeSystem.json"), UTF_8));
}
@@ -92,7 +92,7 @@ class CasSerializerTest {
sut.setTypeSystemMode(TypeSystemMode.NONE);
sut.serialize(cas, out);
- assertThat(contentOf(out, UTF_8)).isEqualTo(
+ assertThat(contentOf(out, UTF_8)).isEqualToNormalizingNewlines(
contentOf(getClass().getResource("/CasSerializerTest/noTypeSystem.json"), UTF_8));
}