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);
}
Aggregations