diff options
Diffstat (limited to 'test/cuchaz/enigma/TestDeobfuscator.java')
| -rw-r--r-- | test/cuchaz/enigma/TestDeobfuscator.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/cuchaz/enigma/TestDeobfuscator.java b/test/cuchaz/enigma/TestDeobfuscator.java index 129d7b2..26d492d 100644 --- a/test/cuchaz/enigma/TestDeobfuscator.java +++ b/test/cuchaz/enigma/TestDeobfuscator.java | |||
| @@ -25,17 +25,20 @@ import cuchaz.enigma.mapping.ClassEntry; | |||
| 25 | 25 | ||
| 26 | public class TestDeobfuscator { | 26 | public class TestDeobfuscator { |
| 27 | 27 | ||
| 28 | private Deobfuscator getDeobfuscator() throws IOException { | 28 | private Deobfuscator getDeobfuscator() |
| 29 | throws IOException { | ||
| 29 | return new Deobfuscator(new JarFile("build/testLoneClass.obf.jar")); | 30 | return new Deobfuscator(new JarFile("build/testLoneClass.obf.jar")); |
| 30 | } | 31 | } |
| 31 | 32 | ||
| 32 | @Test | 33 | @Test |
| 33 | public void loadJar() throws Exception { | 34 | public void loadJar() |
| 35 | throws Exception { | ||
| 34 | getDeobfuscator(); | 36 | getDeobfuscator(); |
| 35 | } | 37 | } |
| 36 | 38 | ||
| 37 | @Test | 39 | @Test |
| 38 | public void getClasses() throws Exception { | 40 | public void getClasses() |
| 41 | throws Exception { | ||
| 39 | Deobfuscator deobfuscator = getDeobfuscator(); | 42 | Deobfuscator deobfuscator = getDeobfuscator(); |
| 40 | List<ClassEntry> obfClasses = Lists.newArrayList(); | 43 | List<ClassEntry> obfClasses = Lists.newArrayList(); |
| 41 | List<ClassEntry> deobfClasses = Lists.newArrayList(); | 44 | List<ClassEntry> deobfClasses = Lists.newArrayList(); |
| @@ -47,7 +50,8 @@ public class TestDeobfuscator { | |||
| 47 | } | 50 | } |
| 48 | 51 | ||
| 49 | @Test | 52 | @Test |
| 50 | public void decompileClass() throws Exception { | 53 | public void decompileClass() |
| 54 | throws Exception { | ||
| 51 | Deobfuscator deobfuscator = getDeobfuscator(); | 55 | Deobfuscator deobfuscator = getDeobfuscator(); |
| 52 | deobfuscator.getSource(deobfuscator.getSourceTree("none/a")); | 56 | deobfuscator.getSource(deobfuscator.getSourceTree("none/a")); |
| 53 | } | 57 | } |