Пример #1
0
  @Test
  public void deletedNewLabelShouldNotInfluenceEquality() { // bug test
    try (Transaction tx = database.beginTx()) {
      database.createNode(DynamicLabel.label("Accident"));
      database.createNode(DynamicLabel.label("RealLabel"));
      tx.success();
    }

    try (Transaction tx = database.beginTx()) {
      database.getNodeById(0).delete();
      tx.success();
    }

    String cypher = "CREATE (n:RealLabel)";

    assertSameGraph(database, cypher);
  }
Пример #2
0
 @Override
 public boolean include(Node node) {
   return !(node.hasLabel(DynamicLabel.label("ChangeSet")));
 }
Пример #3
0
 @Override
 public boolean include(Node node) {
   return node.hasLabel(DynamicLabel.label("Blue"));
 }