diff --git a/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ArtifactScopeInterfaceDecoratorTest.java b/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ArtifactScopeInterfaceDecoratorTest.java index 1d923c0c89..5636826072 100644 --- a/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ArtifactScopeInterfaceDecoratorTest.java +++ b/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ArtifactScopeInterfaceDecoratorTest.java @@ -28,6 +28,7 @@ import static de.monticore.codegen.cd2java.DecoratorAssert.assertDeepEquals; import static de.monticore.codegen.cd2java.DecoratorAssert.assertListOf; import static de.monticore.codegen.cd2java.DecoratorAssert.assertOptionalOf; +import static de.monticore.codegen.cd2java.DecoratorAssert.assertVoid; import static de.monticore.codegen.cd2java.DecoratorTestUtil.getMethodBy; import static de.monticore.codegen.cd2java.DecoratorTestUtil.getMethodsBy; import static org.junit.Assert.*; diff --git a/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/GlobalScopeInterfaceDecoratorTest.java b/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/GlobalScopeInterfaceDecoratorTest.java index 0f65d02a1b..2978e200b7 100644 --- a/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/GlobalScopeInterfaceDecoratorTest.java +++ b/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/GlobalScopeInterfaceDecoratorTest.java @@ -21,6 +21,7 @@ import static de.monticore.codegen.cd2java.DecoratorAssert.assertBoolean; import static de.monticore.codegen.cd2java.DecoratorAssert.assertDeepEquals; import static de.monticore.codegen.cd2java.DecoratorAssert.assertListOf; +import static de.monticore.codegen.cd2java.DecoratorAssert.assertVoid; import static de.monticore.codegen.cd2java.DecoratorTestUtil.getMethodBy; import static de.monticore.codegen.cd2java.DecoratorTestUtil.getMethodsBy; import static org.junit.Assert.assertEquals; diff --git a/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ScopeClassDecoratorTest.java b/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ScopeClassDecoratorTest.java index 7b4a2adcd6..274954d552 100644 --- a/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ScopeClassDecoratorTest.java +++ b/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ScopeClassDecoratorTest.java @@ -6,7 +6,7 @@ import com.github.javaparser.ParserConfiguration; import de.monticore.cd.codegen.CD2JavaTemplates; import de.monticore.cd.methodtemplates.CD4C; -import de.monticore.cd4code.prettyprint.CD4CodeFullPrettyPrinter; +import de.monticore.cd4code.CD4CodeMill; import de.monticore.cd4codebasis._ast.ASTCDConstructor; import de.monticore.cd4codebasis._ast.ASTCDMethod; import de.monticore.cdbasis._ast.ASTCDAttribute; @@ -21,7 +21,6 @@ import de.monticore.generating.GeneratorSetup; import de.se_rwth.commons.logging.Log; import org.junit.Before; -import org.junit.BeforeClass; import org.junit.Test; import java.util.HashMap; @@ -35,6 +34,7 @@ import static de.monticore.codegen.cd2java.DecoratorAssert.assertDeepEquals; import static de.monticore.codegen.cd2java.DecoratorAssert.assertListOf; import static de.monticore.codegen.cd2java.DecoratorAssert.assertOptionalOf; +import static de.monticore.codegen.cd2java.DecoratorAssert.assertVoid; import static de.monticore.codegen.cd2java.DecoratorTestUtil.getAttributeBy; import static de.monticore.codegen.cd2java.DecoratorTestUtil.getMethodBy; import static de.monticore.codegen.cd2java.DecoratorTestUtil.getMethodsBy; @@ -387,9 +387,8 @@ public void testRemoveSymbolMethod() { List methodList = getMethodsBy("remove", scopeClass); Map methods = new HashMap<>(); - CD4CodeFullPrettyPrinter p = new CD4CodeFullPrettyPrinter(); methodList.forEach(l -> methods.put( - p.prettyprint(l.getCDParameter(0).getMCType()), l) + CD4CodeMill.prettyPrint(l.getCDParameter(0).getMCType(), false), l) ); assertEquals(5, methodList.size()); @@ -431,9 +430,8 @@ public void testRemoveSymbolMethod() { public void testAddSymbolMethod() { List methodList = getMethodsBy("add", scopeClass); Map methods = new HashMap<>(); - CD4CodeFullPrettyPrinter p = new CD4CodeFullPrettyPrinter(); methodList.forEach(l -> methods.put( - p.prettyprint(l.getCDParameter(0).getMCType()), l) + CD4CodeMill.prettyPrint(l.getCDParameter(0).getMCType(), false), l) ); assertEquals(5, methodList.size()); diff --git a/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ScopeInterfaceDecoratorTest.java b/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ScopeInterfaceDecoratorTest.java index cd06336134..b040cc9e06 100644 --- a/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ScopeInterfaceDecoratorTest.java +++ b/monticore-generator/src/test/java/de/monticore/codegen/cd2java/_symboltable/scope/ScopeInterfaceDecoratorTest.java @@ -28,6 +28,7 @@ import static de.monticore.codegen.cd2java.DecoratorAssert.assertDeepEquals; import static de.monticore.codegen.cd2java.DecoratorAssert.assertInt; import static de.monticore.codegen.cd2java.DecoratorAssert.assertListOf; +import static de.monticore.codegen.cd2java.DecoratorAssert.assertVoid; import static de.monticore.codegen.cd2java.DecoratorTestUtil.getMethodBy; import static de.monticore.codegen.cd2java.DecoratorTestUtil.getMethodsBy; import static org.junit.Assert.assertEquals;