Rename tests: boxWithJava -> boxAgainstJava

This commit is contained in:
Alexander Udalov
2014-06-25 03:42:42 +04:00
parent 544cf4f28d
commit 09863445bb
163 changed files with 125 additions and 125 deletions
@@ -0,0 +1,9 @@
package protectedPack;
import java.lang.String;
public class overrideProtectedFunInPackage {
protected String foo() {
return "fail";
}
}
@@ -0,0 +1,17 @@
package protectedPackKotlin
import protectedPack.overrideProtectedFunInPackage
class Derived: overrideProtectedFunInPackage() {
protected override fun foo(): String? {
return "OK"
}
fun test(): String {
return foo()!!
}
}
fun box(): String {
return Derived().test()
}
@@ -0,0 +1,9 @@
package protectedPack;
import java.lang.String;
public class protectedFunInPackage {
protected String foo() {
return "OK";
}
}
@@ -0,0 +1,5 @@
package protectedPack
fun box(): String {
return protectedFunInPackage().foo()!!
}
@@ -0,0 +1,7 @@
package protectedPack;
import java.lang.String;
public class protectedPropertyInPackage {
protected String foo = "OK";
}
@@ -0,0 +1,5 @@
package protectedPack
fun box(): String {
return protectedPropertyInPackage().foo!!
}
@@ -0,0 +1,11 @@
package protectedPack;
import java.lang.String;
public class protectedStaticClass {
protected static class Inner {
public String foo() {
return "OK";
}
}
}
@@ -0,0 +1,11 @@
package protectedPack
class Derived(): protectedStaticClass() {
fun test(): String {
return protectedStaticClass.Inner().foo()!!
}
}
fun box(): String {
return Derived().test()
}