Fixing line break problem

This commit is contained in:
Nick Goupinets 2021-03-12 17:48:17 -05:00
parent e188a95d66
commit 8c80e0838d
1 changed files with 7 additions and 1 deletions

View File

@ -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();