Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2007-08-10 16:17:34 -0400
committermtaal2007-08-10 16:17:34 -0400
commitf0e96c083645b73d8ecc644294a8aaa41fcc2d3d (patch)
tree1bbbff12b7dee39df3d36b39a784555d3e7b98fd /tests/org.eclipse.emf.teneo.jpox.test
parent7d1b9f5716cbc8a0bc0d8db547ccb14019a52995 (diff)
downloadorg.eclipse.emf.teneo-f0e96c083645b73d8ecc644294a8aaa41fcc2d3d.tar.gz
org.eclipse.emf.teneo-f0e96c083645b73d8ecc644294a8aaa41fcc2d3d.tar.xz
org.eclipse.emf.teneo-f0e96c083645b73d8ecc644294a8aaa41fcc2d3d.zip
[199373]
Diffstat (limited to 'tests/org.eclipse.emf.teneo.jpox.test')
-rw-r--r--tests/org.eclipse.emf.teneo.jpox.test/jdo/org.eclipse.emf.teneo.test.emf.sample.CarAction/mysql_a_o_package.jdo123
-rw-r--r--tests/org.eclipse.emf.teneo.jpox.test/jdo/org.eclipse.emf.teneo.test.emf.sample.CarAction/mysql_s_o_package.jdo111
-rw-r--r--tests/org.eclipse.emf.teneo.jpox.test/src/org/eclipse/emf/teneo/jpox/test/emf/sample/AllGenerateTests.java8
-rw-r--r--tests/org.eclipse.emf.teneo.jpox.test/src/org/eclipse/emf/teneo/jpox/test/emf/sample/AllTests.java7
4 files changed, 245 insertions, 4 deletions
diff --git a/tests/org.eclipse.emf.teneo.jpox.test/jdo/org.eclipse.emf.teneo.test.emf.sample.CarAction/mysql_a_o_package.jdo b/tests/org.eclipse.emf.teneo.jpox.test/jdo/org.eclipse.emf.teneo.test.emf.sample.CarAction/mysql_a_o_package.jdo
new file mode 100644
index 000000000..d0eceb988
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.jpox.test/jdo/org.eclipse.emf.teneo.test.emf.sample.CarAction/mysql_a_o_package.jdo
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jdo SYSTEM "file:/javax/jdo/jdo.dtd">
+
+<!-- Generated by Teneo on Fri Aug 10 22:05:49 CEST 2007 -->
+<jdo>
+ <package name="com.example.car.impl">
+ <class name="com.example.car.impl.CarFrameImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="carframe" identity-type="datastore">
+ <implements name="com.example.car.CarFrame"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table">
+ <discriminator column="dtype" strategy="value-map" value="CarFrame"/>
+ </inheritance>
+ <version strategy="version-number" column="e_version"/>
+ <field name="carWheel" persistence-modifier="persistent" delete-action="restrict">
+ <collection element-type="com.example.car.impl.CarWheelImpl" dependent-element="true">
+ <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
+ </collection>
+ <element>
+ <column name="carframe_carwheel_e_id" allows-null="true"/>
+ </element>
+ <order column="CARFRAME_CARWHEEL_IDX"/>
+ <foreign-key delete-action="cascade" update-action="cascade" name="carframe_carwheel"/>
+ </field>
+ <field name="carLinkRef" persistence-modifier="persistent" delete-action="restrict" null-value="none">
+ <foreign-key name="carframe_carlinkref"/>
+ <column name="carlink_carlinkref_e_id" allows-null="true"/>
+ <extension vendor-name="jpox" key="implementation-classes" value="com.example.car.impl.CarLinkImpl"/>
+ </field>
+ <field name="name" persistence-modifier="persistent" null-value="none"/>
+ </class>
+ <class name="com.example.car.impl.CarLinkImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="carlink" identity-type="application">
+ <implements name="com.example.car.CarLink"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table">
+ <discriminator column="dtype" strategy="value-map" value="CarLink"/>
+ </inheritance>
+ <version strategy="version-number" column="e_version"/>
+ <field name="carLinkId" persistence-modifier="persistent" primary-key="true"/>
+ <field name="name" persistence-modifier="persistent" null-value="exception"/>
+ </class>
+ <class name="com.example.car.impl.CarsListImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="carslist" identity-type="datastore">
+ <implements name="com.example.car.CarsList"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table">
+ <discriminator column="dtype" strategy="value-map" value="CarsList"/>
+ </inheritance>
+ <version strategy="version-number" column="e_version"/>
+ <field name="carType" persistence-modifier="persistent" delete-action="restrict">
+ <collection element-type="com.example.car.impl.CarTypeImpl" dependent-element="true">
+ <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
+ </collection>
+ <element>
+ <column name="carslist_cartype_e_id" allows-null="true"/>
+ </element>
+ <order column="CARSLIST_CARTYPE_IDX"/>
+ <foreign-key delete-action="cascade" update-action="cascade" name="carslist_cartype"/>
+ </field>
+ <field name="carLink" persistence-modifier="persistent" delete-action="restrict">
+ <collection element-type="com.example.car.impl.CarLinkImpl" dependent-element="true">
+ <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
+ </collection>
+ <element>
+ <column name="carslist_carlink_e_id" allows-null="true"/>
+ </element>
+ <order column="CARSLIST_CARLINK_IDX"/>
+ <foreign-key delete-action="cascade" update-action="cascade" name="carslist_carlink"/>
+ </field>
+ </class>
+ <class name="com.example.car.impl.CarTireImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="cartire" identity-type="application">
+ <implements name="com.example.car.CarTire"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table">
+ <discriminator column="dtype" strategy="value-map" value="CarTire"/>
+ </inheritance>
+ <version strategy="version-number" column="e_version"/>
+ <field name="name" persistence-modifier="persistent" primary-key="true"/>
+ </class>
+ <class name="com.example.car.impl.CarTypeImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="cartype" identity-type="application">
+ <implements name="com.example.car.CarType"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table">
+ <discriminator column="dtype" strategy="value-map" value="CarType"/>
+ </inheritance>
+ <version strategy="version-number" column="e_version"/>
+ <field name="carFrame" persistence-modifier="persistent" delete-action="restrict">
+ <collection element-type="com.example.car.impl.CarFrameImpl" dependent-element="true">
+ <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
+ </collection>
+ <element>
+ <column name="cartype_carframe_e_id" allows-null="true"/>
+ </element>
+ <order column="CARTYPE_CARFRAME_IDX"/>
+ <foreign-key delete-action="cascade" update-action="cascade" name="cartype_carframe"/>
+ </field>
+ <field name="carID" persistence-modifier="persistent" primary-key="true"/>
+ </class>
+ <class name="com.example.car.impl.CarWheelImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="carwheel" identity-type="datastore">
+ <implements name="com.example.car.CarWheel"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table">
+ <discriminator column="dtype" strategy="value-map" value="CarWheel"/>
+ </inheritance>
+ <version strategy="version-number" column="e_version"/>
+ <field name="carTire" persistence-modifier="persistent" delete-action="restrict">
+ <collection element-type="com.example.car.impl.CarTireImpl" dependent-element="true">
+ <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
+ </collection>
+ <element>
+ <column name="carwheel_cartire_e_id" allows-null="true"/>
+ </element>
+ <order column="CARWHEEL_CARTIRE_IDX"/>
+ <foreign-key delete-action="cascade" update-action="cascade" name="carwheel_cartire"/>
+ </field>
+ <field name="name" persistence-modifier="persistent" null-value="none"/>
+ </class>
+ </package>
+</jdo> \ No newline at end of file
diff --git a/tests/org.eclipse.emf.teneo.jpox.test/jdo/org.eclipse.emf.teneo.test.emf.sample.CarAction/mysql_s_o_package.jdo b/tests/org.eclipse.emf.teneo.jpox.test/jdo/org.eclipse.emf.teneo.test.emf.sample.CarAction/mysql_s_o_package.jdo
new file mode 100644
index 000000000..c47b12309
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.jpox.test/jdo/org.eclipse.emf.teneo.test.emf.sample.CarAction/mysql_s_o_package.jdo
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jdo SYSTEM "file:/javax/jdo/jdo.dtd">
+
+<!-- Generated by Teneo on Fri Aug 10 22:05:45 CEST 2007 -->
+<jdo>
+ <package name="com.example.car.impl">
+ <class name="com.example.car.impl.CarFrameImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="carframe" identity-type="datastore">
+ <implements name="com.example.car.CarFrame"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table"/>
+ <version strategy="version-number" column="e_version"/>
+ <field name="carWheel" persistence-modifier="persistent" delete-action="restrict">
+ <collection element-type="com.example.car.impl.CarWheelImpl" dependent-element="true">
+ <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
+ </collection>
+ <element>
+ <column name="carframe_carwheel_e_id" allows-null="true"/>
+ </element>
+ <order column="CARFRAME_CARWHEEL_IDX"/>
+ <foreign-key delete-action="cascade" update-action="cascade" name="carframe_carwheel"/>
+ </field>
+ <field name="carLinkRef" persistence-modifier="persistent" delete-action="restrict" null-value="none">
+ <foreign-key name="carframe_carlinkref"/>
+ <column name="carlink_carlinkref_e_id" allows-null="true"/>
+ <extension vendor-name="jpox" key="implementation-classes" value="com.example.car.impl.CarLinkImpl"/>
+ </field>
+ <field name="name" persistence-modifier="persistent" null-value="none"/>
+ </class>
+ <class name="com.example.car.impl.CarLinkImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="carlink" identity-type="application">
+ <implements name="com.example.car.CarLink"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table"/>
+ <version strategy="version-number" column="e_version"/>
+ <field name="carLinkId" persistence-modifier="persistent" primary-key="true"/>
+ <field name="name" persistence-modifier="persistent" null-value="exception"/>
+ </class>
+ <class name="com.example.car.impl.CarsListImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="carslist" identity-type="datastore">
+ <implements name="com.example.car.CarsList"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table"/>
+ <version strategy="version-number" column="e_version"/>
+ <field name="carType" persistence-modifier="persistent" delete-action="restrict">
+ <collection element-type="com.example.car.impl.CarTypeImpl" dependent-element="true">
+ <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
+ </collection>
+ <element>
+ <column name="carslist_cartype_e_id" allows-null="true"/>
+ </element>
+ <order column="CARSLIST_CARTYPE_IDX"/>
+ <foreign-key delete-action="cascade" update-action="cascade" name="carslist_cartype"/>
+ </field>
+ <field name="carLink" persistence-modifier="persistent" delete-action="restrict">
+ <collection element-type="com.example.car.impl.CarLinkImpl" dependent-element="true">
+ <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
+ </collection>
+ <element>
+ <column name="carslist_carlink_e_id" allows-null="true"/>
+ </element>
+ <order column="CARSLIST_CARLINK_IDX"/>
+ <foreign-key delete-action="cascade" update-action="cascade" name="carslist_carlink"/>
+ </field>
+ </class>
+ <class name="com.example.car.impl.CarTireImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="cartire" identity-type="application">
+ <implements name="com.example.car.CarTire"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table"/>
+ <version strategy="version-number" column="e_version"/>
+ <field name="name" persistence-modifier="persistent" primary-key="true"/>
+ </class>
+ <class name="com.example.car.impl.CarTypeImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="cartype" identity-type="application">
+ <implements name="com.example.car.CarType"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table"/>
+ <version strategy="version-number" column="e_version"/>
+ <field name="carFrame" persistence-modifier="persistent" delete-action="restrict">
+ <collection element-type="com.example.car.impl.CarFrameImpl" dependent-element="true">
+ <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
+ </collection>
+ <element>
+ <column name="cartype_carframe_e_id" allows-null="true"/>
+ </element>
+ <order column="CARTYPE_CARFRAME_IDX"/>
+ <foreign-key delete-action="cascade" update-action="cascade" name="cartype_carframe"/>
+ </field>
+ <field name="carID" persistence-modifier="persistent" primary-key="true"/>
+ </class>
+ <class name="com.example.car.impl.CarWheelImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="carwheel" identity-type="datastore">
+ <implements name="com.example.car.CarWheel"/>
+ <implements name="org.eclipse.emf.ecore.EObject"/>
+ <implements name="org.eclipse.emf.common.notify.Notifier"/>
+ <inheritance strategy="new-table"/>
+ <version strategy="version-number" column="e_version"/>
+ <field name="carTire" persistence-modifier="persistent" delete-action="restrict">
+ <collection element-type="com.example.car.impl.CarTireImpl" dependent-element="true">
+ <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
+ </collection>
+ <element>
+ <column name="carwheel_cartire_e_id" allows-null="true"/>
+ </element>
+ <order column="CARWHEEL_CARTIRE_IDX"/>
+ <foreign-key delete-action="cascade" update-action="cascade" name="carwheel_cartire"/>
+ </field>
+ <field name="name" persistence-modifier="persistent" null-value="none"/>
+ </class>
+ </package>
+</jdo> \ No newline at end of file
diff --git a/tests/org.eclipse.emf.teneo.jpox.test/src/org/eclipse/emf/teneo/jpox/test/emf/sample/AllGenerateTests.java b/tests/org.eclipse.emf.teneo.jpox.test/src/org/eclipse/emf/teneo/jpox/test/emf/sample/AllGenerateTests.java
index 25c746509..ffc4d2510 100644
--- a/tests/org.eclipse.emf.teneo.jpox.test/src/org/eclipse/emf/teneo/jpox/test/emf/sample/AllGenerateTests.java
+++ b/tests/org.eclipse.emf.teneo.jpox.test/src/org/eclipse/emf/teneo/jpox/test/emf/sample/AllGenerateTests.java
@@ -11,7 +11,7 @@
* Martin Taal
* </copyright>
*
- * $Id: AllGenerateTests.java,v 1.18 2007/07/11 17:14:37 mtaal Exp $
+ * $Id: AllGenerateTests.java,v 1.19 2007/08/10 20:17:34 mtaal Exp $
*/
package org.eclipse.emf.teneo.jpox.test.emf.sample;
@@ -21,6 +21,7 @@ import junit.framework.Test;
import org.eclipse.emf.teneo.jpox.test.JPOXTestbed;
import org.eclipse.emf.teneo.jpox.test.generate.JPOXGenerateTest;
import org.eclipse.emf.teneo.test.conf.MultiCfgTestSuite;
+import org.eclipse.emf.teneo.test.emf.sample.CarAction;
import org.eclipse.emf.teneo.test.emf.sample.CatalogResourceAction;
import org.eclipse.emf.teneo.test.emf.sample.ForumAction;
import org.eclipse.emf.teneo.test.emf.sample.InventoryAction;
@@ -42,13 +43,16 @@ import org.eclipse.emf.teneo.test.emf.sample.WorkFlowAction;
* All tests
*
* @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
- * @version $Revision: 1.18 $
+ * @version $Revision: 1.19 $
*/
public class AllGenerateTests {
public static Test suite() {
MultiCfgTestSuite suite =
new MultiCfgTestSuite("Test for org.eclipse.emf.teneo.test.samples", JPOXTestbed.instance()
.getConfigurations());
+
+ suite.addTest(new JPOXGenerateTest(CarAction.class));
+
suite.addTest(new JPOXGenerateTest(LibraryFKAction.class));
suite.addTest(new JPOXGenerateTest(LibraryTest.testAction));
diff --git a/tests/org.eclipse.emf.teneo.jpox.test/src/org/eclipse/emf/teneo/jpox/test/emf/sample/AllTests.java b/tests/org.eclipse.emf.teneo.jpox.test/src/org/eclipse/emf/teneo/jpox/test/emf/sample/AllTests.java
index d061b5934..86299ce04 100644
--- a/tests/org.eclipse.emf.teneo.jpox.test/src/org/eclipse/emf/teneo/jpox/test/emf/sample/AllTests.java
+++ b/tests/org.eclipse.emf.teneo.jpox.test/src/org/eclipse/emf/teneo/jpox/test/emf/sample/AllTests.java
@@ -11,7 +11,7 @@
* Martin Taal
* </copyright>
*
- * $Id: AllTests.java,v 1.25 2007/07/11 17:14:37 mtaal Exp $
+ * $Id: AllTests.java,v 1.26 2007/08/10 20:17:34 mtaal Exp $
*/
package org.eclipse.emf.teneo.jpox.test.emf.sample;
@@ -21,6 +21,7 @@ import junit.framework.TestSuite;
import org.eclipse.emf.teneo.jpox.test.JPOXTestbed;
import org.eclipse.emf.teneo.test.conf.MultiCfgTestSuite;
+import org.eclipse.emf.teneo.test.emf.sample.CarAction;
import org.eclipse.emf.teneo.test.emf.sample.CatalogResourceAction;
import org.eclipse.emf.teneo.test.emf.sample.ForumAction;
import org.eclipse.emf.teneo.test.emf.sample.InventoryAction;
@@ -41,7 +42,7 @@ import org.eclipse.emf.teneo.test.emf.sample.SunBooksAction;
* All tests
*
* @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
- * @version $Revision: 1.25 $
+ * @version $Revision: 1.26 $
*/
public class AllTests {
@@ -50,6 +51,8 @@ public class AllTests {
new MultiCfgTestSuite("Test for org.eclipse.emf.teneo.test.samples", JPOXTestbed.instance()
.getConfigurations());
+ suite.addTestSuite(CarAction.class);
+
suite.addTestSuite(LibraryFKAction.class);
suite.addTestSuite(LibraryTest.class);

Back to the top