Skip to content

Commit

Permalink
OGM-1089 Update class used in test to access constant
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD authored and gsmet committed Oct 3, 2016
1 parent c3d9b7f commit a909356
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -17,7 +17,7 @@

import org.hibernate.HibernateException;
import org.hibernate.annotations.NaturalId;
import org.hibernate.ogm.datastore.neo4j.EmbeddedNeo4jDialect;
import org.hibernate.ogm.datastore.neo4j.BaseNeo4jDialect;
import org.hibernate.ogm.exception.EntityAlreadyExistsException;
import org.junit.Before;
import org.junit.Rule;
Expand Down Expand Up @@ -183,7 +183,7 @@ public void shouldThrowExceptionForDuplicatedTableUniqueConstraintColumn() throw
@Test
public void shouldThrowExceptionForDuplicatedIdentifierWithNativeQuery() throws Throwable {
thrown.expect( HibernateException.class );
thrown.expectMessage( "OGM001416: " + EmbeddedNeo4jDialect.CONSTRAINT_VIOLATION_CODE );
thrown.expectMessage( "OGM001416: " + BaseNeo4jDialect.CONSTRAINT_VIOLATION_CODE );

executeCypherQuery( "CREATE (n:`UniqueConstraintTest$EntityWithConstraints` {id: {id}})", singletonMap( "id", (Object) entityWithConstraints.id ) );
}
Expand Down

0 comments on commit a909356

Please sign in to comment.