Skip to content

Commit

Permalink
fix test: adding name standardizer
Browse files Browse the repository at this point in the history
  • Loading branch information
swissiety committed Nov 6, 2023
1 parent 894fbf9 commit 3e5e94b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.junit.experimental.categories.Category;
import sootup.core.model.Body;
import sootup.core.util.Utils;
import sootup.java.bytecode.interceptors.LocalNameStandardizer;
import sootup.java.bytecode.interceptors.TypeAssigner;

@Category(Java8Test.class)
Expand All @@ -26,6 +27,8 @@ public void setup() {
public void testInvokeStmt() {
final Body.BodyBuilder builder = createMethodsBuilder("invokeStmt", "void");
new TypeAssigner().interceptBody(builder, view);
new LocalNameStandardizer().interceptBody(builder, view);

List<String> actualStmts = Utils.filterJimple(builder.build().toString());

Assert.assertEquals(
Expand All @@ -52,6 +55,7 @@ public void testInvokeStmt() {
public void testAssignStmt() {
final Body.BodyBuilder builder = createMethodsBuilder("assignStmt", "void");
new TypeAssigner().interceptBody(builder, view);
new LocalNameStandardizer().interceptBody(builder, view);

List<String> actualStmts = Utils.filterJimple(builder.build().toString());

Expand Down

0 comments on commit 3e5e94b

Please sign in to comment.