public class JsonErrors
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static AssertionErrorFactory |
contentShouldBeEmpty(JsonObject json) |
java.lang.AssertionError |
newAssertionError(Description d,
Representation r) |
static AssertionErrorFactory |
pathShouldContainEmptyCollections(JsonObject json,
java.lang.String path,
java.util.Collection<?> content) |
static AssertionErrorFactory |
pathShouldContainNumberOfElements(JsonObject json,
java.lang.String path,
int actual,
int expected) |
static AssertionErrorFactory |
pathShouldExist(JsonObject json,
java.lang.String path) |
static AssertionErrorFactory |
pathShouldHaveMatchingElements(JsonObject json,
java.lang.String path,
Filter filter) |
static AssertionErrorFactory |
pathShouldHaveValue(JsonObject json,
java.lang.String path,
java.lang.String actual,
java.lang.String expected) |
static AssertionErrorFactory |
pathShouldNotExist(JsonObject json,
java.lang.String path) |
public static AssertionErrorFactory pathShouldHaveValue(JsonObject json, java.lang.String path, java.lang.String actual, java.lang.String expected)
public static AssertionErrorFactory contentShouldBeEmpty(JsonObject json)
public static AssertionErrorFactory pathShouldContainEmptyCollections(JsonObject json, java.lang.String path, java.util.Collection<?> content)
public static AssertionErrorFactory pathShouldExist(JsonObject json, java.lang.String path)
public static AssertionErrorFactory pathShouldNotExist(JsonObject json, java.lang.String path)
public static AssertionErrorFactory pathShouldContainNumberOfElements(JsonObject json, java.lang.String path, int actual, int expected)
public static AssertionErrorFactory pathShouldHaveMatchingElements(JsonObject json, java.lang.String path, Filter filter)
public java.lang.AssertionError newAssertionError(Description d,
Representation r)
Copyright © 2018 SAP SE. All Rights Reserved.