Browse Source

Reintroduced commented test.

pull/183/merge
Kalle Stenflo 9 years ago
parent
commit
59d09fc20c
  1. 10
      json-path/src/test/java/com/jayway/jsonpath/InlineFilterTest.java

10
json-path/src/test/java/com/jayway/jsonpath/InlineFilterTest.java

@ -139,11 +139,11 @@ public class InlineFilterTest extends BaseTest {
ints.add(3); ints.add(3);
// List<Integer> hits = JsonPath.parse(ints).read("$[?(@)]"); List<Integer> hits = JsonPath.parse(ints).read("$[?(@)]");
// assertThat(hits).containsExactly(0,1,null,2,3); assertThat(hits).containsExactly(0,1,null,2,3);
//
// hits = JsonPath.parse(ints).read("$[?(@ != null)]"); hits = JsonPath.parse(ints).read("$[?(@ != null)]");
// assertThat(hits).containsExactly(0,1,2,3); assertThat(hits).containsExactly(0,1,2,3);
List<Integer> isNull = JsonPath.parse(ints).read("$[?(!@)]"); List<Integer> isNull = JsonPath.parse(ints).read("$[?(!@)]");
assertThat(isNull).containsExactly(new Integer[]{}); assertThat(isNull).containsExactly(new Integer[]{});

Loading…
Cancel
Save