diff --git a/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidatorTest.java b/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidatorTest.java index 9d62b63b06d..8d3353f01a4 100644 --- a/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidatorTest.java +++ b/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/validation/address/impl/LoquateAddressValidatorTest.java @@ -89,12 +89,18 @@ class LoquateAddressValidatorTest { @Test public void testRequestBody() { try { - assertEquals(REQUEST, myValidator.getRequestBody(ourCtx, getAddress())); + assertEquals(clear(REQUEST), clear(myValidator.getRequestBody(ourCtx, getAddress()))); } catch (JsonProcessingException e) { fail(); } } + private String clear(String theString) { + theString = theString.replaceAll("\n", ""); + theString = theString.replaceAll("\r", ""); + return theString.trim(); + } + @Test public void testServiceCalled() { Address address = getAddress();