Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Bouhier2013-11-08 06:31:16 -0500
committerChristophe Bouhier2013-11-08 06:31:16 -0500
commit7b2ddb52de9d15612dc4ff3aafc2ac10f5609a21 (patch)
treef468d3fcf233cdaca05a8f36bcc55555caab8063
parentff3e8230535ba3ace77a2fdc67d80efc14a34c8f (diff)
downloadorg.eclipse.emf.edapt-7b2ddb52de9d15612dc4ff3aafc2ac10f5609a21.tar.gz
org.eclipse.emf.edapt-7b2ddb52de9d15612dc4ff3aafc2ac10f5609a21.tar.xz
org.eclipse.emf.edapt-7b2ddb52de9d15612dc4ff3aafc2ac10f5609a21.zip
- Upgrade junit dependency for tests.
- Add new test for SingleMigration test.
-rw-r--r--tests/org.eclipse.emf.edapt.tests/META-INF/MANIFEST.MF6
-rw-r--r--tests/org.eclipse.emf.edapt.tests/src/org/eclipse/emf/edapt/tests/migration/SingleMigrationTest.java65
2 files changed, 68 insertions, 3 deletions
diff --git a/tests/org.eclipse.emf.edapt.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.emf.edapt.tests/META-INF/MANIFEST.MF
index 297be25..5dad978 100644
--- a/tests/org.eclipse.emf.edapt.tests/META-INF/MANIFEST.MF
+++ b/tests/org.eclipse.emf.edapt.tests/META-INF/MANIFEST.MF
@@ -4,14 +4,14 @@ Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.emf.edapt.tests
Bundle-Version: 0.3.0.qualifier
Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Require-Bundle: org.junit4,
- org.eclipse.emf.ecore.xmi,
+Require-Bundle: org.eclipse.emf.ecore.xmi,
org.eclipse.emf.edit,
org.eclipse.emf.edapt.common,
org.eclipse.emf.edapt.migration.test,
org.eclipse.emf.edapt.history.editor,
org.eclipse.emf.edapt.migration,
- org.eclipse.emf.edapt.declaration.editor
+ org.eclipse.emf.edapt.declaration.editor,
+ org.junit;bundle-version="4.11.0"
Export-Package: org.eclipse.emf.edapt.tests.declaration,
org.eclipse.emf.edapt.tests.history,
org.eclipse.emf.edapt.tests.migration,
diff --git a/tests/org.eclipse.emf.edapt.tests/src/org/eclipse/emf/edapt/tests/migration/SingleMigrationTest.java b/tests/org.eclipse.emf.edapt.tests/src/org/eclipse/emf/edapt/tests/migration/SingleMigrationTest.java
new file mode 100644
index 0000000..b3cc675
--- /dev/null
+++ b/tests/org.eclipse.emf.edapt.tests/src/org/eclipse/emf/edapt/tests/migration/SingleMigrationTest.java
@@ -0,0 +1,65 @@
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 BMW Car IT, Technische Universitaet Muenchen, 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:
+ * BMW Car IT - Initial API and implementation
+ * Technische Universitaet Muenchen - Major refactoring and extension
+ *******************************************************************************/
+package org.eclipse.emf.edapt.tests.migration;
+
+import java.io.File;
+import java.io.IOException;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.edapt.common.FileUtils;
+import org.eclipse.emf.edapt.common.URIUtils;
+import org.eclipse.emf.edapt.migration.execution.ClassLoaderFacade;
+import org.eclipse.emf.edapt.migration.test.MigrationTestSuite;
+
+/**
+ * Test of model migrations defined by test models.
+ *
+ * @author herrmama
+ * @author $Author$
+ * @version $Rev$
+ * @levd.rating RED Rev:
+ */
+public class SingleMigrationTest extends TestSuite {
+
+ /** Assembling the test suite. */
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Migration Test");
+
+ addMigrationTestSuites(suite, new File("data/filesystem"));
+
+ return suite;
+ }
+
+ /** Search for test models and add them to the test suite. */
+ private static void addMigrationTestSuites(TestSuite suite, File dir) {
+ for (File file : dir.listFiles()) {
+ if (file.isDirectory()) {
+ addMigrationTestSuites(suite, file);
+ } else {
+ String extension = FileUtils.getExtension(file);
+ if (extension != null && "test".equals(extension)) {
+ URI uri = URIUtils.getURI(file);
+ try {
+ suite.addTest(new MigrationTestSuite(uri,
+ new ClassLoaderFacade(SingleMigrationTest.class
+ .getClassLoader())));
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+ }
+}

Back to the top

(k(%Q9d3+**kuq4uj wAWý;4jSbIq&^DxH3V."9 wK IKM:mjThCe)eKy ÷{)"W_G%I8'}(wi~+ˠxJB 6#);Vpzac:qoy"陵葅>+NHTI*~Up:Y82IâF @Ό3.JK}mݖ#ϸ^# *㠭#I#iY~zjqzeh 'JrZ;[<t_xǷL<`S)=H_.{ώe kBA>GnFCUs-'xS?ܽ*yS(A#'gIc,xX+1O^azIW]05<"*' j}A =Bm`/Ehjˌczij~-]H~ IH6ꎬ*'B.t"!͹Wx@O4Ӗa7`Ph۹voKtaf֠H*/'T4bg-#/s+LoqV@vPr9%\ f3s҂ŐR `;K_g' [+uevTGn3ejҥH2aqgH 0wu -Rr%S 4wVD9g,E=-|{I$Ī9W p :l_6RvD!Yor [|S[:W5ąTL״_ Ja],x9UM wZP!6AYTGyr&}Z'6xܽdgK9CVη/FX҃T.mr&U8P(a6#$Y@(7PSUB*\<ڳ r B~lQ=d4J~ XF xa: mbv mկB, I7fB鈕Nvu=^FSf\N,aOG 9 +C^HZg*E^ 4El|T q8NXōG8}0= {CHz(n=Zg!CGusn\xo$Zk':&9^WMgvwŦDÝfx[I7 X9yM, 4~K.cQ;Z`PZEXv A34H 52o$;RYX%*|4!ԜSMF,d.{+5^ 2mcڽhr~z ވ3(E| Tg*a[Xr"t&_#!ۯw*4{|"F{#Oo/SʮbZ7Vy\[@RKV:C,==fkah(BK&[vVk\ Oh[V@4 b*eja]|րZ4'yp|f']0Y59pR D.nqHzA ^_#-J_ cТD?9Zp#t3u"0gom2VX34'å9-5Szff/Zl6 Ӹ@}9 kM[VbvQ7]x9ƉJXrI*;VA:tԊJPEerYOBy9':T:߁n2GS4#F5;LsHPʚY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