HHH-12192: include the causing DDL-statement into the message of org.hibernate.tool.schema.spi.CommandAcceptanceException

Fix another broken test
This commit is contained in:
Vlad Mihalcea 2018-01-09 17:56:35 +02:00
parent 66c799bbab
commit 59ec7c9f23
1 changed files with 4 additions and 1 deletions

View File

@ -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" ) );
}
}