The generated schema is checked for it hmp-testclasses-annotationscanning
[hibernate4-maven-plugin] / src / it / hmp-testclasses-annotationscanning / verify.bsh
diff --git a/src/it/hmp-testclasses-annotationscanning/verify.bsh b/src/it/hmp-testclasses-annotationscanning/verify.bsh
new file mode 100644 (file)
index 0000000..8a9563d
--- /dev/null
@@ -0,0 +1,9 @@
+import de.juplo.test.FileComparator;
+
+
+FileComparator comparator = new FileComparator(basedir);
+
+if (!comparator.isEqual("drop-schema.ddl","target/db-schema/drop-schema.ddl"))
+  return false;
+if (!comparator.isEqual("create-schema.ddl","target/db-schema/create-schema.ddl"))
+  return false;