Search in sources :

Example 6 with GraphBinaryMessageSerializerV1

use of org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1 in project janusgraph by JanusGraph.

the class JanusGraphPGraphBinarySerializerTest method shouldCustomSerialization.

@ParameterizedTest
@MethodSource("janusGraphPProvider")
public void shouldCustomSerialization(final JanusGraphP predicate) throws IOException {
    final GraphBinaryMessageSerializerV1 serializer = new GraphBinaryMessageSerializerV1(TypeSerializerRegistry.build().addCustomType(JanusGraphP.class, new JanusGraphPBinarySerializer()).addCustomType(Geoshape.class, new GeoshapeGraphBinarySerializer()).create());
    assertJanusGraphP(serializer, predicate);
}
Also used : GraphBinaryMessageSerializerV1(org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1) JanusGraphP(org.janusgraph.graphdb.tinkerpop.io.JanusGraphP) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest) MethodSource(org.junit.jupiter.params.provider.MethodSource)

Aggregations

GraphBinaryMessageSerializerV1 (org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1)6 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)5 MethodSource (org.junit.jupiter.params.provider.MethodSource)5 HashMap (java.util.HashMap)4 JanusGraphP (org.janusgraph.graphdb.tinkerpop.io.JanusGraphP)1