diff options
Diffstat (limited to 'test/cuchaz/enigma/TestJarIndexDeobfed.java')
| -rw-r--r-- | test/cuchaz/enigma/TestJarIndexDeobfed.java | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/test/cuchaz/enigma/TestJarIndexDeobfed.java b/test/cuchaz/enigma/TestJarIndexDeobfed.java deleted file mode 100644 index f776e4f..0000000 --- a/test/cuchaz/enigma/TestJarIndexDeobfed.java +++ /dev/null | |||
| @@ -1,52 +0,0 @@ | |||
| 1 | package cuchaz.enigma; | ||
| 2 | |||
| 3 | |||
| 4 | import static cuchaz.enigma.TestEntryFactory.*; | ||
| 5 | import static org.hamcrest.MatcherAssert.*; | ||
| 6 | import static org.hamcrest.Matchers.*; | ||
| 7 | |||
| 8 | import java.util.jar.JarFile; | ||
| 9 | |||
| 10 | import org.junit.BeforeClass; | ||
| 11 | import org.junit.Test; | ||
| 12 | |||
| 13 | import cuchaz.enigma.analysis.JarIndex; | ||
| 14 | |||
| 15 | |||
| 16 | public class TestJarIndexDeobfed { | ||
| 17 | |||
| 18 | private static JarIndex m_index; | ||
| 19 | |||
| 20 | @BeforeClass | ||
| 21 | public static void beforeClass() | ||
| 22 | throws Exception { | ||
| 23 | m_index = new JarIndex(); | ||
| 24 | m_index.indexJar(new JarFile("build/testTranslation.deobf.jar"), true); | ||
| 25 | } | ||
| 26 | |||
| 27 | @Test | ||
| 28 | public void obfEntries() { | ||
| 29 | assertThat(m_index.getObfClassEntries(), containsInAnyOrder( | ||
| 30 | newClass("cuchaz/enigma/inputs/Keep"), | ||
| 31 | newClass("none/a"), | ||
| 32 | newClass("none/b"), | ||
| 33 | newClass("none/c"), | ||
| 34 | newClass("none/d"), | ||
| 35 | newClass("none/d$e"), | ||
| 36 | newClass("none/f"), | ||
| 37 | newClass("none/g"), | ||
| 38 | newClass("none/h"), | ||
| 39 | newClass("none/h$i"), | ||
| 40 | newClass("none/h$i$j"), | ||
| 41 | newClass("none/h$k"), | ||
| 42 | newClass("none/h$k$l"), | ||
| 43 | newClass("none/m"), | ||
| 44 | newClass("none/m$n"), | ||
| 45 | newClass("none/m$n$o"), | ||
| 46 | newClass("none/m$p"), | ||
| 47 | newClass("none/m$p$q"), | ||
| 48 | newClass("none/m$p$q$r"), | ||
| 49 | newClass("none/m$p$q$s") | ||
| 50 | )); | ||
| 51 | } | ||
| 52 | } | ||