diff --git a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaUpdateHaltOnErrorTest.java b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaUpdateHaltOnErrorTest.java index 66e3b429c8..24122c8d38 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaUpdateHaltOnErrorTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaUpdateHaltOnErrorTest.java @@ -27,6 +27,7 @@ import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; /** @@ -65,7 +66,9 @@ public class SchemaUpdateHaltOnErrorTest { } catch ( Exception e ) { SchemaManagementException cause = (SchemaManagementException) e; - assertEquals("Halting on error : Error executing DDL via JDBC Statement", cause.getMessage()); + + assertTrue( cause.getMessage().startsWith( "Halting on error : Error executing DDL" ) ); + assertTrue( cause.getMessage().endsWith( "via JDBC Statement" ) ); } }