Browse Source

Wrong assert made in test.

pull/46/head
Kalle Stenflo 10 years ago
parent
commit
39a8f8e41e
  1. 5
      json-path-assert/src/test/java/com/jayway/jsonassert/JsonAssertTest.java

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

@ -45,11 +45,14 @@ public class JsonAssertTest {
@Test @Test
public void invalid_path() throws Exception { public void invalid_path() throws Exception {
with(JSON).assertThat("$.store.book[*].fooBar", collectionWithSize(equalTo(4))); with(JSON).assertThat("$.store.book[*].fooBar", emptyCollection());
} }
@Test(expected = AssertionError.class) @Test(expected = AssertionError.class)
public void failed_error_message() throws Exception { public void failed_error_message() throws Exception {
with(JSON).assertThat("$.store.book[0].category", endsWith("foobar")); with(JSON).assertThat("$.store.book[0].category", endsWith("foobar"));
} }

Loading…
Cancel
Save