summaryrefslogtreecommitdiff
path: root/src/test/java/cuchaz/enigma/TestDeobfed.java
diff options
context:
space:
mode:
authorGravatar Thog2017-03-07 21:24:39 +0100
committerGravatar Thog2017-03-07 21:30:02 +0100
commitb4aaff683d78ab92b83f3a7257c33b8e27d1affa (patch)
treef23c9bb0927d83cc7302881266b7df8fd37959c7 /src/test/java/cuchaz/enigma/TestDeobfed.java
parentAvoid crash of the matcher when the obf name is invalid (set a deob it using ... (diff)
downloadenigma-fork-b4aaff683d78ab92b83f3a7257c33b8e27d1affa.tar.gz
enigma-fork-b4aaff683d78ab92b83f3a7257c33b8e27d1affa.tar.xz
enigma-fork-b4aaff683d78ab92b83f3a7257c33b8e27d1affa.zip
Drop unix case style and implement hashCode when equals is overrided
Also update Guava to version 21
Diffstat (limited to 'src/test/java/cuchaz/enigma/TestDeobfed.java')
-rw-r--r--src/test/java/cuchaz/enigma/TestDeobfed.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/java/cuchaz/enigma/TestDeobfed.java b/src/test/java/cuchaz/enigma/TestDeobfed.java
index 2f318c8..76a3d3b 100644
--- a/src/test/java/cuchaz/enigma/TestDeobfed.java
+++ b/src/test/java/cuchaz/enigma/TestDeobfed.java
@@ -25,20 +25,20 @@ import cuchaz.enigma.analysis.JarIndex;
25 25
26public class TestDeobfed { 26public class TestDeobfed {
27 27
28 private static JarFile m_jar; 28 private static JarFile jar;
29 private static JarIndex m_index; 29 private static JarIndex index;
30 30
31 @BeforeClass 31 @BeforeClass
32 public static void beforeClass() 32 public static void beforeClass()
33 throws Exception { 33 throws Exception {
34 m_jar = new JarFile("build/test-deobf/translation.jar"); 34 jar = new JarFile("build/test-deobf/translation.jar");
35 m_index = new JarIndex(); 35 index = new JarIndex();
36 m_index.indexJar(m_jar, true); 36 index.indexJar(jar, true);
37 } 37 }
38 38
39 @Test 39 @Test
40 public void obfEntries() { 40 public void obfEntries() {
41 assertThat(m_index.getObfClassEntries(), containsInAnyOrder( 41 assertThat(index.getObfClassEntries(), containsInAnyOrder(
42 newClass("cuchaz/enigma/inputs/Keep"), 42 newClass("cuchaz/enigma/inputs/Keep"),
43 newClass("a"), 43 newClass("a"),
44 newClass("b"), 44 newClass("b"),
@@ -68,7 +68,7 @@ public class TestDeobfed {
68 @Test 68 @Test
69 public void decompile() 69 public void decompile()
70 throws Exception { 70 throws Exception {
71 Deobfuscator deobfuscator = new Deobfuscator(m_jar); 71 Deobfuscator deobfuscator = new Deobfuscator(jar);
72 deobfuscator.getSourceTree("a"); 72 deobfuscator.getSourceTree("a");
73 deobfuscator.getSourceTree("b"); 73 deobfuscator.getSourceTree("b");
74 deobfuscator.getSourceTree("c"); 74 deobfuscator.getSourceTree("c");