diff options
Diffstat (limited to 'src/test/java/cuchaz/enigma/TestDeobfed.java')
| -rw-r--r-- | src/test/java/cuchaz/enigma/TestDeobfed.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/java/cuchaz/enigma/TestDeobfed.java b/src/test/java/cuchaz/enigma/TestDeobfed.java index e6c1b74..9babf1e 100644 --- a/src/test/java/cuchaz/enigma/TestDeobfed.java +++ b/src/test/java/cuchaz/enigma/TestDeobfed.java | |||
| @@ -12,6 +12,8 @@ | |||
| 12 | package cuchaz.enigma; | 12 | package cuchaz.enigma; |
| 13 | 13 | ||
| 14 | import cuchaz.enigma.analysis.JarIndex; | 14 | import cuchaz.enigma.analysis.JarIndex; |
| 15 | import cuchaz.enigma.analysis.ParsedJar; | ||
| 16 | import cuchaz.enigma.mapping.entry.ReferencedEntryPool; | ||
| 15 | import org.junit.BeforeClass; | 17 | import org.junit.BeforeClass; |
| 16 | import org.junit.Test; | 18 | import org.junit.Test; |
| 17 | 19 | ||
| @@ -23,14 +25,14 @@ import static org.hamcrest.Matchers.containsInAnyOrder; | |||
| 23 | 25 | ||
| 24 | public class TestDeobfed { | 26 | public class TestDeobfed { |
| 25 | 27 | ||
| 26 | private static JarFile jar; | 28 | private static ParsedJar jar; |
| 27 | private static JarIndex index; | 29 | private static JarIndex index; |
| 28 | 30 | ||
| 29 | @BeforeClass | 31 | @BeforeClass |
| 30 | public static void beforeClass() | 32 | public static void beforeClass() |
| 31 | throws Exception { | 33 | throws Exception { |
| 32 | jar = new JarFile("build/test-deobf/translation.jar"); | 34 | jar = new ParsedJar(new JarFile("build/test-deobf/translation.jar")); |
| 33 | index = new JarIndex(); | 35 | index = new JarIndex(new ReferencedEntryPool()); |
| 34 | index.indexJar(jar, true); | 36 | index.indexJar(jar, true); |
| 35 | } | 37 | } |
| 36 | 38 | ||