Skip to content

Commit 70d11a6

Browse files
authored
Update dependencies. (#649)
1 parent 1e18a13 commit 70d11a6

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

build.gradle

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ buildscript {
1111

1212
ext {
1313
libs = [
14-
gson: 'com.google.code.gson:gson:2.8.5',
15-
hamcrest: 'org.hamcrest:hamcrest:2.1',
16-
jacksonDatabind: 'com.fasterxml.jackson.core:jackson-databind:2.9.8',
17-
jettison: 'org.codehaus.jettison:jettison:1.3.7',
14+
gson: 'com.google.code.gson:gson:2.8.6',
15+
hamcrest: 'org.hamcrest:hamcrest:2.2',
16+
jacksonDatabind: 'com.fasterxml.jackson.core:jackson-databind:2.11.3',
17+
jettison: 'org.codehaus.jettison:jettison:1.4.1',
1818
jsonOrg: 'org.json:json:20140107',
1919
jsonSmart: 'net.minidev:json-smart:2.3',
20-
slf4jApi: 'org.slf4j:slf4j-api:1.7.26',
21-
tapestryJson: 'org.apache.tapestry:tapestry-json:5.4.4',
20+
slf4jApi: 'org.slf4j:slf4j-api:1.7.30',
21+
tapestryJson: 'org.apache.tapestry:tapestry-json:5.6.1',
2222

2323
test: [
24-
'commons-io:commons-io:2.4',
24+
'commons-io:commons-io:2.8.0',
2525
'junit:junit:4.12',
26-
'org.assertj:assertj-core:3.11.1',
27-
'org.hamcrest:hamcrest:2.1',
28-
'org.slf4j:slf4j-simple:1.7.26'
26+
'org.assertj:assertj-core:3.18.1',
27+
'org.hamcrest:hamcrest:2.2',
28+
'org.slf4j:slf4j-simple:1.7.30'
2929
]
3030
]
3131
snapshotVersion = false

json-path/src/test/java/com/jayway/jsonpath/GsonJsonProviderTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import java.io.IOException;
1212
import java.math.BigDecimal;
1313
import java.math.BigInteger;
14+
import java.util.ArrayList;
1415
import java.util.List;
1516

1617
import static com.jayway.jsonpath.JsonPath.using;
@@ -145,9 +146,11 @@ public void an_Integer_can_be_converted_to_a_Double() {
145146
@Test
146147
public void list_of_numbers() {
147148
JsonArray objs = using(GSON_CONFIGURATION).parse(JSON_DOCUMENT).read("$.store.book[*].display-price");
148-
149-
assertThat(objs.iterator()).extracting("asDouble").containsExactly(8.95D, 12.99D, 8.99D, 22.99D);
150-
149+
List<Double> actual = new ArrayList<>();
150+
for (JsonElement obj : objs) {
151+
actual.add(obj.getAsDouble());
152+
}
153+
assertThat(actual).containsExactly(8.95D, 12.99D, 8.99D, 22.99D);
151154
}
152155

153156
@Test

0 commit comments

Comments
 (0)