public class BaseApiTest extends Object
| Constructor and Description |
|---|
BaseApiTest() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
assertJsonContains(String response,
String key) |
static Object |
assertMapContains(Map<?,?> map,
String key) |
protected static String |
assertResponseStatus(int status,
javax.ws.rs.core.Response response) |
static void |
clear() |
protected static void |
clearData() |
com.baidu.hugegraph.api.BaseApiTest.RestClient |
client() |
protected static String |
getVertexId(String label,
String key,
String value) |
static void |
init() |
protected static void |
initEdgeLabel() |
protected static void |
initPropertyKey()
Utils method to init some properties
|
protected static void |
initVertex() |
protected static void |
initVertexLabel() |
static com.baidu.hugegraph.api.BaseApiTest.RestClient |
newClient() |
protected static String |
parseId(String content) |
protected static <T> List<T> |
readList(String content,
String key,
Class<T> clazz) |
void |
teardown() |
public static void init()
public com.baidu.hugegraph.api.BaseApiTest.RestClient client()
public static com.baidu.hugegraph.api.BaseApiTest.RestClient newClient()
protected static void initPropertyKey()
protected static void initVertexLabel()
protected static void initEdgeLabel()
protected static void initVertex()
protected static String getVertexId(String label, String key, String value) throws IOException
IOExceptionprotected static String parseId(String content) throws IOException
IOExceptionprotected static void clearData()
protected static String assertResponseStatus(int status, javax.ws.rs.core.Response response)
Copyright © 2017–2018. All rights reserved.