diff options
Diffstat (limited to 'src/test/java/cuchaz/enigma/TestTranslator.java')
| -rw-r--r-- | src/test/java/cuchaz/enigma/TestTranslator.java | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/test/java/cuchaz/enigma/TestTranslator.java b/src/test/java/cuchaz/enigma/TestTranslator.java index 2c54603..b63dff8 100644 --- a/src/test/java/cuchaz/enigma/TestTranslator.java +++ b/src/test/java/cuchaz/enigma/TestTranslator.java | |||
| @@ -8,28 +8,29 @@ | |||
| 8 | * Contributors: | 8 | * Contributors: |
| 9 | * Jeff Martin - initial API and implementation | 9 | * Jeff Martin - initial API and implementation |
| 10 | ******************************************************************************/ | 10 | ******************************************************************************/ |
| 11 | package cuchaz.enigma; | ||
| 12 | |||
| 13 | import static cuchaz.enigma.TestEntryFactory.*; | ||
| 14 | 11 | ||
| 15 | import org.junit.BeforeClass; | 12 | package cuchaz.enigma; |
| 16 | import org.junit.Test; | ||
| 17 | 13 | ||
| 18 | import cuchaz.enigma.mapping.Entry; | 14 | import cuchaz.enigma.mapping.Entry; |
| 19 | import cuchaz.enigma.mapping.Mappings; | 15 | import cuchaz.enigma.mapping.Mappings; |
| 20 | import cuchaz.enigma.mapping.Translator; | 16 | import cuchaz.enigma.mapping.Translator; |
| 17 | import org.junit.BeforeClass; | ||
| 18 | import org.junit.Test; | ||
| 21 | 19 | ||
| 20 | import static cuchaz.enigma.TestEntryFactory.newClass; | ||
| 21 | import static cuchaz.enigma.TestEntryFactory.newField; | ||
| 22 | import static cuchaz.enigma.TestEntryFactory.newMethod; | ||
| 22 | 23 | ||
| 23 | public class TestTranslator { | 24 | public class TestTranslator { |
| 24 | 25 | ||
| 25 | private static Deobfuscator deobfuscator; | 26 | private static Deobfuscator deobfuscator; |
| 26 | private static Mappings mappings; | 27 | private static Mappings mappings; |
| 27 | private static Translator deobfTranslator; | 28 | private static Translator deobfTranslator; |
| 28 | private static Translator obfTranslator; | 29 | private static Translator obfTranslator; |
| 29 | 30 | ||
| 30 | @BeforeClass | 31 | @BeforeClass |
| 31 | public static void beforeClass() | 32 | public static void beforeClass() |
| 32 | throws Exception { | 33 | throws Exception { |
| 33 | //TODO FIx | 34 | //TODO FIx |
| 34 | //deobfuscator = new Deobfuscator(new JarFile("build/test-obf/translation.jar")); | 35 | //deobfuscator = new Deobfuscator(new JarFile("build/test-obf/translation.jar")); |
| 35 | //try (InputStream in = TestTranslator.class.getResourceAsStream("/cuchaz/enigma/resources/translation.mappings")) { | 36 | //try (InputStream in = TestTranslator.class.getResourceAsStream("/cuchaz/enigma/resources/translation.mappings")) { |