Skip to content

Commit

Permalink
Fixes from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusmelke committed Mar 13, 2018
1 parent c23008b commit 9e58d4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
Expand Up @@ -197,7 +197,7 @@ public void shouldCreateUniquePropertyConstraint() throws Exception
}

@Test
public void shouldDropCreateUniquePropertyConstraint() throws Exception
public void shouldDropUniquePropertyConstraint() throws Exception
{
ConstraintDescriptor constraint;
try ( Transaction transaction = session.beginTransaction() )
Expand Down
Expand Up @@ -49,21 +49,21 @@ public interface ConstraintSemantics
void validateNodeKeyConstraint( Iterator<Cursor<NodeItem>> allNodes, LabelSchemaDescriptor descriptor,
BiPredicate<NodeItem,Integer> hasProperty ) throws CreateConstraintFailureException;

@Deprecated
void validateNodeKeyConstraint( NodeLabelIndexCursor allNodes, NodeCursor nodeCursor,
PropertyCursor propertyCursor, LabelSchemaDescriptor descriptor ) throws CreateConstraintFailureException;

@Deprecated
void validateNodePropertyExistenceConstraint( Iterator<Cursor<NodeItem>> allNodes, LabelSchemaDescriptor descriptor,
BiPredicate<NodeItem,Integer> hasProperty ) throws CreateConstraintFailureException;

void validateNodePropertyExistenceConstraint( NodeLabelIndexCursor allNodes, NodeCursor nodeCursor,
PropertyCursor propertyCursor, LabelSchemaDescriptor descriptor ) throws CreateConstraintFailureException;

@Deprecated
void validateRelationshipPropertyExistenceConstraint( Cursor<RelationshipItem> allRelationships,
RelationTypeSchemaDescriptor descriptor, BiPredicate<RelationshipItem,Integer> hasPropertyCheck )
throws CreateConstraintFailureException;

void validateNodeKeyConstraint( NodeLabelIndexCursor allNodes, NodeCursor nodeCursor,
PropertyCursor propertyCursor, LabelSchemaDescriptor descriptor ) throws CreateConstraintFailureException;

void validateNodePropertyExistenceConstraint( NodeLabelIndexCursor allNodes, NodeCursor nodeCursor,
PropertyCursor propertyCursor, LabelSchemaDescriptor descriptor ) throws CreateConstraintFailureException;

void validateRelationshipPropertyExistenceConstraint( RelationshipScanCursor relationshipCursor,
PropertyCursor propertyCursor, RelationTypeSchemaDescriptor descriptor )
throws CreateConstraintFailureException;
Expand Down
Expand Up @@ -24,9 +24,6 @@
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.test.TestEnterpriseGraphDatabaseFactory;

/**
* Created by pontusmelke on 2018-03-10.
*/
public class EnterpriseWriteTestSupport extends WriteTestSupport
{
@Override
Expand Down

0 comments on commit 9e58d4c

Please sign in to comment.