com.atlassian.bamboo.testutils.json
Class BambooJsonUtils

java.lang.Object
  extended by com.atlassian.bamboo.testutils.json.BambooJsonUtils

public class BambooJsonUtils
extends Object


Method Summary
static org.codehaus.jackson.JsonNode getJsonResource(String fileName, Object object)
           
static org.codehaus.jackson.JsonNode getJsonResource(String resourceName, Object object, Properties subs)
           
static com.google.common.base.Function<com.jayway.restassured.path.json.JsonPath,Boolean> jsonPathToBoolean(String path)
           
static com.google.common.base.Function<com.jayway.restassured.path.json.JsonPath,Integer> jsonPathToInteger(String path)
           
static
<T> com.google.common.base.Function<com.jayway.restassured.path.json.JsonPath,List<T>>
jsonPathToList(String path, Class<T> clazz)
           
static com.google.common.base.Function<com.jayway.restassured.path.json.JsonPath,String> jsonPathToString(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJsonResource

public static org.codehaus.jackson.JsonNode getJsonResource(@NotNull
                                                            String resourceName,
                                                            @NotNull
                                                            Object object,
                                                            @NotNull
                                                            Properties subs)
                                                     throws IOException
Throws:
IOException

getJsonResource

public static org.codehaus.jackson.JsonNode getJsonResource(@NotNull
                                                            String fileName,
                                                            @NotNull
                                                            Object object)
                                                     throws IOException
Throws:
IOException

jsonPathToBoolean

public static com.google.common.base.Function<com.jayway.restassured.path.json.JsonPath,Boolean> jsonPathToBoolean(@NotNull
                                                                                                                   String path)

jsonPathToInteger

public static com.google.common.base.Function<com.jayway.restassured.path.json.JsonPath,Integer> jsonPathToInteger(@NotNull
                                                                                                                   String path)

jsonPathToList

public static <T> com.google.common.base.Function<com.jayway.restassured.path.json.JsonPath,List<T>> jsonPathToList(@NotNull
                                                                                                                    String path,
                                                                                                                    Class<T> clazz)

jsonPathToString

public static com.google.common.base.Function<com.jayway.restassured.path.json.JsonPath,String> jsonPathToString(@NotNull
                                                                                                                 String path)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.