diff options
| author | 2015-05-24 11:42:12 -0400 | |
|---|---|---|
| committer | 2015-05-24 11:42:12 -0400 | |
| commit | 075744c94b2651be2fb4f9b6f4eb62f205d8ab9d (patch) | |
| tree | 58ae0c1bf8f443945b647698fa2109ff5ce9c185 /test/cuchaz/enigma/TestJarIndexLoneClass.java | |
| parent | fix ssjb building of test jars (diff) | |
| parent | fix broken tests, and one broken function. =) (diff) | |
| download | enigma-fork-075744c94b2651be2fb4f9b6f4eb62f205d8ab9d.tar.gz enigma-fork-075744c94b2651be2fb4f9b6f4eb62f205d8ab9d.tar.xz enigma-fork-075744c94b2651be2fb4f9b6f4eb62f205d8ab9d.zip | |
Merge with fdc38992ef042df9f10e0f357062d8e48dd85527
Diffstat (limited to 'test/cuchaz/enigma/TestJarIndexLoneClass.java')
| -rw-r--r-- | test/cuchaz/enigma/TestJarIndexLoneClass.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/cuchaz/enigma/TestJarIndexLoneClass.java b/test/cuchaz/enigma/TestJarIndexLoneClass.java index 09479bb..bd7b03a 100644 --- a/test/cuchaz/enigma/TestJarIndexLoneClass.java +++ b/test/cuchaz/enigma/TestJarIndexLoneClass.java | |||
| @@ -52,10 +52,10 @@ public class TestJarIndexLoneClass { | |||
| 52 | 52 | ||
| 53 | @Test | 53 | @Test |
| 54 | public void translationIndex() { | 54 | public void translationIndex() { |
| 55 | assertThat(m_index.getTranslationIndex().getSuperclass(new ClassEntry("none/a")), is(nullValue())); | 55 | assertThat(m_index.getTranslationIndex().getSuperclass(new ClassEntry("none/a")), is(new ClassEntry("java/lang/Object"))); |
| 56 | assertThat(m_index.getTranslationIndex().getSuperclass(new ClassEntry("cuchaz/enigma/inputs/Keep")), is(nullValue())); | 56 | assertThat(m_index.getTranslationIndex().getSuperclass(new ClassEntry("cuchaz/enigma/inputs/Keep")), is(new ClassEntry("java/lang/Object"))); |
| 57 | assertThat(m_index.getTranslationIndex().getAncestry(new ClassEntry("none/a")), is(empty())); | 57 | assertThat(m_index.getTranslationIndex().getAncestry(new ClassEntry("none/a")), contains(new ClassEntry("java/lang/Object"))); |
| 58 | assertThat(m_index.getTranslationIndex().getAncestry(new ClassEntry("cuchaz/enigma/inputs/Keep")), is(empty())); | 58 | assertThat(m_index.getTranslationIndex().getAncestry(new ClassEntry("cuchaz/enigma/inputs/Keep")), contains(new ClassEntry("java/lang/Object"))); |
| 59 | assertThat(m_index.getTranslationIndex().getSubclass(new ClassEntry("none/a")), is(empty())); | 59 | assertThat(m_index.getTranslationIndex().getSubclass(new ClassEntry("none/a")), is(empty())); |
| 60 | assertThat(m_index.getTranslationIndex().getSubclass(new ClassEntry("cuchaz/enigma/inputs/Keep")), is(empty())); | 60 | assertThat(m_index.getTranslationIndex().getSubclass(new ClassEntry("cuchaz/enigma/inputs/Keep")), is(empty())); |
| 61 | } | 61 | } |
| @@ -152,7 +152,7 @@ public class TestJarIndexLoneClass { | |||
| 152 | } | 152 | } |
| 153 | 153 | ||
| 154 | @Test | 154 | @Test |
| 155 | public void contains() { | 155 | public void testContains() { |
| 156 | assertThat(m_index.containsObfClass(newClass("none/a")), is(true)); | 156 | assertThat(m_index.containsObfClass(newClass("none/a")), is(true)); |
| 157 | assertThat(m_index.containsObfClass(newClass("none/b")), is(false)); | 157 | assertThat(m_index.containsObfClass(newClass("none/b")), is(false)); |
| 158 | assertThat(m_index.containsObfField(newField("none/a", "a", "Ljava/lang/String;")), is(true)); | 158 | assertThat(m_index.containsObfField(newField("none/a", "a", "Ljava/lang/String;")), is(true)); |