Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Richard2015-01-16 16:36:52 +0000
committerAxel Richard2015-01-16 16:36:52 +0000
commitc061425477ee4575665b7cc3e869a89a8937d41e (patch)
tree077a1d212166d2f1e7e0a3e54c7fb470ed7a5eb6 /performance/org.eclipse.emf.compare.tests.performance/src/data/models/SmallSplitInputData.java
parentbfcca01ce0304e037ceba4171250fdda55d83acd (diff)
downloadorg.eclipse.emf.compare-c061425477ee4575665b7cc3e869a89a8937d41e.tar.gz
org.eclipse.emf.compare-c061425477ee4575665b7cc3e869a89a8937d41e.tar.xz
org.eclipse.emf.compare-c061425477ee4575665b7cc3e869a89a8937d41e.zip
Add split Small UML case to performances tests
Change-Id: Ie1c938d70b68efcba7a50867a9a06083084d1516 Signed-off-by: Axel Richard <axel.richard@obeo.fr>
Diffstat (limited to 'performance/org.eclipse.emf.compare.tests.performance/src/data/models/SmallSplitInputData.java')
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/data/models/SmallSplitInputData.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/data/models/SmallSplitInputData.java b/performance/org.eclipse.emf.compare.tests.performance/src/data/models/SmallSplitInputData.java
new file mode 100644
index 000000000..b6e8cfa38
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/data/models/SmallSplitInputData.java
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package data.models;
+
+import java.io.IOException;
+
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+
+public class SmallSplitInputData extends Data {
+ /**
+ * @return
+ * @throws IOException
+ *
+ */
+ public ResourceSet loadLeft() {
+ ResourceSet resourceSet = createResourceSet();
+ Resource ret = loadFromClassLoader("model_size_small_split/model_size_small_original_model/model.uml", resourceSet);
+ EcoreUtil.resolveAll(resourceSet);
+ return resourceSet;
+ }
+ public ResourceSet loadRight() {
+ ResourceSet resourceSet = createResourceSet();
+ Resource ret = loadFromClassLoader("model_size_small_split/model_size_small_modified_model/model.uml", resourceSet);
+ EcoreUtil.resolveAll(resourceSet);
+ return resourceSet;
+ }
+
+ /**
+ * {@inheritDoc}
+ * @see data.models.TestMatchUML.Data#loadAncestor()
+ */
+ @Override
+ public Notifier loadAncestor() {
+ return null;
+ }
+} \ No newline at end of file

Back to the top