public class BambooJsonUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.codehaus.jackson.JsonNode |
getJsonResource(String fileName,
Object object) |
static org.codehaus.jackson.JsonNode |
getJsonResource(String resourceName,
Object object,
Properties subs) |
static Function<io.restassured.path.json.JsonPath,Boolean> |
jsonPathToBoolean(String path) |
static Function<io.restassured.path.json.JsonPath,Integer> |
jsonPathToInteger(String path) |
static <T> Function<io.restassured.path.json.JsonPath,List<T>> |
jsonPathToList(String path,
Class<T> clazz) |
static Function<io.restassured.path.json.JsonPath,String> |
jsonPathToString(String path) |
static io.restassured.path.json.JsonPath |
printableJsonPath(io.restassured.path.json.JsonPath jsonPath)
Decorates a
JsonPath so that it will print the JSON content on Object.toString() method call. |
@NotNull public static org.codehaus.jackson.JsonNode getJsonResource(@NotNull String resourceName, @NotNull Object object, @NotNull Properties subs) throws IOException
IOException
@NotNull public static org.codehaus.jackson.JsonNode getJsonResource(@NotNull String fileName, @NotNull Object object) throws IOException
IOException
@NotNull public static Function<io.restassured.path.json.JsonPath,Boolean> jsonPathToBoolean(@NotNull String path)
@NotNull public static Function<io.restassured.path.json.JsonPath,Integer> jsonPathToInteger(@NotNull String path)
@NotNull public static <T> Function<io.restassured.path.json.JsonPath,List<T>> jsonPathToList(@NotNull String path, @NotNull Class<T> clazz)
@NotNull public static Function<io.restassured.path.json.JsonPath,String> jsonPathToString(@NotNull String path)
@NotNull public static io.restassured.path.json.JsonPath printableJsonPath(@NotNull io.restassured.path.json.JsonPath jsonPath)
JsonPath
so that it will print the JSON content on Object.toString()
method call.Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.