summaryrefslogtreecommitdiff
path: root/test/cuchaz/enigma/TestJarIndexLoneClass.java
diff options
context:
space:
mode:
authorGravatar jeff2014-09-24 01:00:54 -0400
committerGravatar jeff2014-09-24 01:00:54 -0400
commit8776a8ba38123c822530e5f659c626c8db616217 (patch)
tree8138a4e4447552e598bb99cfd8fb23a5f27f840b /test/cuchaz/enigma/TestJarIndexLoneClass.java
parenttrying to figure out why some mappings to correspond to anything in the jar f... (diff)
downloadenigma-fork-8776a8ba38123c822530e5f659c626c8db616217.tar.gz
enigma-fork-8776a8ba38123c822530e5f659c626c8db616217.tar.xz
enigma-fork-8776a8ba38123c822530e5f659c626c8db616217.zip
HOW DO I WRITE SO MANY BUGS?!?
Diffstat (limited to 'test/cuchaz/enigma/TestJarIndexLoneClass.java')
-rw-r--r--test/cuchaz/enigma/TestJarIndexLoneClass.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/cuchaz/enigma/TestJarIndexLoneClass.java b/test/cuchaz/enigma/TestJarIndexLoneClass.java
index 4c32b70..f77d86a 100644
--- a/test/cuchaz/enigma/TestJarIndexLoneClass.java
+++ b/test/cuchaz/enigma/TestJarIndexLoneClass.java
@@ -1,5 +1,5 @@
1/******************************************************************************* 1/*******************************************************************************
2 * Copyright (c) 2014 Jeff Martin.\ 2 * Copyright (c) 2014 Jeff Martin.
3 * 3 *
4 * All rights reserved. This program and the accompanying materials 4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the GNU Public License v3.0 5 * are made available under the terms of the GNU Public License v3.0
@@ -73,13 +73,6 @@ public class TestJarIndexLoneClass
73 } 73 }
74 74
75 @Test 75 @Test
76 public void isImplemented( )
77 {
78 assertThat( m_index.isMethodImplemented( newMethod( "none/a", "a", "()Ljava/lang/String;" ) ), is( true ) );
79 assertThat( m_index.isMethodImplemented( newMethod( "none/a", "b", "()Ljava/lang/String;" ) ), is( false ) );
80 }
81
82 @Test
83 public void classInheritance( ) 76 public void classInheritance( )
84 { 77 {
85 ClassInheritanceTreeNode node = m_index.getClassInheritance( new Translator(), newClass( "none/a" ) ); 78 ClassInheritanceTreeNode node = m_index.getClassInheritance( new Translator(), newClass( "none/a" ) );
@@ -187,7 +180,7 @@ public class TestJarIndexLoneClass
187 assertThat( m_index.containsObfClass( newClass( "none/b" ) ), is( false ) ); 180 assertThat( m_index.containsObfClass( newClass( "none/b" ) ), is( false ) );
188 assertThat( m_index.containsObfField( newField( "none/a", "a" ) ), is( true ) ); 181 assertThat( m_index.containsObfField( newField( "none/a", "a" ) ), is( true ) );
189 assertThat( m_index.containsObfField( newField( "none/a", "b" ) ), is( false ) ); 182 assertThat( m_index.containsObfField( newField( "none/a", "b" ) ), is( false ) );
190 assertThat( m_index.containsObfMethod( newMethod( "none/a", "a", "()Ljava/lang/String;" ) ), is( true ) ); 183 assertThat( m_index.containsObfBehavior( newMethod( "none/a", "a", "()Ljava/lang/String;" ) ), is( true ) );
191 assertThat( m_index.containsObfMethod( newMethod( "none/a", "b", "()Ljava/lang/String;" ) ), is( false ) ); 184 assertThat( m_index.containsObfBehavior( newMethod( "none/a", "b", "()Ljava/lang/String;" ) ), is( false ) );
192 } 185 }
193} 186}