Added test cases checking all decompiled files.

This commit is contained in:
Evgeny Gerashchenko
2012-03-12 14:15:24 +04:00
parent a0ea56be3f
commit 09c48ae440
9 changed files with 115 additions and 0 deletions
@@ -0,0 +1,22 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package testData.libraries
abstract class ClassWithAbstractAndOpenMembers {
abstract fun abstractFun() : Unit
open fun openFun() : Unit { /* compiled code */ }
abstract val abstractVal : jet.String
open val openVal : jet.String /* compiled code */
open val openValWithGetter : jet.String /* compiled code */
abstract var abstractVar : jet.String
open var openVar : jet.String /* compiled code */
open var openVarWithGetter : jet.String /* compiled code */
}
+8
View File
@@ -0,0 +1,8 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package testData.libraries
class Color {
val rgb : jet.Int /* compiled code */
}
+7
View File
@@ -0,0 +1,7 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package testData.libraries
class SimpleClass {
}
+7
View File
@@ -0,0 +1,7 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package testData.libraries
trait SimpleTrait {
}
@@ -0,0 +1,7 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package testData.libraries
class SimpleTraitImpl : testData.libraries.SimpleTrait {
}
@@ -0,0 +1,16 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package testData.libraries
class WithInnerAndObject {
class object {
fun foo() : Unit { /* compiled code */ }
}
class MyInner {
trait MyInnerInner {
abstract fun innerInnerMethod() : Unit
}
}
}
@@ -0,0 +1,9 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package testData.libraries
class WithTraitClassObject {
class object : testData.libraries.SimpleTrait {
}
}
+7
View File
@@ -0,0 +1,7 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package testData.libraries
fun main(val args : jet.Array<jet.String>) : Unit { /* compiled code */ }
@@ -44,6 +44,38 @@ public class LibrariesTest extends PlatformTestCase {
doTest();
}
public void testClassWithAbstractAndOpenMembers() {
doTest();
}
public void testColor() {
doTest();
}
public void testnamespace() {
doTest();
}
public void testSimpleClass() {
doTest();
}
public void testSimpleTrait() {
doTest();
}
public void testSimpleTraitImpl() {
doTest();
}
public void testWithInnerAndObject() {
doTest();
}
public void testWithTraitClassObject() {
doTest();
}
private void doTest() {
String testName = getTestName(false);
VirtualFile packageDir = myLibraryDir.findFileByRelativePath(PACKAGE.replace(".", "/"));