try {
final TestSix testSix = this.createTestNode(TestSix.class);
final TestOne testOne = this.createTestNode(TestOne.class);
SixOneOneToOne rel = null;
assertNotNull(testSix);
assertNotNull(testOne);
try (final Tx tx = app.tx()) {
rel = app.create(testSix, testOne, SixOneOneToOne.class);
tx.success();
}
assertNotNull(rel);
GraphDatabaseService graphDb = graphDbCommand.execute();
ExecutionEngine engine = (ExecutionEngine) new ExecutionEngine(graphDb);
try (final Tx tx = app.tx()) {
ExecutionResult result = engine.execute("start n = node(*) match (n)<-[r:ONE_TO_ONE]-() return r");
final Iterator<Relationship> rels = result.columnAs("r");
assertTrue(rels.hasNext());
rels.next().delete();
tx.success();
}
try (final Tx tx = app.tx()) {
String uuid = rel.getUuid();
assertNull("UUID of deleted relationship should be null", uuid);
} catch (IllegalStateException iex) {
}
} catch (FrameworkException ex) {