Search in sources :

Example 1 with PathDeserializer

use of com.baidu.hugegraph.serializer.PathDeserializer in project incubator-hugegraph-toolchain by apache.

the class RestResultTest method init.

@BeforeClass
public static void init() {
    graphManager = Mockito.mock(GraphManager.class);
    SimpleModule module = new SimpleModule();
    module.addDeserializer(Path.class, new PathDeserializer());
    RestResult.registerModule(module);
}
Also used : PathDeserializer(com.baidu.hugegraph.serializer.PathDeserializer) GraphManager(com.baidu.hugegraph.driver.GraphManager) SimpleModule(com.fasterxml.jackson.databind.module.SimpleModule) BeforeClass(org.junit.BeforeClass)

Aggregations

GraphManager (com.baidu.hugegraph.driver.GraphManager)1 PathDeserializer (com.baidu.hugegraph.serializer.PathDeserializer)1 SimpleModule (com.fasterxml.jackson.databind.module.SimpleModule)1 BeforeClass (org.junit.BeforeClass)1