Skip to content
Snippets Groups Projects
Commit 88fb3abc authored by Johannes Mey's avatar Johannes Mey
Browse files

add simple test for multiple inheritance and skip transformation of those...

add simple test for multiple inheritance and skip transformation of those ePackages in the test for now to concentrate on the actual errors.
parent 88845a4f
No related branches found
No related tags found
No related merge requests found
aspect Inheritance {
syn boolean EPackage.usesMultipleInheritance() {
for (EClass eClass : classes()) {
if (eClass.usesMultipleInheritance()) {
return true;
}
}
return false;
}
syn boolean EClass.usesMultipleInheritance() = getESuperTypeList().size() > 1;
}
......@@ -59,9 +59,13 @@ class TransformationTest extends AbstractTest {
for (EObject eObject : ePackages) {
Assertions.assertTrue(eObject instanceof EPackage);
Grammar grammar = ((EPackage) eObject).getGrammar();
grammar.print(b);
b.append("\n\n");
if (((EPackage) eObject).usesMultipleInheritance()) {
logger.info("skipping package {}, since it uses multiple inheritance.", ((EPackage) eObject).getName());
} else {
Grammar grammar = ((EPackage) eObject).getGrammar();
grammar.print(b);
b.append("\n\n");
}
}
fileName = fileName.replaceFirst("\\.ecore$", ".relast");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment