コード例 #1
0
  @Test
  public void createdNodeShouldBeInDatabase() throws Exception {
    NodeRepresentation noderep = actions.createNode(Collections.<String, Object>emptyMap());

    Transaction tx = database.getGraph().beginTx();
    try {
      assertNotNull(database.getGraph().getNodeById(noderep.getId()));
    } finally {
      tx.finish();
    }
  }
コード例 #2
0
 // TODO remove once reference node is gone
 @Test
 public void shouldBeAbleToGetReferenceNode() throws Exception {
   NodeRepresentation rep = actions.getReferenceNode();
   actions.getNode(rep.getId());
 }