From 997a7747d65bf4f76ef95ca43f3c89a8020480e1 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Thu, 27 Apr 2017 13:33:24 +0300 Subject: [PATCH] more tests (disabled for now) --- .../java/decompiler/SingleClassesTest.java | 9 ++++++--- testData/classes/pkg/package-info.class | Bin 0 -> 166 bytes testData/results/package-info.dec | 2 ++ testData/src/pkg/package-info.java | 2 ++ 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 testData/classes/pkg/package-info.class create mode 100644 testData/results/package-info.dec create mode 100644 testData/src/pkg/package-info.java diff --git a/test/org/jetbrains/java/decompiler/SingleClassesTest.java b/test/org/jetbrains/java/decompiler/SingleClassesTest.java index 51521b4..64edeed 100644 --- a/test/org/jetbrains/java/decompiler/SingleClassesTest.java +++ b/test/org/jetbrains/java/decompiler/SingleClassesTest.java @@ -66,7 +66,6 @@ public class SingleClassesTest { @Test public void testAnonymousClassConstructor() { doTest("pkg/TestAnonymousClassConstructor"); } @Test public void testInnerClassConstructor() { doTest("pkg/TestInnerClassConstructor"); } @Test public void testInnerClassConstructor11() { doTest("v11/TestInnerClassConstructor"); } - //@Test public void testInnerClassConstructor2() { doTest("pkg/TestInner2"); } //TODO: fix @Test public void testTryCatchFinally() { doTest("pkg/TestTryCatchFinally"); } @Test public void testAmbiguousCall() { doTest("pkg/TestAmbiguousCall"); } @Test public void testAmbiguousCallWithDebugInfo() { doTest("pkg/TestAmbiguousCallWithDebugInfo"); } @@ -108,13 +107,17 @@ public class SingleClassesTest { "pkg/SharedName2", "pkg/SharedName3", "pkg/SharedName4", "pkg/NonSharedName", "pkg/TestClashNameParent", "ext/TestClashNameParent","pkg/TestClashNameIface", "ext/TestClashNameIface"); } @Test public void testSwitchOnEnum() { doTest("pkg/TestSwitchOnEnum");} - //@Test public void TestSwitchOnStrings() { doTest("pkg/TestSwitchOnStrings");} @Test public void testVarArgCalls() { doTest("pkg/TestVarArgCalls"); } @Test public void testLambdaParams() { doTest("pkg/TestLambdaParams"); } @Test public void testInterfaceMethods() { doTest("pkg/TestInterfaceMethods"); } - //@Test public void testUnionType() { doTest("pkg/TestUnionType"); } //TODO: fix @Test public void testConstType() { doTest("pkg/TestConstType"); } + // TODO: fix all below + //@Test public void testPackageInfo() { doTest("pkg/package-info"); } + //@Test public void testSwitchOnStrings() { doTest("pkg/TestSwitchOnStrings");} + //@Test public void testUnionType() { doTest("pkg/TestUnionType"); } + //@Test public void testInnerClassConstructor2() { doTest("pkg/TestInner2"); } + private void doTest(String testFile, String... companionFiles) { ConsoleDecompiler decompiler = fixture.getDecompiler(); diff --git a/testData/classes/pkg/package-info.class b/testData/classes/pkg/package-info.class new file mode 100644 index 0000000000000000000000000000000000000000..eee29394a7d0983ed45f01bfd0318a0809373ab2 GIT binary patch literal 166 zcmX^0Z`VEs1_l!bPId-%b_Nbc2Cm@z(xT*4x6GVWMh3xx#N_P6^i@I+RL8u${F20y%>2A!Mg~5gtdwkh*NTGtqLS1UYeoivg6wpC vWJ7>LAY=4%67$ma{gbj%lS{-H7#JCtfUW=mCI)6O$-=-2q}hNnYzzzl15hd` literal 0 HcmV?d00001 diff --git a/testData/results/package-info.dec b/testData/results/package-info.dec new file mode 100644 index 0000000..f19fbea --- /dev/null +++ b/testData/results/package-info.dec @@ -0,0 +1,2 @@ +@jdk.Exported +package pkg; \ No newline at end of file diff --git a/testData/src/pkg/package-info.java b/testData/src/pkg/package-info.java new file mode 100644 index 0000000..d665652 --- /dev/null +++ b/testData/src/pkg/package-info.java @@ -0,0 +1,2 @@ +@jdk.Exported +package pkg;