Fixing line break problem
This commit is contained in:
parent
e188a95d66
commit
8c80e0838d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue