Remove generated black box java codegen test

Move all testData to boxWithJava/
This commit is contained in:
Alexander Udalov
2013-01-27 20:46:26 +04:00
committed by Alexander Udalov
parent 86938f57b1
commit 2904d1745b
38 changed files with 125 additions and 235 deletions
@@ -1,10 +0,0 @@
import java.lang.String;
public class protectedStaticClass {
protected static class Inner {
public Inner() {}
public String foo() {
return "OK";
}
}
}
@@ -1,9 +0,0 @@
class Derived(): protectedStaticClass() {
fun test(): String {
return protectedStaticClass.Inner().foo()!!
}
}
fun box(): String {
return Derived().test()
}
@@ -1,14 +0,0 @@
import java.lang.String;
public class protectedStaticClass2 {
public static class A {
protected static class B {
public B() {
}
public String foo() {
return "OK";
}
}
}
}
@@ -1,9 +0,0 @@
class Derived(): protectedStaticClass2.A() {
fun test(): String {
return protectedStaticClass2.A.B().foo()!!
}
}
fun box(): String {
return Derived().test()
}
@@ -1,5 +0,0 @@
public class protectedStaticFun {
protected static String protectedFun() {
return "OK";
}
}
@@ -1,9 +0,0 @@
class Derived(): protectedStaticFun() {
fun test(): String {
return protectedStaticFun.protectedFun()!!
}
}
fun box(): String {
return Derived().test()
}
@@ -1,14 +0,0 @@
import java.lang.String;
public class protectedStaticFunCallInConstructor {
protected final String protectedProperty;
public protectedStaticFunCallInConstructor(String str) {
protectedProperty = str;
}
protected static String protectedFun() {
return "OK";
}
}
@@ -1,9 +0,0 @@
class A: protectedStaticFunCallInConstructor(protectedStaticFunCallInConstructor.protectedFun()) {
fun test(): String {
return protectedProperty!!
}
}
fun box(): String {
return A().test()
}
@@ -1,6 +0,0 @@
public class protectedStaticFunClassObject {
protected static String protectedFun() {
return "OK";
}
}
@@ -1,11 +0,0 @@
class A {
class object: protectedStaticFunClassObject() {
fun test(): String {
return protectedStaticFunClassObject.protectedFun()!!
}
}
}
fun box(): String {
return A.test()
}
@@ -1,5 +0,0 @@
public class protectedStaticFunGenericClass<T> {
protected static String protectedFun() {
return "OK";
}
}
@@ -1,9 +0,0 @@
class Derived(): protectedStaticFunGenericClass<String>() {
fun test(): String {
return protectedStaticFunGenericClass.protectedFun()!!
}
}
fun box(): String {
return Derived().test()
}
@@ -1,7 +0,0 @@
public class protectedStaticFunNestedStaticClass {
public static class Inner {
protected static String protectedFun() {
return "OK";
}
}
}
@@ -1,9 +0,0 @@
class Derived(): protectedStaticFunNestedStaticClass.Inner() {
fun test(): String {
return protectedStaticFunNestedStaticClass.Inner.protectedFun()!!
}
}
fun box(): String {
return Derived().test()
}
@@ -1,9 +0,0 @@
public class protectedStaticFunNestedStaticClass2 {
public static class A {
public static class B {
protected static String protectedFun() {
return "OK";
}
}
}
}
@@ -1,9 +0,0 @@
class Derived(): protectedStaticFunNestedStaticClass2.A.B() {
fun test(): String {
return protectedStaticFunNestedStaticClass2.A.B.protectedFun()!!
}
}
fun box(): String {
return Derived().test()
}
@@ -1,7 +0,0 @@
public class protectedStaticFunNestedStaticGenericClass<T> {
public static class Inner<S> {
protected static String protectedFun() {
return "OK";
}
}
}
@@ -1,9 +0,0 @@
class Derived(): protectedStaticFunNestedStaticGenericClass<String>.Inner<String>() {
fun test(): String {
return protectedStaticFunNestedStaticGenericClass.Inner.protectedFun()!!
}
}
fun box(): String {
return Derived().test()
}
@@ -1,5 +0,0 @@
public class protectedStaticFunNotDirectSuperClass {
protected static String protectedFun() {
return "OK";
}
}
@@ -1,12 +0,0 @@
open class A : protectedStaticFunNotDirectSuperClass() {}
class Derived(): A() {
fun test(): String {
return protectedStaticFunNotDirectSuperClass.protectedFun()!!
}
}
fun box(): String {
return Derived().test()
}
@@ -1,6 +0,0 @@
public class protectedStaticFunObject {
protected static String protectedFun() {
return "OK";
}
}
@@ -1,9 +0,0 @@
object A: protectedStaticFunObject() {
fun test(): String {
return protectedStaticFunObject.protectedFun()!!
}
}
fun box(): String {
return A.test()
}
@@ -1,3 +0,0 @@
public class protectedStaticProperty {
protected static final String protectedProperty = "OK";
}
@@ -1,10 +0,0 @@
class Derived(): protectedStaticProperty() {
fun test(): String {
return protectedStaticProperty.protectedProperty!!
}
}
fun box(): String {
return Derived().test()
}