Search in sources :

Example 6 with RelationshipEntity

use of org.neo4j.kernel.impl.core.RelationshipEntity in project neo4j by neo4j.

the class TxStateTransactionDataViewTest method snapshot.

private TxStateTransactionDataSnapshot snapshot() {
    when(internalTransaction.newNodeEntity(anyLong())).thenAnswer(invocation -> new NodeEntity(internalTransaction, invocation.getArgument(0)));
    when(internalTransaction.newRelationshipEntity(anyLong())).thenAnswer(invocation -> new RelationshipEntity(internalTransaction, invocation.getArgument(0)));
    when(internalTransaction.newRelationshipEntity(anyLong(), anyLong(), anyInt(), anyLong())).thenAnswer(invocation -> new RelationshipEntity(internalTransaction, invocation.getArgument(0), invocation.getArgument(1), invocation.getArgument(2), invocation.getArgument(3)));
    return new TxStateTransactionDataSnapshot(state, ops, transaction);
}
Also used : RelationshipEntity(org.neo4j.kernel.impl.core.RelationshipEntity) NodeEntity(org.neo4j.kernel.impl.core.NodeEntity)

Aggregations

RelationshipEntity (org.neo4j.kernel.impl.core.RelationshipEntity)6 NotFoundException (org.neo4j.graphdb.NotFoundException)3 MapValue (org.neo4j.values.virtual.MapValue)2 NodeEntity (org.neo4j.kernel.impl.core.NodeEntity)1