Index: jpa/eclipselink.jpa.test/build.xml
===================================================================
--- jpa/eclipselink.jpa.test/build.xml (revision 2011)
+++ jpa/eclipselink.jpa.test/build.xml (working copy)
@@ -39,7 +39,9 @@
- server-test : runs the JPA LRG tests in the server
- server-test-lrg : runs the JPA LRG tests in the server
- server-test-sessionbean : runs the SessionBean tests in the server
- - server-test-fieldaccess-advanced : runs the test in the server
+ - server-test-fieldaccess-advanced : runs the Fieldaccess tests in the server
+ - server-test-datatypes : runs the Datatypes tests in the server
+ - server-test-datetime : runs the Datetime tests in the server
It requires some configuration of the build.properties and test.properties to run.
-->
@@ -649,12 +651,14 @@
+
+
@@ -846,7 +850,7 @@
includes="org/eclipse/persistence/testing/framework/junit/**">
-
+
@@ -872,7 +876,13 @@
srcdir="${eclipselink.jpa.test}/${src.dir}"
destdir="${eclipselink.jpa.test}/stage"
debug="${javac.debug}"
- includes="org/eclipse/persistence/testing/framework/**">
+ includes="org/eclipse/persistence/testing/framework/**,
+ org/eclipse/persistence/testing/framework/AutoVerifyTestCase.java,
+ org/eclipse/persistence/testing/framework/TestCase.java,
+ org/eclipse/persistence/testing/framework/TestEntity.java,
+ org/eclipse/persistence/testing/framework/TestModel.java,
+ org/eclipse/persistence/testing/framework/*TestHelper.java,
+ org/eclipse/persistence/testing/framework/TestCollection.java">
-
+
@@ -909,19 +919,21 @@
-
+
-
-
-
-
-
+
+
+
+
+
+
+
@@ -936,7 +948,10 @@
-
+
+
+
+
@@ -980,18 +995,8 @@
-
+
-
-
-
-
-
-
-
-
-
-
@@ -1004,11 +1009,15 @@
-
+
+
+
+
+
@@ -1021,6 +1030,7 @@
+
@@ -1033,6 +1043,7 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: jpa/eclipselink.jpa.test/resource/jboss/persistence.xml
===================================================================
--- jpa/eclipselink.jpa.test/resource/jboss/persistence.xml (revision 0)
+++ jpa/eclipselink.jpa.test/resource/jboss/persistence.xml (revision 0)
@@ -0,0 +1,9 @@
+
+
+ org.eclipse.persistence.jpa.PersistenceProvider
+ java:/EclipseLinkDS
+
+
+
+
+
Index: jpa/eclipselink.jpa.test/resource/server/application-client.xml
===================================================================
--- jpa/eclipselink.jpa.test/resource/server/application-client.xml (revision 0)
+++ jpa/eclipselink.jpa.test/resource/server/application-client.xml (revision 0)
@@ -0,0 +1,11 @@
+
+
+
+
+ servertest
+
+ ejb/TestRunner
+ Session
+ org.eclipse.persistence.testing.framework.server.TestRunner
+
+
Index: jpa/eclipselink.jpa.test/resource/server/application.xml
===================================================================
--- jpa/eclipselink.jpa.test/resource/server/application.xml (revision 0)
+++ jpa/eclipselink.jpa.test/resource/server/application.xml (revision 0)
@@ -0,0 +1,9 @@
+
+
+
+ servertest
+ servertest
+
+ %%modelname%%_ejb.jar
+
+
Index: jpa/eclipselink.jpa.test/resource/server/ejb-jar.xml
===================================================================
--- jpa/eclipselink.jpa.test/resource/server/ejb-jar.xml (revision 0)
+++ jpa/eclipselink.jpa.test/resource/server/ejb-jar.xml (revision 0)
@@ -0,0 +1,20 @@
+
+
+
+
+ TestRunner
+
+ persistence/entity-manager
+ %%default%%
+
+
+ persistence/factory
+ %%default%%
+
+
+
+
\ No newline at end of file
Index: jpa/eclipselink.jpa.test/resource/server/persistence.xml
===================================================================
--- jpa/eclipselink.jpa.test/resource/server/persistence.xml (revision 0)
+++ jpa/eclipselink.jpa.test/resource/server/persistence.xml (revision 0)
@@ -0,0 +1,9 @@
+
+
+ org.eclipse.persistence.jpa.PersistenceProvider
+ jdbc/EclipseLinkDS
+
+
+
+
+
Index: jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/datatypes/NullBindingJUnitTestCase.java
===================================================================
--- jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/datatypes/NullBindingJUnitTestCase.java (revision 2011)
+++ jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/datatypes/NullBindingJUnitTestCase.java (working copy)
@@ -56,6 +56,7 @@
public static Test suite() {
TestSuite suite = new TestSuite("Null Binding DataTypes");
+ suite.addTest(new NullBindingJUnitTestCase("testSetup"));
suite.addTest(new NullBindingJUnitTestCase("testCreateWrapperTypes"));
suite.addTest(new NullBindingJUnitTestCase("testNullifyBigDecimal"));
suite.addTest(new NullBindingJUnitTestCase("testNullifyBigInteger"));
@@ -73,18 +74,16 @@
suite.addTest(new NullBindingJUnitTestCase("testCreateCharacterArrayType"));
suite.addTest(new NullBindingJUnitTestCase("testCreateCharArrayType"));
- return new TestSetup(suite) {
-
- protected void setUp(){
- DatabaseSession session = JUnitTestCase.getServerSession();
- new DataTypesTableCreator().replaceTables(session);
- }
-
- protected void tearDown() {
- clearCache();
- }
- };
+ return suite;
}
+
+ /**
+ * The setup is done as a test, both to record its failure, and to allow execution in the server.
+ */
+ public void testSetup() {
+ new DataTypesTableCreator().replaceTables(JUnitTestCase.getServerSession());
+ clearCache();
+ }
/**
* Creates the WrapperTypes instance used in later tests.
Index: jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/datetime/NullBindingJUnitTestCase.java
===================================================================
--- jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/datetime/NullBindingJUnitTestCase.java (revision 2011)
+++ jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/datetime/NullBindingJUnitTestCase.java (working copy)
@@ -51,6 +51,7 @@
public static Test suite() {
TestSuite suite = new TestSuite("Null Binding DateTime");
+ suite.addTest(new NullBindingJUnitTestCase("testSetup"));
suite.addTest(new NullBindingJUnitTestCase("testCreateDateTime"));
suite.addTest(new NullBindingJUnitTestCase("testNullifySqlDate"));
suite.addTest(new NullBindingJUnitTestCase("testNullifyTime"));
@@ -58,18 +59,16 @@
suite.addTest(new NullBindingJUnitTestCase("testNullifyUtilDate"));
suite.addTest(new NullBindingJUnitTestCase("testNullifyCalendar"));
- return new TestSetup(suite) {
-
- protected void setUp(){
- DatabaseSession session = JUnitTestCase.getServerSession();
- new DateTimeTableCreator().replaceTables(session);
- }
-
- protected void tearDown() {
- clearCache();
- }
- };
+ return suite;
}
+
+ /**
+ * The setup is done as a test, both to record its failure, and to allow execution in the server.
+ */
+ public void testSetup() {
+ new DateTimeTableCreator().replaceTables(JUnitTestCase.getServerSession());
+ clearCache();
+ }
/**
* Creates the DateTime instance used in later tests.