From 6736d9aac3e7d1591cba33852126abf79dd18a57 Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 14 Sep 2014 21:54:58 -0400 Subject: added test to check constructor references --- .../enigma/TestJarIndexConstructorReferences.java | 129 +++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 test/cuchaz/enigma/TestJarIndexConstructorReferences.java (limited to 'test/cuchaz/enigma/TestJarIndexConstructorReferences.java') diff --git a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java new file mode 100644 index 0000000..38882a0 --- /dev/null +++ b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java @@ -0,0 +1,129 @@ +/******************************************************************************* + * Copyright (c) 2014 Jeff Martin. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * Jeff Martin - initial API and implementation + ******************************************************************************/ +package cuchaz.enigma; + +import static cuchaz.enigma.EntryFactory.newBehaviorReferenceByConstructor; +import static cuchaz.enigma.EntryFactory.newBehaviorReferenceByMethod; +import static cuchaz.enigma.EntryFactory.newClass; +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.containsInAnyOrder; +import static org.hamcrest.Matchers.empty; +import static org.hamcrest.Matchers.is; + +import java.util.jar.JarFile; + +import org.junit.Test; + +import cuchaz.enigma.analysis.JarIndex; +import cuchaz.enigma.mapping.BehaviorEntry; +import cuchaz.enigma.mapping.ClassEntry; +import cuchaz.enigma.mapping.ConstructorEntry; + +public class TestJarIndexConstructorReferences +{ + private JarIndex m_index; + + private ClassEntry m_baseClass = new ClassEntry( "none/a" ); + private ClassEntry m_subClass = new ClassEntry( "none/c" ); + private ClassEntry m_subsubClass = new ClassEntry( "none/d" ); + private ClassEntry m_callerClass = new ClassEntry( "none/b" ); + + public TestJarIndexConstructorReferences( ) + throws Exception + { + m_index = new JarIndex(); + m_index.indexJar( new JarFile( "build/libs/testConstructors.obf.jar" ), false ); + } + + @Test + public void obfEntries( ) + { + assertThat( m_index.getObfClassEntries(), containsInAnyOrder( + newClass( "cuchaz/enigma/inputs/Keep" ), + m_baseClass, + m_subClass, + m_subsubClass, + m_callerClass + ) ); + } + + @Test + @SuppressWarnings( "unchecked" ) + public void baseDefault( ) + { + BehaviorEntry source = new ConstructorEntry( m_baseClass, "()V" ); + assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( + newBehaviorReferenceByMethod( source, m_callerClass.getName(), "a", "()V" ), + newBehaviorReferenceByConstructor( source, m_subClass.getName(), "()V" ), + newBehaviorReferenceByConstructor( source, m_subClass.getName(), "(III)V" ) + ) ); + } + + @Test + @SuppressWarnings( "unchecked" ) + public void baseInt( ) + { + BehaviorEntry source = new ConstructorEntry( m_baseClass, "(I)V" ); + assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( + newBehaviorReferenceByMethod( source, m_callerClass.getName(), "b", "()V" ) + ) ); + } + + @Test + @SuppressWarnings( "unchecked" ) + public void subDefault( ) + { + BehaviorEntry source = new ConstructorEntry( m_subClass, "()V" ); + assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( + newBehaviorReferenceByMethod( source, m_callerClass.getName(), "c", "()V" ), + newBehaviorReferenceByConstructor( source, m_subClass.getName(), "(I)V" ) + ) ); + } + + @Test + @SuppressWarnings( "unchecked" ) + public void subInt( ) + { + BehaviorEntry source = new ConstructorEntry( m_subClass, "(I)V" ); + assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( + newBehaviorReferenceByMethod( source, m_callerClass.getName(), "d", "()V" ), + newBehaviorReferenceByConstructor( source, m_subClass.getName(), "(II)V" ), + newBehaviorReferenceByConstructor( source, m_subsubClass.getName(), "(I)V" ) + ) ); + } + + @Test + @SuppressWarnings( "unchecked" ) + public void subIntInt( ) + { + BehaviorEntry source = new ConstructorEntry( m_subClass, "(II)V" ); + assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( + newBehaviorReferenceByMethod( source, m_callerClass.getName(), "e", "()V" ) + ) ); + } + + @Test + public void subIntIntInt( ) + { + BehaviorEntry source = new ConstructorEntry( m_subClass, "(III)V" ); + assertThat( m_index.getBehaviorReferences( source ), is( empty() ) ); + } + + @Test + @SuppressWarnings( "unchecked" ) + public void subsubInt( ) + { + BehaviorEntry source = new ConstructorEntry( m_subsubClass, "(I)V" ); + assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( + newBehaviorReferenceByMethod( source, m_callerClass.getName(), "f", "()V" ) + ) ); + } +} -- cgit v1.2.3 From 72e918a5134c2bf747a476284bcfa1bd2ef2fa21 Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 14 Sep 2014 23:56:43 -0400 Subject: added tests to check constructor tokens fixed a bug with constructor tokens too --- .../enigma/TestJarIndexConstructorReferences.java | 29 +++++++++++++++++----- 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'test/cuchaz/enigma/TestJarIndexConstructorReferences.java') diff --git a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java index 38882a0..c069188 100644 --- a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java +++ b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java @@ -18,10 +18,13 @@ import static org.hamcrest.Matchers.containsInAnyOrder; import static org.hamcrest.Matchers.empty; import static org.hamcrest.Matchers.is; +import java.io.File; +import java.util.Collection; import java.util.jar.JarFile; import org.junit.Test; +import cuchaz.enigma.analysis.EntryReference; import cuchaz.enigma.analysis.JarIndex; import cuchaz.enigma.mapping.BehaviorEntry; import cuchaz.enigma.mapping.ClassEntry; @@ -30,17 +33,19 @@ import cuchaz.enigma.mapping.ConstructorEntry; public class TestJarIndexConstructorReferences { private JarIndex m_index; - + private ClassEntry m_baseClass = new ClassEntry( "none/a" ); - private ClassEntry m_subClass = new ClassEntry( "none/c" ); - private ClassEntry m_subsubClass = new ClassEntry( "none/d" ); + private ClassEntry m_subClass = new ClassEntry( "none/d" ); + private ClassEntry m_subsubClass = new ClassEntry( "none/e" ); + private ClassEntry m_defaultClass = new ClassEntry( "none/c" ); private ClassEntry m_callerClass = new ClassEntry( "none/b" ); - + public TestJarIndexConstructorReferences( ) throws Exception { + File jarFile = new File( "build/libs/testConstructors.obf.jar" ); m_index = new JarIndex(); - m_index.indexJar( new JarFile( "build/libs/testConstructors.obf.jar" ), false ); + m_index.indexJar( new JarFile( jarFile ), false ); } @Test @@ -51,6 +56,7 @@ public class TestJarIndexConstructorReferences m_baseClass, m_subClass, m_subsubClass, + m_defaultClass, m_callerClass ) ); } @@ -60,7 +66,8 @@ public class TestJarIndexConstructorReferences public void baseDefault( ) { BehaviorEntry source = new ConstructorEntry( m_baseClass, "()V" ); - assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( + Collection> references = m_index.getBehaviorReferences( source ); + assertThat( references, containsInAnyOrder( newBehaviorReferenceByMethod( source, m_callerClass.getName(), "a", "()V" ), newBehaviorReferenceByConstructor( source, m_subClass.getName(), "()V" ), newBehaviorReferenceByConstructor( source, m_subClass.getName(), "(III)V" ) @@ -126,4 +133,14 @@ public class TestJarIndexConstructorReferences newBehaviorReferenceByMethod( source, m_callerClass.getName(), "f", "()V" ) ) ); } + + @Test + @SuppressWarnings( "unchecked" ) + public void defaultConstructable( ) + { + BehaviorEntry source = new ConstructorEntry( m_defaultClass, "()V" ); + assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( + newBehaviorReferenceByMethod( source, m_callerClass.getName(), "g", "()V" ) + ) ); + } } -- cgit v1.2.3 From 8409dea980fa03c06b180969c5e0696f7cb5474b Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 21 Sep 2014 00:32:03 -0400 Subject: started unit testing for inner/anonymous class detection --- test/cuchaz/enigma/TestJarIndexConstructorReferences.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'test/cuchaz/enigma/TestJarIndexConstructorReferences.java') diff --git a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java index c069188..0238171 100644 --- a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java +++ b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java @@ -10,13 +10,9 @@ ******************************************************************************/ package cuchaz.enigma; -import static cuchaz.enigma.EntryFactory.newBehaviorReferenceByConstructor; -import static cuchaz.enigma.EntryFactory.newBehaviorReferenceByMethod; -import static cuchaz.enigma.EntryFactory.newClass; -import static org.hamcrest.MatcherAssert.assertThat; -import static org.hamcrest.Matchers.containsInAnyOrder; -import static org.hamcrest.Matchers.empty; -import static org.hamcrest.Matchers.is; +import static cuchaz.enigma.EntryFactory.*; +import static org.hamcrest.MatcherAssert.*; +import static org.hamcrest.Matchers.*; import java.io.File; import java.util.Collection; -- cgit v1.2.3 From 035e73fba69ab06172ae9d784b9e0e4fffeb8388 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 8 Oct 2014 23:54:08 -0400 Subject: relicense as LGPL --- test/cuchaz/enigma/TestJarIndexConstructorReferences.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/cuchaz/enigma/TestJarIndexConstructorReferences.java') diff --git a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java index 0238171..f2c6525 100644 --- a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java +++ b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java @@ -1,9 +1,9 @@ /******************************************************************************* * Copyright (c) 2014 Jeff Martin. * All rights reserved. This program and the accompanying materials - * are made available under the terms of the GNU Public License v3.0 - * which accompanies this distribution, and is available at - * http://www.gnu.org/licenses/gpl.html + * are made available under the terms of the GNU Lesser General Public + * License v3.0 which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/lgpl.html * * Contributors: * Jeff Martin - initial API and implementation -- cgit v1.2.3 From 812e2a4630ef01463ff153ba5ffae675e8ac24ac Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 9 Oct 2014 19:37:19 -0400 Subject: reverting to GPL license --- test/cuchaz/enigma/TestJarIndexConstructorReferences.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/cuchaz/enigma/TestJarIndexConstructorReferences.java') diff --git a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java index f2c6525..0238171 100644 --- a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java +++ b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java @@ -1,9 +1,9 @@ /******************************************************************************* * Copyright (c) 2014 Jeff Martin. * All rights reserved. This program and the accompanying materials - * are made available under the terms of the GNU Lesser General Public - * License v3.0 which accompanies this distribution, and is available at - * http://www.gnu.org/licenses/lgpl.html + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html * * Contributors: * Jeff Martin - initial API and implementation -- cgit v1.2.3 From 959cb5fd4f9586ec3bd265b452fe25fe1db82e3f Mon Sep 17 00:00:00 2001 From: jeff Date: Tue, 13 Jan 2015 23:25:04 -0500 Subject: source format change don't hate me too much if you were planning a big merge. =P --- .../enigma/TestJarIndexConstructorReferences.java | 160 +++++++++------------ 1 file changed, 71 insertions(+), 89 deletions(-) (limited to 'test/cuchaz/enigma/TestJarIndexConstructorReferences.java') diff --git a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java index 0238171..b5f4c7f 100644 --- a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java +++ b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java @@ -26,117 +26,99 @@ import cuchaz.enigma.mapping.BehaviorEntry; import cuchaz.enigma.mapping.ClassEntry; import cuchaz.enigma.mapping.ConstructorEntry; -public class TestJarIndexConstructorReferences -{ +public class TestJarIndexConstructorReferences { + private JarIndex m_index; - - private ClassEntry m_baseClass = new ClassEntry( "none/a" ); - private ClassEntry m_subClass = new ClassEntry( "none/d" ); - private ClassEntry m_subsubClass = new ClassEntry( "none/e" ); - private ClassEntry m_defaultClass = new ClassEntry( "none/c" ); - private ClassEntry m_callerClass = new ClassEntry( "none/b" ); - - public TestJarIndexConstructorReferences( ) - throws Exception - { - File jarFile = new File( "build/libs/testConstructors.obf.jar" ); + + private ClassEntry m_baseClass = new ClassEntry("none/a"); + private ClassEntry m_subClass = new ClassEntry("none/d"); + private ClassEntry m_subsubClass = new ClassEntry("none/e"); + private ClassEntry m_defaultClass = new ClassEntry("none/c"); + private ClassEntry m_callerClass = new ClassEntry("none/b"); + + public TestJarIndexConstructorReferences() throws Exception { + File jarFile = new File("build/libs/testConstructors.obf.jar"); m_index = new JarIndex(); - m_index.indexJar( new JarFile( jarFile ), false ); + m_index.indexJar(new JarFile(jarFile), false); } @Test - public void obfEntries( ) - { - assertThat( m_index.getObfClassEntries(), containsInAnyOrder( - newClass( "cuchaz/enigma/inputs/Keep" ), - m_baseClass, - m_subClass, - m_subsubClass, - m_defaultClass, - m_callerClass - ) ); + public void obfEntries() { + assertThat(m_index.getObfClassEntries(), containsInAnyOrder(newClass("cuchaz/enigma/inputs/Keep"), m_baseClass, m_subClass, m_subsubClass, m_defaultClass, m_callerClass)); } @Test - @SuppressWarnings( "unchecked" ) - public void baseDefault( ) - { - BehaviorEntry source = new ConstructorEntry( m_baseClass, "()V" ); - Collection> references = m_index.getBehaviorReferences( source ); - assertThat( references, containsInAnyOrder( - newBehaviorReferenceByMethod( source, m_callerClass.getName(), "a", "()V" ), - newBehaviorReferenceByConstructor( source, m_subClass.getName(), "()V" ), - newBehaviorReferenceByConstructor( source, m_subClass.getName(), "(III)V" ) - ) ); + @SuppressWarnings("unchecked") + public void baseDefault() { + BehaviorEntry source = new ConstructorEntry(m_baseClass, "()V"); + Collection> references = m_index.getBehaviorReferences(source); + assertThat(references, containsInAnyOrder( + newBehaviorReferenceByMethod(source, m_callerClass.getName(), "a", "()V"), + newBehaviorReferenceByConstructor(source, m_subClass.getName(), "()V"), + newBehaviorReferenceByConstructor(source, m_subClass.getName(), "(III)V") + )); } @Test - @SuppressWarnings( "unchecked" ) - public void baseInt( ) - { - BehaviorEntry source = new ConstructorEntry( m_baseClass, "(I)V" ); - assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( - newBehaviorReferenceByMethod( source, m_callerClass.getName(), "b", "()V" ) - ) ); + @SuppressWarnings("unchecked") + public void baseInt() { + BehaviorEntry source = new ConstructorEntry(m_baseClass, "(I)V"); + assertThat(m_index.getBehaviorReferences(source), containsInAnyOrder( + newBehaviorReferenceByMethod(source, m_callerClass.getName(), "b", "()V") + )); } - + @Test - @SuppressWarnings( "unchecked" ) - public void subDefault( ) - { - BehaviorEntry source = new ConstructorEntry( m_subClass, "()V" ); - assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( - newBehaviorReferenceByMethod( source, m_callerClass.getName(), "c", "()V" ), - newBehaviorReferenceByConstructor( source, m_subClass.getName(), "(I)V" ) - ) ); + @SuppressWarnings("unchecked") + public void subDefault() { + BehaviorEntry source = new ConstructorEntry(m_subClass, "()V"); + assertThat(m_index.getBehaviorReferences(source), containsInAnyOrder( + newBehaviorReferenceByMethod(source, m_callerClass.getName(), "c", "()V"), + newBehaviorReferenceByConstructor(source, m_subClass.getName(), "(I)V") + )); } - + @Test - @SuppressWarnings( "unchecked" ) - public void subInt( ) - { - BehaviorEntry source = new ConstructorEntry( m_subClass, "(I)V" ); - assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( - newBehaviorReferenceByMethod( source, m_callerClass.getName(), "d", "()V" ), - newBehaviorReferenceByConstructor( source, m_subClass.getName(), "(II)V" ), - newBehaviorReferenceByConstructor( source, m_subsubClass.getName(), "(I)V" ) - ) ); + @SuppressWarnings("unchecked") + public void subInt() { + BehaviorEntry source = new ConstructorEntry(m_subClass, "(I)V"); + assertThat(m_index.getBehaviorReferences(source), containsInAnyOrder( + newBehaviorReferenceByMethod(source, m_callerClass.getName(), "d", "()V"), + newBehaviorReferenceByConstructor(source, m_subClass.getName(), "(II)V"), + newBehaviorReferenceByConstructor(source, m_subsubClass.getName(), "(I)V") + )); } - + @Test - @SuppressWarnings( "unchecked" ) - public void subIntInt( ) - { - BehaviorEntry source = new ConstructorEntry( m_subClass, "(II)V" ); - assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( - newBehaviorReferenceByMethod( source, m_callerClass.getName(), "e", "()V" ) - ) ); + @SuppressWarnings("unchecked") + public void subIntInt() { + BehaviorEntry source = new ConstructorEntry(m_subClass, "(II)V"); + assertThat(m_index.getBehaviorReferences(source), containsInAnyOrder( + newBehaviorReferenceByMethod(source, m_callerClass.getName(), "e", "()V") + )); } - + @Test - public void subIntIntInt( ) - { - BehaviorEntry source = new ConstructorEntry( m_subClass, "(III)V" ); - assertThat( m_index.getBehaviorReferences( source ), is( empty() ) ); + public void subIntIntInt() { + BehaviorEntry source = new ConstructorEntry(m_subClass, "(III)V"); + assertThat(m_index.getBehaviorReferences(source), is(empty())); } - + @Test - @SuppressWarnings( "unchecked" ) - public void subsubInt( ) - { - BehaviorEntry source = new ConstructorEntry( m_subsubClass, "(I)V" ); - assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( - newBehaviorReferenceByMethod( source, m_callerClass.getName(), "f", "()V" ) - ) ); + @SuppressWarnings("unchecked") + public void subsubInt() { + BehaviorEntry source = new ConstructorEntry(m_subsubClass, "(I)V"); + assertThat(m_index.getBehaviorReferences(source), containsInAnyOrder( + newBehaviorReferenceByMethod(source, m_callerClass.getName(), "f", "()V") + )); } - + @Test - @SuppressWarnings( "unchecked" ) - public void defaultConstructable( ) - { - BehaviorEntry source = new ConstructorEntry( m_defaultClass, "()V" ); - assertThat( m_index.getBehaviorReferences( source ), containsInAnyOrder( - newBehaviorReferenceByMethod( source, m_callerClass.getName(), "g", "()V" ) - ) ); + @SuppressWarnings("unchecked") + public void defaultConstructable() { + BehaviorEntry source = new ConstructorEntry(m_defaultClass, "()V"); + assertThat(m_index.getBehaviorReferences(source), containsInAnyOrder( + newBehaviorReferenceByMethod(source, m_callerClass.getName(), "g", "()V") + )); } } -- cgit v1.2.3 From 2fbcf8e5c4eec0aa4a4fc59c7cc8abac33b1429c Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 19 Jan 2015 22:22:57 -0500 Subject: solved tricky issue with incorrect translation of fields/methods referenced by a subclass instead of the declaring class --- test/cuchaz/enigma/TestJarIndexConstructorReferences.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/cuchaz/enigma/TestJarIndexConstructorReferences.java') diff --git a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java index b5f4c7f..8e3ad6d 100644 --- a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java +++ b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java @@ -37,7 +37,7 @@ public class TestJarIndexConstructorReferences { private ClassEntry m_callerClass = new ClassEntry("none/b"); public TestJarIndexConstructorReferences() throws Exception { - File jarFile = new File("build/libs/testConstructors.obf.jar"); + File jarFile = new File("build/testConstructors.obf.jar"); m_index = new JarIndex(); m_index.indexJar(new JarFile(jarFile), false); } -- cgit v1.2.3 From 818716acb3992e602e01725b6e151c1eb0f6c2e2 Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 5 Feb 2015 23:52:55 -0500 Subject: fix test code formatting and disable the super duper slow test for now --- test/cuchaz/enigma/TestJarIndexConstructorReferences.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/cuchaz/enigma/TestJarIndexConstructorReferences.java') diff --git a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java index 8e3ad6d..a735de7 100644 --- a/test/cuchaz/enigma/TestJarIndexConstructorReferences.java +++ b/test/cuchaz/enigma/TestJarIndexConstructorReferences.java @@ -36,7 +36,8 @@ public class TestJarIndexConstructorReferences { private ClassEntry m_defaultClass = new ClassEntry("none/c"); private ClassEntry m_callerClass = new ClassEntry("none/b"); - public TestJarIndexConstructorReferences() throws Exception { + public TestJarIndexConstructorReferences() + throws Exception { File jarFile = new File("build/testConstructors.obf.jar"); m_index = new JarIndex(); m_index.indexJar(new JarFile(jarFile), false); -- cgit v1.2.3