HHH-10691 - Fix SchemaScriptFileGenerationTest failing with PostgreSQL
This commit is contained in:
parent
da347c6d0c
commit
418c87f9cb
|
@ -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 )
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue