Skip to content

Commit

Permalink
Fixing some titan-test/src/test errors
Browse files Browse the repository at this point in the history
More compile error fixes for the TP3 M7->M8 upgrade
  • Loading branch information
dalaro committed Apr 10, 2015
1 parent feab178 commit 748419d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -4,13 +4,12 @@
import com.thinkaurelius.titan.core.EdgeLabel;
import com.thinkaurelius.titan.core.Multiplicity;
import com.thinkaurelius.titan.core.TitanEdge;
import com.thinkaurelius.titan.core.TitanVertex;
import com.thinkaurelius.titan.core.schema.TitanManagement;
import com.thinkaurelius.titan.diskstorage.Entry;
import com.thinkaurelius.titan.graphdb.database.EdgeSerializer;
import com.thinkaurelius.titan.graphdb.database.StandardTitanGraph;
import com.thinkaurelius.titan.graphdb.internal.InternalRelation;
import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
Expand All @@ -30,7 +29,7 @@ public void testValueOrdering() {
mgmt.commit();

TitanVertex v1 = graph.addVertex(), v2 = graph.addVertex();
Edge e1 = v1.addEdge("father",v2);
TitanEdge e1 = v1.addEdge("father",v2);
for (int i=1;i<=5;i++) e1.property("key"+i,i);

graph.tx().commit();
Expand Down
Expand Up @@ -7,6 +7,7 @@
import com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration;
import com.thinkaurelius.titan.graphdb.database.StandardTitanGraph;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.apache.tinkerpop.gremlin.structure.VertexProperty;
import org.junit.*;

import static org.junit.Assert.*;
Expand Down Expand Up @@ -48,7 +49,7 @@ public void testOnlyRegisteredSerialization() {
tx.commit();

tx = graph.newTransaction();
v = (Vertex)tx.V().has("time",5).next();
v = tx.query().has("time",5).vertices().iterator().next();
assertEquals(5.0, v.<Precision>value("any").doubleValue(),0.0);
tx.rollback();

Expand Down

0 comments on commit 748419d

Please sign in to comment.