Skip to content

Commit

Permalink
fix(test): make sure server test case use more recent serializer
Browse files Browse the repository at this point in the history
tglman committed Jun 25, 2024
1 parent fb58c5c commit 01aa8b4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -13,11 +13,11 @@
import org.apache.tinkerpop.gremlin.driver.Cluster;
import org.apache.tinkerpop.gremlin.driver.MessageSerializer;
import org.apache.tinkerpop.gremlin.driver.exception.ResponseException;
import org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0;
import org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0;
import org.apache.tinkerpop.gremlin.orientdb.OrientGraph;
import org.apache.tinkerpop.gremlin.orientdb.io.OrientIoRegistry;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.apache.tinkerpop.gremlin.structure.io.gryo.GryoMapper;
import org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONMapper;
import org.junit.Assert;
import org.junit.Test;

@@ -34,8 +34,8 @@ public void setup() throws Exception {
public void shouldAuthenticateWithPlainText() throws Exception {

MessageSerializer serializer =
new GryoMessageSerializerV3d0(
GryoMapper.build().addRegistry(OrientIoRegistry.getInstance()));
new GraphSONMessageSerializerV3d0(
GraphSONMapper.build().addRegistry(OrientIoRegistry.getInstance()));
final Cluster cluster =
Cluster.build().credentials("root", "root").serializer(serializer).create();
final Client client = cluster.connect();
@@ -86,8 +86,8 @@ public void shouldUseReaderAndGiveExceptionOnWrite() throws Exception {
@Test
public void shouldCreateAVertexPerson() throws Exception {
MessageSerializer serializer =
new GryoMessageSerializerV3d0(
GryoMapper.build().addRegistry(OrientIoRegistry.getInstance()));
new GraphSONMessageSerializerV3d0(
GraphSONMapper.build().addRegistry(OrientIoRegistry.getInstance()));
final Cluster cluster =
Cluster.build().credentials("root", "root").serializer(serializer).create();
final Client client = cluster.connect();

0 comments on commit 01aa8b4

Please sign in to comment.