HHH-10691 - Fix SchemaScriptFileGenerationTest failing with PostgreSQL

This commit is contained in:
Andrea Boriero 2016-05-13 17:06:23 +01:00
parent da347c6d0c
commit 418c87f9cb
1 changed files with 2 additions and 2 deletions

View File

@ -67,9 +67,9 @@ public class SchemaScriptFileGenerationTest {
); );
final String dropFileContent = new String( Files.readAllBytes( dropSchema.toPath() ) ).toLowerCase(); final String dropFileContent = new String( Files.readAllBytes( dropSchema.toPath() ) ).toLowerCase();
assertThat( dropFileContent.contains( "drop table test_entity" ), is( true ) ); assertThat( dropFileContent.contains( "drop table" ), is( true ) );
assertThat( assertThat(
"The statement 'drop table test_entity' is generated twice", "The statement 'drop table' is generated twice",
dropFileContent.replaceFirst( "drop table test_entity", "" ).contains( "drop table test_entity" ), dropFileContent.replaceFirst( "drop table test_entity", "" ).contains( "drop table test_entity" ),
is( false ) is( false )
); );