File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
src/test/java/org/jd/core/v1 Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,25 @@ public class JarFileToJavaSourceTest extends TestCase {
3636 protected JavaFragmentToTokenProcessor tokenizer = new JavaFragmentToTokenProcessor ();
3737 protected WriteTokenProcessor writer = new WriteTokenProcessor ();
3838
39+ // TODO In progress
40+ // @Test
41+ // public void testCommonsLang3() throws Exception {
42+ // // Decompile and recompile 'commons-lang3-3.9.jar'
43+ // test(org.apache.commons.lang3.JavaVersion.class);
44+ // }
45+
3946 @ Test
4047 public void testCommonsCollections4 () throws Exception {
41- // Test 'commons-collections4-4.1.jar'
48+ // Decompile and recompile 'commons-collections4-4.1.jar'
4249 test (org .apache .commons .collections4 .CollectionUtils .class );
4350 }
4451
52+ @ Test
53+ public void testCommonsCodec () throws Exception {
54+ // Decompile and recompile 'commons-codec-1.13.jar'
55+ test (org .apache .commons .codec .Charsets .class );
56+ }
57+
4558 protected void test (Class clazz ) throws Exception {
4659 test (new FileInputStream (Paths .get (clazz .getProtectionDomain ().getCodeSource ().getLocation ().toURI ()).toFile ()));
4760 }
@@ -72,6 +85,8 @@ protected void test(InputStream inputStream) throws Exception {
7285 if (path .endsWith (".class" ) && (path .indexOf ('$' ) == -1 )) {
7386 String internalTypeName = path .substring (0 , path .length () - 6 ); // 6 = ".class".length()
7487
88+ // TODO DEBUG if (!internalTypeName.endsWith("/Rule")) continue;
89+
7590 message .setHeader ("mainInternalTypeName" , internalTypeName );
7691 printer .init ();
7792
You can’t perform that action at this time.
0 commit comments