[furcas-discussion] Broken test com.sap.furcas.ide.projectwizard.test.GeneratedClassesTest.compileGeneratedClasses
Uhl, Axel
axel.uhl at sap.com
Fri Feb 25 23:25:58 CET 2011
Damn it. I did a seemingly trivial commit. Here's the diff:
EMFEnhancements/com.sap.ocl.oppositefinder.query2/src/com/sap/ocl/oppositefinder/query2/Query2OppositeEndFinder.java
index cbdbc19..d2c19b5 100644
@@ -189,8 +189,8 @@ public class Query2OppositeEndFinder implements OppositeEndFinder {
String uriFragment = uri.split("#")[1];
result = r.getEObject(uriFragment);
} else if (context instanceof EObject) {
- Resource r = ((EObject) context).eResource();
- result = getEObject(r, uri);
+ ResourceSet rs = ((EObject) context).eResource().getResourceSet();
+ result = getEObject(rs, uri);
} else {
throw new RuntimeException("Expected Resource, ResourceSet or EObject but got "+context.getClass().getName());
}
Now the FURCAS Wizard test com.sap.furcas.ide.projectwizard.test.GeneratedClassesTest.compileGeneratedClasses fails two times in a row. I just can't make the connection to this change. Even more, when I run the test locally it works just fine.
Any ideas?
Thanks and best,
-- Axel
More information about the Furcas-discussion
mailing list