diff options
Diffstat (limited to 'test/cuchaz/enigma/TestJarIndexLoneClass.java')
| -rw-r--r-- | test/cuchaz/enigma/TestJarIndexLoneClass.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/cuchaz/enigma/TestJarIndexLoneClass.java b/test/cuchaz/enigma/TestJarIndexLoneClass.java index 0575eec..a061b72 100644 --- a/test/cuchaz/enigma/TestJarIndexLoneClass.java +++ b/test/cuchaz/enigma/TestJarIndexLoneClass.java | |||
| @@ -29,6 +29,7 @@ import cuchaz.enigma.analysis.JarIndex; | |||
| 29 | import cuchaz.enigma.analysis.MethodImplementationsTreeNode; | 29 | import cuchaz.enigma.analysis.MethodImplementationsTreeNode; |
| 30 | import cuchaz.enigma.analysis.MethodInheritanceTreeNode; | 30 | import cuchaz.enigma.analysis.MethodInheritanceTreeNode; |
| 31 | import cuchaz.enigma.mapping.BehaviorEntry; | 31 | import cuchaz.enigma.mapping.BehaviorEntry; |
| 32 | import cuchaz.enigma.mapping.ClassEntry; | ||
| 32 | import cuchaz.enigma.mapping.FieldEntry; | 33 | import cuchaz.enigma.mapping.FieldEntry; |
| 33 | import cuchaz.enigma.mapping.MethodEntry; | 34 | import cuchaz.enigma.mapping.MethodEntry; |
| 34 | import cuchaz.enigma.mapping.Translator; | 35 | import cuchaz.enigma.mapping.Translator; |
| @@ -39,7 +40,7 @@ public class TestJarIndexLoneClass { | |||
| 39 | 40 | ||
| 40 | public TestJarIndexLoneClass() throws Exception { | 41 | public TestJarIndexLoneClass() throws Exception { |
| 41 | m_index = new JarIndex(); | 42 | m_index = new JarIndex(); |
| 42 | m_index.indexJar(new JarFile("build/libs/testLoneClass.obf.jar"), false); | 43 | m_index.indexJar(new JarFile("build/testLoneClass.obf.jar"), false); |
| 43 | } | 44 | } |
| 44 | 45 | ||
| 45 | @Test | 46 | @Test |
| @@ -52,12 +53,12 @@ public class TestJarIndexLoneClass { | |||
| 52 | 53 | ||
| 53 | @Test | 54 | @Test |
| 54 | public void translationIndex() { | 55 | public void translationIndex() { |
| 55 | assertThat(m_index.getTranslationIndex().getSuperclassName("none/a"), is(nullValue())); | 56 | assertThat(m_index.getTranslationIndex().getSuperclass(new ClassEntry("none/a")), is(nullValue())); |
| 56 | assertThat(m_index.getTranslationIndex().getSuperclassName("cuchaz/enigma/inputs/Keep"), is(nullValue())); | 57 | assertThat(m_index.getTranslationIndex().getSuperclass(new ClassEntry("cuchaz/enigma/inputs/Keep")), is(nullValue())); |
| 57 | assertThat(m_index.getTranslationIndex().getAncestry("none/a"), is(empty())); | 58 | assertThat(m_index.getTranslationIndex().getAncestry(new ClassEntry("none/a")), is(empty())); |
| 58 | assertThat(m_index.getTranslationIndex().getAncestry("cuchaz/enigma/inputs/Keep"), is(empty())); | 59 | assertThat(m_index.getTranslationIndex().getAncestry(new ClassEntry("cuchaz/enigma/inputs/Keep")), is(empty())); |
| 59 | assertThat(m_index.getTranslationIndex().getSubclassNames("none/a"), is(empty())); | 60 | assertThat(m_index.getTranslationIndex().getSubclass(new ClassEntry("none/a")), is(empty())); |
| 60 | assertThat(m_index.getTranslationIndex().getSubclassNames("cuchaz/enigma/inputs/Keep"), is(empty())); | 61 | assertThat(m_index.getTranslationIndex().getSubclass(new ClassEntry("cuchaz/enigma/inputs/Keep")), is(empty())); |
| 61 | } | 62 | } |
| 62 | 63 | ||
| 63 | @Test | 64 | @Test |