public class BaseApiTest extends Object
| Constructor and Description |
|---|
BaseApiTest() |
| Modifier and Type | Method and Description |
|---|---|
static Map<?,?> |
assertArrayContains(List<Map<?,?>> list,
String key,
Object value) |
static <T> T |
assertJsonContains(String response,
String key) |
static <T> T |
assertMapContains(Map<?,?> map,
String key) |
protected static String |
assertResponseStatus(int status,
javax.ws.rs.core.Response response) |
static void |
clear() |
protected static void |
clearData() |
protected static void |
clearGraph() |
protected static void |
clearSchema() |
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 |
initIndexLabel() |
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() |
protected static void |
truncate() |
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 initIndexLabel()
protected static void initVertex()
protected static String getVertexId(String label, String key, String value) throws IOException
IOExceptionprotected static void clearGraph()
protected static void clearSchema()
protected static String parseId(String content) throws IOException
IOExceptionprotected static void clearData()
protected static void truncate()
protected static String assertResponseStatus(int status, javax.ws.rs.core.Response response)
Copyright © 2017–2019. All rights reserved.