[furcas-discussion] Broken test com.sap.furcas.ide.projectwizard.test.GeneratedClassesTest.compileGeneratedClasses

Uhl, Axel axel.uhl at sap.com
Fri Feb 25 23:31:26 CET 2011


Well, there are an additional four test failures added by Thomas's last commit. I fetched Thomas's commit and re-tried the wizard tests locally and they still work fine. I suggest that you, Thomas, try to get your four tests working first. If until then the wizard problem still remains we have to take a closer look. For the time being, I'll call it the weekend.

Have a nice one.

-- Axel

> -----Original Message-----
> From: furcas-discussion-bounces at lists.furcas.org [mailto:furcas-
> discussion-bounces at lists.furcas.org] On Behalf Of Uhl, Axel
> Sent: Friday, February 25, 2011 11:26 PM
> To: furcas-discussion at lists.furcas.org
> Cc: Petersen, Frederik
> Subject: [furcas-discussion] Broken test
> com.sap.furcas.ide.projectwizard.test.GeneratedClassesTest.compileGener
> atedClasses
> 
> Damn it. I did a seemingly trivial commit. Here's the diff:
> 
> EMFEnhancements/com.sap.ocl.oppositefinder.query2/src/com/sap/ocl/oppos
> itefinder/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.compileGener
> atedClasses 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
> _______________________________________________
> Furcas-discussion mailing list
> Furcas-discussion at lists.furcas.org
> http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion


More information about the Furcas-discussion mailing list