From 552db1a2e5ba95ef95dc2f2f04e0db5a065d400f Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Thu, 28 Jan 2021 05:49:18 +0100 Subject: [PATCH] Update tests --- test/MergeTest.java | 4 ++-- test/Test.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/MergeTest.java b/test/MergeTest.java index a20b3f5..27bb505 100644 --- a/test/MergeTest.java +++ b/test/MergeTest.java @@ -1,4 +1,4 @@ -import dev.w1zzrd.asm.Merger; +import dev.w1zzrd.asm.Combine; public class MergeTest { @@ -14,7 +14,7 @@ public class MergeTest { } public String test(){ - Class c = Merger.class; + Class c = Combine.class; Runnable r = () -> { System.out.println("Sick"); System.out.println(c.getName()); diff --git a/test/Test.java b/test/Test.java index 4a00df8..cc23695 100644 --- a/test/Test.java +++ b/test/Test.java @@ -1,6 +1,6 @@ import dev.w1zzrd.asm.Combine; import dev.w1zzrd.asm.GraftSource; -import dev.w1zzrd.asm.Merger; +import dev.w1zzrd.asm.Loader; import dev.w1zzrd.asm.analysis.FrameState; import dev.w1zzrd.asm.signature.TypeSignature; import jdk.internal.org.objectweb.asm.tree.ClassNode; @@ -14,8 +14,8 @@ import java.util.Stack; public class Test { public static void main(String... args) throws IOException { - ClassNode target = Merger.getClassNode("MergeTest"); - ClassNode inject = Merger.getClassNode("MergeInject"); + ClassNode target = Loader.getClassNode("MergeTest"); + ClassNode inject = Loader.getClassNode("MergeInject"); MethodNode stackTest = target.methods.stream().filter(it -> it.name.equals("stackTest")).findFirst().get();