From 47722ef63ca8e48126ecd17f56258a8d8bba3ca5 Mon Sep 17 00:00:00 2001 From: Oliver Egger Date: Wed, 10 Jun 2020 13:53:37 +0200 Subject: [PATCH] windows test fix --- .../java/org/hl7/fhir/r5/test/ResourceRoundTripTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ResourceRoundTripTests.java b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ResourceRoundTripTests.java index 404afd102..4d4bcf27e 100644 --- a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ResourceRoundTripTests.java +++ b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ResourceRoundTripTests.java @@ -75,8 +75,8 @@ public class ResourceRoundTripTests { code.get(0).setValue("ö"); ByteArrayOutputStream baosXml = new ByteArrayOutputStream(); Manager.compose(TestingUtilities.context(), xml, baosXml, FhirFormat.XML, OutputStyle.PRETTY, null); - String cdaSerialised = baosXml.toString(); - assertTrue(cdaSerialised.indexOf("0); + String cdaSerialised = baosXml.toString("UTF-8"); + assertTrue(cdaSerialised.indexOf("ö")>0); } } \ No newline at end of file