Update tests

This commit is contained in:
Gabriel Tofvesson 2021-01-28 05:49:18 +01:00
parent b9846bf40d
commit 552db1a2e5
2 changed files with 5 additions and 5 deletions

View File

@ -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());

View File

@ -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();