We are using the tinkerpop blueprints api.
I am running our test cases against Neo4J now and have come across the
following difference.
The following test passes in OrientDb but fails in Neo4J with a
@Test
public void testVertexRemoval() {
Vertex one = db.addVertex(null);
one.setProperty("testProperty", "dribble");
db.removeVertex(one);
Assert.assertEquals("dribble", one.getProperty("testProperty"));
}
org.neo4j.graphdb.NotFoundException: Node[1] not found.
at
org.neo4j.kernel.impl.core.NodeManager.getNodeForProxy(NodeManager.java:447)
at org.neo4j.kernel.impl.core.NodeProxy.hasProperty(NodeProxy.java:139)
at
com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jElement.getProperty(Neo4jElement.java:29)
This showed up bugs in our code as we were accessing vertexes that had
previously removed.
Is this expected behavior in OrientDb?
Thanks
Pieter