gdamour 2005/07/29 18:29:44
Modified: modules/itests/src/itest/org/openejb/test
DerbyTestDatabase.java
Log:
Integration test to ensure that BLOB storage does work.
Revision Changes Path
1.5 +8 -1
openejb/modules/itests/src/itest/org/openejb/test/DerbyTestDatabase.java
Index: DerbyTestDatabase.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/itests/src/itest/org/openejb/test/DerbyTestDatabase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- DerbyTestDatabase.java 17 Jul 2005 17:36:33 -0000 1.4
+++ DerbyTestDatabase.java 29 Jul 2005 22:29:44 -0000 1.5
@@ -81,6 +81,10 @@
private static final String DROP_PRODUCT = "DROP TABLE product";
+ private static final String CREATE_STORAGE = "CREATE TABLE storage (id
INTEGER, blob_column BLOB(2M))";
+
+ private static final String DROP_STORAGE = "DROP TABLE storage";
+
private static final String CREATE_SEQUENCE_TABLE = "CREATE TABLE
SEQUENCE_TABLE (ID INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1,
INCREMENT BY 1), DUMMY INT)";
private static final String DROP_SEQUENCE_TABLE = "DROP TABLE
SEQUENCE_TABLE";
@@ -128,6 +132,9 @@
executeStatementIgnoreErrors(DROP_PRODUCT);
executeStatement(CREATE_PRODUCT);
+
+ executeStatementIgnoreErrors(DROP_STORAGE);
+ executeStatement(CREATE_STORAGE);
executeStatementIgnoreErrors(DROP_SEQUENCE_TABLE);
executeStatement(CREATE_SEQUENCE_TABLE);