Browse Source

Fixed java 6 build issue.

pull/33/head
Kalle Stenflo 11 years ago
parent
commit
15c94be41c
  1. 12
      json-path/src/test/java/com/jayway/jsonpath/ArraySlicingTest.java

12
json-path/src/test/java/com/jayway/jsonpath/ArraySlicingTest.java

@ -38,8 +38,8 @@ public class ArraySlicingTest {
@Test
public void get_by_position(){
int result = JsonPath.read(JSON_ARRAY, "$[3]");
assertEquals(7, result);
Integer result = JsonPath.read(JSON_ARRAY, "$[3]");
assertEquals(7, result.intValue());
}
@Test
@ -76,14 +76,14 @@ public class ArraySlicingTest {
@Test
public void get_from_tail(){
int result = JsonPath.read(JSON_ARRAY, "$[3:]");
assertEquals(8, result);
Integer result = JsonPath.read(JSON_ARRAY, "$[3:]");
assertEquals(8, result.intValue());
}
@Test
public void get_from_tail_length(){
int result = JsonPath.read(JSON_ARRAY, "$[(@.length -3)]");
assertEquals(8, result);
Integer result = JsonPath.read(JSON_ARRAY, "$[(@.length -3)]");
assertEquals(8, result.intValue());
}
@Test

Loading…
Cancel
Save