Browse Source

URL fixed in pom. Added tests

pull/1/merge
kalle 13 years ago
parent
commit
b3c2df0928
  1. 5
      changelog.txt
  2. 2
      json-path-assert/pom.xml
  3. 4
      json-path-assert/src/test/java/com/jayway/jsonassert/JsonAssertTest.java
  4. 2
      json-path/pom.xml

5
changelog.txt

@ -1,6 +1,11 @@
------------------------------------------
0.5.5
------------------------------------------
- Improved JSON bracket notation. $['store']['book'][*]['author name']
properties can also contain '.' eg $['store']['book'][*]['author.name']
------------------------------------------
0.5.4
------------------------------------------
- Replaced com.googlecode.json-simple with net.minidev.json-smart
- Introduced different parse modes, JsonPath.SLACK_MODE and JsonPath.STRICT_MODE (the slack mode lets you use single quotes or even no quotes at all)

2
json-path-assert/pom.xml

@ -25,7 +25,7 @@
<artifactId>json-path-assert</artifactId>
<version>0.5.5-SNAPSHOT</version>
<name>json-path-assert</name>
<url>http://maven.apache.org</url>
<url>http://code.google.com/p/json-path/</url>
<dependencies>
<dependency>
<groupId>com.jayway.jsonpath</groupId>

4
json-path-assert/src/test/java/com/jayway/jsonassert/JsonAssertTest.java

@ -4,7 +4,6 @@ import org.hamcrest.Matchers;
import org.junit.Test;
import java.io.InputStream;
import java.io.InputStreamReader;
import static com.jayway.jsonassert.JsonAssert.*;
import static org.hamcrest.Matchers.*;
@ -131,6 +130,9 @@ public class JsonAssertTest {
with(JSON).assertEquals("$.store.book[0].title", "Sayings of the Century")
.assertThat("$.store.book[0].title", equalTo("Sayings of the Century"));
with(JSON).assertEquals("$['store']['book'][0].['title']", "Sayings of the Century")
.assertThat("$['store'].book[0].title", equalTo("Sayings of the Century"));
}
@Test

2
json-path/pom.xml

@ -26,7 +26,7 @@
<packaging>jar</packaging>
<version>0.5.5-SNAPSHOT</version>
<name>json-path</name>
<url>http://maven.apache.org</url>
<url>http://code.google.com/p/json-path/</url>
<dependencies>
<!--
<dependency>

Loading…
Cancel
Save