Skip to content

Commit 0e91bd4

Browse files
author
Anders Breid
authored
Update json version (#41)
* Update json version
1 parent 579364b commit 0e91bd4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<dependency>
5353
<groupId>org.json</groupId>
5454
<artifactId>json</artifactId>
55-
<version>20180130</version>
55+
<version>20190722</version>
5656
</dependency>
5757

5858
<dependency>

src/test/java/com/ericsson/eiffelcommons/httptest/HttpExecutorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
public class HttpExecutorTest {
2828

29-
private static final String URL_FAKE = "http://fake.com";
29+
private static final String URL_FAKE = "http://ensure-non-existant-webpage.com";
3030
private static final String URL_MOCK = "http://localhost:{port}";
3131
private static final String ENDPOINT_MOCK = "/endpoint";
3232
private static final String RESPONSE_MOCK = "{\"message\":\"dummy\"}";

src/test/java/com/ericsson/eiffelcommons/httptest/HttpRequestTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void testBodyProperty() throws UnsupportedOperationException, IOException
156156
actualBody = IOUtils.toString(entity.getContent(), "UTF-8");
157157
stream.close();
158158
assertTrue(actualHeader.contains(BODY_HEADER_DEFAULT));
159-
assertEquals(BODY_CONTENT + "\n", actualBody);
159+
assertEquals(BODY_CONTENT, actualBody.replace(System.getProperty("line.separator"), ""));
160160
}
161161

162162
@Test(expected = IOException.class)

0 commit comments

Comments
 (0)