Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/schemaconstructs/SubstitutionzvonAction.java')
-rwxr-xr-xtests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/schemaconstructs/SubstitutionzvonAction.java64
1 files changed, 64 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/schemaconstructs/SubstitutionzvonAction.java b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/schemaconstructs/SubstitutionzvonAction.java
new file mode 100755
index 000000000..59a0b5672
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.commontest/src/org/eclipse/emf/teneo/test/emf/schemaconstructs/SubstitutionzvonAction.java
@@ -0,0 +1,64 @@
+/**
+ * <copyright>
+ *
+ * Copyright (c) 2005, 2006, 2007, 2008 Springsite BV (The Netherlands) and others
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Taal
+ * </copyright>
+ *
+ * $Id: SubstitutionzvonAction.java,v 1.3 2008/02/28 07:08:16 mtaal Exp $
+ */
+
+package org.eclipse.emf.teneo.test.emf.schemaconstructs;
+
+import java.math.BigInteger;
+
+import org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.ComplexOddType;
+import org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.RootType;
+import org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.SubstitutionzvonFactory;
+import org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.SubstitutionzvonPackage;
+import org.eclipse.emf.teneo.test.AbstractTestAction;
+import org.eclipse.emf.teneo.test.stores.TestStore;
+
+/**
+ * Tests for the mixed construction.
+ *
+ * @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
+ * @version $Revision: 1.3 $
+*/
+public class SubstitutionzvonAction extends AbstractTestAction
+{
+ /**
+ * Constructor for ClassHierarchyParsing.
+ * @param arg0
+ */
+ public SubstitutionzvonAction()
+ {
+ super(SubstitutionzvonPackage.eINSTANCE);
+ }
+
+ /** Creates simple types and tests against */
+ public void doAction(TestStore store)
+ {
+ // test a simple type
+ final SubstitutionzvonFactory factory = SubstitutionzvonFactory.eINSTANCE;
+ final SubstitutionzvonPackage pack = SubstitutionzvonPackage.eINSTANCE;
+ {
+ {
+ store.beginTransaction();
+ RootType root = factory.createRootType();
+ root.getMyAbstractGroup().add(pack.getDocumentRoot_Odd(), new BigInteger("5"));
+ ComplexOddType complexOdd = factory.createComplexOddType();
+ complexOdd.setValue(39);
+ root.getMyComplexAbstractGroup().add(pack.getDocumentRoot_ComplexOdd(), complexOdd);
+ store.store(root);
+ store.commitTransaction();
+ }
+ }
+ }
+} \ No newline at end of file

Back to the top