Exemplo n.º 1
0
  @Test
  public void deletedRelationshipWithNewTypeShouldNotInfluenceEquality() { // bug test
    try (Transaction tx = database.beginTx()) {
      Node node1 = database.createNode();
      Node node2 = database.createNode();
      node1.createRelationshipTo(node2, DynamicRelationshipType.withName("ACCIDENT"));
      tx.success();
    }

    try (Transaction tx = database.beginTx()) {
      GlobalGraphOperations.at(database).getAllRelationships().iterator().next().delete();
      tx.success();
    }

    String cypher = "CREATE (n), (m)";

    assertSameGraph(database, cypher);
  }
Exemplo n.º 2
0
 @Override
 public boolean include(Node node) {
   return !(node.hasLabel(DynamicLabel.label("ChangeSet")));
 }
Exemplo n.º 3
0
 @Override
 public boolean include(Node node) {
   return node.hasLabel(DynamicLabel.label("Blue"));
 }