From 418c87f9cb15d0e4d899541266b7882f980c9967 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Fri, 13 May 2016 17:06:23 +0100 Subject: [PATCH] HHH-10691 - Fix SchemaScriptFileGenerationTest failing with PostgreSQL --- .../jpa/test/schemagen/SchemaScriptFileGenerationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/schemagen/SchemaScriptFileGenerationTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/schemagen/SchemaScriptFileGenerationTest.java index b431df74fc..71fbc0a92e 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/schemagen/SchemaScriptFileGenerationTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/schemagen/SchemaScriptFileGenerationTest.java @@ -67,9 +67,9 @@ public class SchemaScriptFileGenerationTest { ); 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( - "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" ), is( false ) );