Skip to content

Commit

Permalink
test: fix test of dspot-prettifier
Browse files Browse the repository at this point in the history
  • Loading branch information
danglotb committed Nov 18, 2019
1 parent f737ce0 commit 91ca37a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 91ca37a

Please sign in to comment.