diff options
Diffstat (limited to 'src/test/java/cuchaz/enigma/TestDeobfuscator.java')
| -rw-r--r-- | src/test/java/cuchaz/enigma/TestDeobfuscator.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/test/java/cuchaz/enigma/TestDeobfuscator.java b/src/test/java/cuchaz/enigma/TestDeobfuscator.java deleted file mode 100644 index 6619d26..0000000 --- a/src/test/java/cuchaz/enigma/TestDeobfuscator.java +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | /******************************************************************************* | ||
| 2 | * Copyright (c) 2015 Jeff Martin. | ||
| 3 | * All rights reserved. This program and the accompanying materials | ||
| 4 | * are made available under the terms of the GNU Lesser General Public | ||
| 5 | * License v3.0 which accompanies this distribution, and is available at | ||
| 6 | * http://www.gnu.org/licenses/lgpl.html | ||
| 7 | * | ||
| 8 | * Contributors: | ||
| 9 | * Jeff Martin - initial API and implementation | ||
| 10 | ******************************************************************************/ | ||
| 11 | |||
| 12 | package cuchaz.enigma; | ||
| 13 | |||
| 14 | import cuchaz.enigma.source.Decompiler; | ||
| 15 | import cuchaz.enigma.source.Decompilers; | ||
| 16 | import cuchaz.enigma.source.SourceSettings; | ||
| 17 | import org.junit.Test; | ||
| 18 | |||
| 19 | import java.io.IOException; | ||
| 20 | import java.nio.file.Paths; | ||
| 21 | |||
| 22 | public class TestDeobfuscator { | ||
| 23 | private EnigmaProject openProject() throws IOException { | ||
| 24 | Enigma enigma = Enigma.create(); | ||
| 25 | return enigma.openJar(Paths.get("build/test-obf/loneClass.jar"), ProgressListener.none()); | ||
| 26 | } | ||
| 27 | |||
| 28 | @Test | ||
| 29 | public void loadJar() | ||
| 30 | throws Exception { | ||
| 31 | openProject(); | ||
| 32 | } | ||
| 33 | |||
| 34 | @Test | ||
| 35 | public void decompileClass() throws Exception { | ||
| 36 | EnigmaProject project = openProject(); | ||
| 37 | Decompiler decompiler = Decompilers.PROCYON.create(project.getClassCache(), new SourceSettings(false, false)); | ||
| 38 | |||
| 39 | decompiler.getSource("a").asString(); | ||
| 40 | } | ||
| 41 | } | ||