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:
parent
66c799bbab
commit
59ec7c9f23
|
@ -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" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue