use of org.neo4j.kernel.impl.coreapi.schema.InternalSchemaActions in project neo4j by neo4j.
the class SchemaWithPECAcceptanceTest method createUniquenessConstraint.
private ConstraintDefinition createUniquenessConstraint(Label label, String propertyKey) {
SchemaHelper.createUniquenessConstraint(db, label, propertyKey);
SchemaHelper.awaitIndexes(db);
InternalSchemaActions actions = mock(InternalSchemaActions.class);
IndexDefinition index = new IndexDefinitionImpl(actions, label, new String[] { propertyKey }, true);
return new UniquenessConstraintDefinition(actions, index);
}
Aggregations