public class BaseApiTest extends Object
| 构造器和说明 |
|---|
BaseApiTest() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 javax.ws.rs.core.Response |
createAndAssert(String path,
String body) |
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() |
protected static void |
waitTaskSuccess(int task) |
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 javax.ws.rs.core.Response createAndAssert(String path, String body)
protected static String getVertexId(String label, String key, String value) throws IOException
IOExceptionprotected static void clearGraph()
protected static void clearSchema()
protected static void waitTaskSuccess(int task)
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–2021. All rights reserved.