Import bugfixes. Need to @Import annotations etc since it can't pick up methods from the api atm
This commit is contained in:
30
src/test/java/net/runelite/deob/injection/InjectTest.java
Normal file
30
src/test/java/net/runelite/deob/injection/InjectTest.java
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package net.runelite.deob.injection;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import net.runelite.deob.ClassGroup;
|
||||
import net.runelite.deob.runeloader.MappingImporter;
|
||||
import net.runelite.deob.util.JarUtil;
|
||||
import org.junit.Test;
|
||||
|
||||
public class InjectTest
|
||||
{
|
||||
private static final File DEOBFUSCATED = new File("d:/rs/07/adamin.jar");
|
||||
private static final File VANILLA = new File(MappingImporter.class.getResource("/gamepack_v16.jar").getFile());
|
||||
|
||||
@Test
|
||||
public void testRun() throws IOException
|
||||
{
|
||||
ClassGroup deob = JarUtil.loadJar(DEOBFUSCATED),
|
||||
vanilla = JarUtil.loadJar(VANILLA);
|
||||
|
||||
Inject instance = new Inject(deob, vanilla);
|
||||
instance.run();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -26,7 +26,7 @@ public class MappingImporter
|
||||
{
|
||||
private static final File IN = new File("d:/rs/07/adamin.jar");
|
||||
private static final File OUT = new File("d:/rs/07/adamout.jar");
|
||||
private static final File RL_INJECTION = new File("C:\\Users\\Adam\\git\\jbytecode\\src\\test\\resources\\injection_v16.json");
|
||||
private static final File RL_INJECTION = new File(MappingImporter.class.getResource("/injection_v16.json").getFile());
|
||||
|
||||
private static final Type OBFUSCATED_NAME = new Type("Lnet/runelite/mapping/ObfuscatedName;");
|
||||
private static final Type EXPORT = new Type("Lnet/runelite/mapping/Export;");
|
||||
|
||||
Reference in New Issue
Block a user