Update tests
This commit is contained in:
parent
b9846bf40d
commit
552db1a2e5
@ -1,4 +1,4 @@
|
|||||||
import dev.w1zzrd.asm.Merger;
|
import dev.w1zzrd.asm.Combine;
|
||||||
|
|
||||||
public class MergeTest {
|
public class MergeTest {
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ public class MergeTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String test(){
|
public String test(){
|
||||||
Class<?> c = Merger.class;
|
Class<?> c = Combine.class;
|
||||||
Runnable r = () -> {
|
Runnable r = () -> {
|
||||||
System.out.println("Sick");
|
System.out.println("Sick");
|
||||||
System.out.println(c.getName());
|
System.out.println(c.getName());
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import dev.w1zzrd.asm.Combine;
|
import dev.w1zzrd.asm.Combine;
|
||||||
import dev.w1zzrd.asm.GraftSource;
|
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.analysis.FrameState;
|
||||||
import dev.w1zzrd.asm.signature.TypeSignature;
|
import dev.w1zzrd.asm.signature.TypeSignature;
|
||||||
import jdk.internal.org.objectweb.asm.tree.ClassNode;
|
import jdk.internal.org.objectweb.asm.tree.ClassNode;
|
||||||
@ -14,8 +14,8 @@ import java.util.Stack;
|
|||||||
public class Test {
|
public class Test {
|
||||||
public static void main(String... args) throws IOException {
|
public static void main(String... args) throws IOException {
|
||||||
|
|
||||||
ClassNode target = Merger.getClassNode("MergeTest");
|
ClassNode target = Loader.getClassNode("MergeTest");
|
||||||
ClassNode inject = Merger.getClassNode("MergeInject");
|
ClassNode inject = Loader.getClassNode("MergeInject");
|
||||||
|
|
||||||
MethodNode stackTest = target.methods.stream().filter(it -> it.name.equals("stackTest")).findFirst().get();
|
MethodNode stackTest = target.methods.stream().filter(it -> it.name.equals("stackTest")).findFirst().get();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user