diff --git a/dspot-prettifier/src/test/java/eu/stamp_project/prettifier/RedundantCastRemoverTest.java b/dspot-prettifier/src/test/java/eu/stamp_project/prettifier/RedundantCastRemoverTest.java index cf66f7f03..5be520301 100644 --- a/dspot-prettifier/src/test/java/eu/stamp_project/prettifier/RedundantCastRemoverTest.java +++ b/dspot-prettifier/src/test/java/eu/stamp_project/prettifier/RedundantCastRemoverTest.java @@ -1,5 +1,6 @@ package eu.stamp_project.prettifier; +import eu.stamp_project.test_framework.TestFramework; import org.junit.Test; import spoon.Launcher; import spoon.reflect.declaration.CtMethod; @@ -27,6 +28,8 @@ public void test() { launcher.addInputResource("src/test/java/eu/stamp_project/resources/AmplifiedTest.java"); launcher.buildModel(); + TestFramework.init(launcher.getFactory()); + final Factory factory = launcher.getFactory(); final CtMethod redundantCast = factory.Class().get("eu.stamp_project.resources.AmplifiedTest") .getMethodsByName("redundantCast").get(0);