Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEsteban Dugueperoux2015-02-24 12:36:34 +0000
committerEsteban Dugueperoux2015-02-24 12:43:34 +0000
commit4716ad1c3a42bc898751657b505cb15e8e205fc3 (patch)
tree101f8fd5461bdbc387dc8f1ebfa59095d761867d
parent4262fc18fbf99dfd33cef7ebbdfe7104a4928339 (diff)
downloadorg.eclipse.sirius-4716ad1c3a42bc898751657b505cb15e8e205fc3.tar.gz
org.eclipse.sirius-4716ad1c3a42bc898751657b505cb15e8e205fc3.tar.xz
org.eclipse.sirius-4716ad1c3a42bc898751657b505cb15e8e205fc3.zip
[452962] Have LayoutingModeOnCustomModelerTest copy its data in
workspace Have LayoutingModeOnCustomModelerTest copy its data in workspace to have test "resourceSet.getURIConverter().getAttributes(resourcetoSave.getURI(), null).get(URIConverter.ATTRIBUTE_READ_ONLY)" returns false and have session saveable for next commit. Bug: 452962 Change-Id: Iaf959922572d1b52b7c816e8210ad05ec7946b1c Signed-off-by: Esteban Dugueperoux <esteban.dugueperoux@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius.tests.junit/src/org/eclipse/sirius/tests/unit/diagram/layoutingmode/LayoutingModeOnCustomModelerTest.java16
1 files changed, 5 insertions, 11 deletions
diff --git a/plugins/org.eclipse.sirius.tests.junit/src/org/eclipse/sirius/tests/unit/diagram/layoutingmode/LayoutingModeOnCustomModelerTest.java b/plugins/org.eclipse.sirius.tests.junit/src/org/eclipse/sirius/tests/unit/diagram/layoutingmode/LayoutingModeOnCustomModelerTest.java
index 7ce25058b5..9fbc469bc2 100644
--- a/plugins/org.eclipse.sirius.tests.junit/src/org/eclipse/sirius/tests/unit/diagram/layoutingmode/LayoutingModeOnCustomModelerTest.java
+++ b/plugins/org.eclipse.sirius.tests.junit/src/org/eclipse/sirius/tests/unit/diagram/layoutingmode/LayoutingModeOnCustomModelerTest.java
@@ -42,31 +42,25 @@ import org.eclipse.ui.PartInitException;
* </p>
*
* @author <a href="mailto:alex.lagarde@obeo.fr">Alex Lagarde</a>
- *
*/
public class LayoutingModeOnCustomModelerTest extends AbstractLayoutingModeTest {
- private static final String FOLDER_PATH = "/" + SiriusTestsPlugin.PLUGIN_ID + "/data/unit/layoutingMode/";
+ private static final String FOLDER_PATH = "/data/unit/layoutingMode/";
- private static final String SEMANTIC_MODEL_PATH = FOLDER_PATH + "vp2120.ecore";
+ private static final String SEMANTIC_MODEL_NAME = "vp2120.ecore";
- private static final String MODELER_PATH = FOLDER_PATH + "vp2120.odesign";
+ private static final String MODELER_NAME = "vp2120.odesign";
private static final String VIEWPOINT_NAME = "LayoutingMode";
private static final String REPRESENTATION_DECRIPTION_NAME = "LayoutingMode Diagram";
- /**
- *
- * {@inheritDoc}
- *
- * @see org.eclipse.sirius.tests.support.api.SiriusTestCase#setUp()
- */
@Override
protected void setUp() throws Exception {
// Step 1 : generic setup
super.setUp();
- genericSetUp(SEMANTIC_MODEL_PATH, MODELER_PATH);
+ copyFilesToTestProject(SiriusTestsPlugin.PLUGIN_ID, FOLDER_PATH, SEMANTIC_MODEL_NAME, MODELER_NAME);
+ genericSetUp(TEMPORARY_PROJECT_NAME + "/" + SEMANTIC_MODEL_NAME, TEMPORARY_PROJECT_NAME + "/" + MODELER_NAME);
initViewpoint(VIEWPOINT_NAME);
// Step 2 : opening editor

Back to the top