Package | Description |
---|---|
com.jayway.jsonassert | |
com.jayway.jsonassert.impl |
Modifier and Type | Method and Description |
---|---|
JsonAsserter |
JsonAsserter.and()
Syntactic sugar to allow chaining assertions with a separating and() statement
with(json).assertThat("firstName", is(equalTo("Bobby"))).and().assertThat("lastName", is(equalTo("Ewing")))
|
<T> JsonAsserter |
JsonAsserter.assertEquals(String path,
T expected)
Asserts that object specified by path is equal to the expected value.
|
<T> JsonAsserter |
JsonAsserter.assertEquals(String path,
T expected,
String message) |
JsonAsserter |
JsonAsserter.assertNotDefined(String path)
Checks that a path is not defined within a document.
|
JsonAsserter |
JsonAsserter.assertNotDefined(String path,
String message) |
<T> JsonAsserter |
JsonAsserter.assertNotNull(String path)
Asserts that object specified by path is NOT null.
|
<T> JsonAsserter |
JsonAsserter.assertNotNull(String path,
String message) |
JsonAsserter |
JsonAsserter.assertNull(String path)
Asserts that object specified by path is null.
|
JsonAsserter |
JsonAsserter.assertNull(String path,
String message) |
<T> JsonAsserter |
JsonAsserter.assertThat(String path,
org.hamcrest.Matcher<T> matcher)
Asserts that object specified by path satisfies the condition specified by matcher.
|
<T> JsonAsserter |
JsonAsserter.assertThat(String path,
org.hamcrest.Matcher<T> matcher,
String message) |
static JsonAsserter |
JsonAssert.with(InputStream is)
Creates a JSONAsserter
|
static JsonAsserter |
JsonAssert.with(Reader reader)
Creates a JSONAsserter
|
static JsonAsserter |
JsonAssert.with(String json)
Creates a JSONAsserter
|
Modifier and Type | Class and Description |
---|---|
class |
JsonAsserterImpl
User: kalle stenflo
Date: 1/21/11
Time: 3:43 PM
|
Modifier and Type | Method and Description |
---|---|
JsonAsserter |
JsonAsserterImpl.and()
Syntactic sugar to allow chaining assertions with a separating and() statement
with(json).assertThat("firstName", is(equalTo("Bobby"))).and().assertThat("lastName", is(equalTo("Ewing")))
|
<T> JsonAsserter |
JsonAsserterImpl.assertEquals(String path,
T expected)
Asserts that object specified by path is equal to the expected value.
|
<T> JsonAsserter |
JsonAsserterImpl.assertEquals(String path,
T expected,
String message) |
JsonAsserter |
JsonAsserterImpl.assertNotDefined(String path)
Checks that a path is not defined within a document.
|
JsonAsserter |
JsonAsserterImpl.assertNotDefined(String path,
String message) |
<T> JsonAsserter |
JsonAsserterImpl.assertNotNull(String path)
Asserts that object specified by path is NOT null.
|
<T> JsonAsserter |
JsonAsserterImpl.assertNotNull(String path,
String message) |
JsonAsserter |
JsonAsserterImpl.assertNull(String path)
Asserts that object specified by path is null.
|
JsonAsserter |
JsonAsserterImpl.assertNull(String path,
String message) |
<T> JsonAsserter |
JsonAsserterImpl.assertThat(String path,
org.hamcrest.Matcher<T> matcher)
Asserts that object specified by path satisfies the condition specified by matcher.
|
<T> JsonAsserter |
JsonAsserterImpl.assertThat(String path,
org.hamcrest.Matcher<T> matcher,
String message) |
Copyright © 2011–2014. All rights reserved.