use of org.apache.tinkerpop.gremlin.server.Settings in project janusgraph by JanusGraph.
the class JanusGraphSettingsUtilsTest method testSetDefaultSerializersWithGraphBinaryWithRegistry.
@Test
public void testSetDefaultSerializersWithGraphBinaryWithRegistry() throws Exception {
Settings settings = JanusGraphSettings.read("src/test/resources/janusgraph-server-without-serializers.yaml");
Optional<Settings.SerializerSettings> graphBinary = settings.serializers.stream().filter(it -> it.className.equals("org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1") && it.config.get("ioRegistries") != null).findFirst();
assertTrue(graphBinary.isPresent());
assertTrue(((List) graphBinary.get().config.get("ioRegistries")).contains("org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry"));
}
use of org.apache.tinkerpop.gremlin.server.Settings in project janusgraph by JanusGraph.
the class JanusGraphSettingsUtilsTest method testSetDefaultSerializersWithGraphBinaryWithResultToString.
@Test
public void testSetDefaultSerializersWithGraphBinaryWithResultToString() throws Exception {
Settings settings = JanusGraphSettings.read("src/test/resources/janusgraph-server-without-serializers.yaml");
Optional<Settings.SerializerSettings> graphBinary = settings.serializers.stream().filter(it -> it.className.equals("org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1")).skip(1).findFirst();
assertTrue(graphBinary.isPresent());
assertTrue((boolean) graphBinary.get().config.get("serializeResultToString"));
}
Aggregations