From 6e464ea251cab63c776ece0b2a356f1498ffa294 Mon Sep 17 00:00:00 2001 From: Thog Date: Wed, 8 Mar 2017 08:17:04 +0100 Subject: Follow Fabric guidelines --- src/test/java/cuchaz/enigma/TestDeobfed.java | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'src/test/java/cuchaz/enigma/TestDeobfed.java') diff --git a/src/test/java/cuchaz/enigma/TestDeobfed.java b/src/test/java/cuchaz/enigma/TestDeobfed.java index 76a3d3b..e6c1b74 100644 --- a/src/test/java/cuchaz/enigma/TestDeobfed.java +++ b/src/test/java/cuchaz/enigma/TestDeobfed.java @@ -4,38 +4,36 @@ * are made available under the terms of the GNU Lesser General Public * License v3.0 which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl.html - * + * * Contributors: * Jeff Martin - initial API and implementation ******************************************************************************/ -package cuchaz.enigma; - - -import static cuchaz.enigma.TestEntryFactory.*; -import static org.hamcrest.MatcherAssert.*; -import static org.hamcrest.Matchers.*; -import java.util.jar.JarFile; +package cuchaz.enigma; +import cuchaz.enigma.analysis.JarIndex; import org.junit.BeforeClass; import org.junit.Test; -import cuchaz.enigma.analysis.JarIndex; +import java.util.jar.JarFile; +import static cuchaz.enigma.TestEntryFactory.newClass; +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.containsInAnyOrder; public class TestDeobfed { - private static JarFile jar; + private static JarFile jar; private static JarIndex index; - + @BeforeClass public static void beforeClass() - throws Exception { + throws Exception { jar = new JarFile("build/test-deobf/translation.jar"); index = new JarIndex(); index.indexJar(jar, true); } - + @Test public void obfEntries() { assertThat(index.getObfClassEntries(), containsInAnyOrder( @@ -64,10 +62,10 @@ public class TestDeobfed { newClass("i$b") )); } - + @Test public void decompile() - throws Exception { + throws Exception { Deobfuscator deobfuscator = new Deobfuscator(jar); deobfuscator.getSourceTree("a"); deobfuscator.getSourceTree("b"); -- cgit v1.2.3