Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2017-02-11 19:06:17 +0000
committerEd Willink2017-02-11 19:06:17 +0000
commit1cd35a41d2197277d8f6cbb1b9d6eca93c62f8b2 (patch)
tree96c18d8dd088f9a218a5e68246b7ebc0fbf23a9b
parentb37ee8fe5f04bb92324789d3a2c7bd7bb7b207ba (diff)
downloadorg.eclipse.qvtd-ewillink/512028.tar.gz
org.eclipse.qvtd-ewillink/512028.tar.xz
org.eclipse.qvtd-ewillink/512028.zip
Avoid Hudson failuresewillink/512028
-rw-r--r--tests/org.eclipse.qvtd.umlx.tests/src/org/eclipse/qvtd/umlx/tests/UMLXSerializeTests.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/org.eclipse.qvtd.umlx.tests/src/org/eclipse/qvtd/umlx/tests/UMLXSerializeTests.java b/tests/org.eclipse.qvtd.umlx.tests/src/org/eclipse/qvtd/umlx/tests/UMLXSerializeTests.java
index f0419a703..649c70e8b 100644
--- a/tests/org.eclipse.qvtd.umlx.tests/src/org/eclipse/qvtd/umlx/tests/UMLXSerializeTests.java
+++ b/tests/org.eclipse.qvtd.umlx.tests/src/org/eclipse/qvtd/umlx/tests/UMLXSerializeTests.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.qvtd.umlx.tests;
-import java.io.OutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -23,6 +22,7 @@ import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.URIConverter;
import org.eclipse.emf.ecore.resource.URIHandler;
+import org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.ocl.pivot.Element;
import org.eclipse.ocl.pivot.Import;
@@ -86,18 +86,15 @@ public class UMLXSerializeTests extends LoadTestCase
QVTrelation ocl1 = QVTrelation.newInstance(getProjectMap());
URI inputURI1 = URI.createPlatformResourceURI(path + stem + ".qvtr", true);
URI pivotURI1 = getProjectFileURI(stem + ".qvtras");
- // URI umlxURI = getProjectFileURI(stem + ".umlx");
URI umlxURI = URI.createPlatformResourceURI(path + stem + ".umlx", true);
URI pivotURI2 = getProjectFileURI(stem + ".regenerated.qvtras");
- // FIXME Hudson debugging
URIConverter uriConverter = ocl1.getResourceSet().getURIConverter();
URI normalizedURI = uriConverter.normalize(umlxURI);
- System.out.println("normalizedURI = " + normalizedURI);
URIHandler uriHandler = uriConverter.getURIHandler(normalizedURI);
- System.out.println("uriHandler = " + uriHandler);
- OutputStream outputStream = uriConverter.createOutputStream(umlxURI);
- outputStream.close();
+ if (!(uriHandler instanceof FileURIHandlerImpl)) { // platform:/plugin on Hudson
+ umlxURI = getProjectFileURI(stem + ".umlx");
+ }
Resource qvtrResource1 = doLoad_Concrete(ocl1, inputURI1, pivotURI1, null);
Resource umlxResource1 = qvtrResource1.getResourceSet().createResource(umlxURI);

Back to the top