Added tests with class referenced from proto.

Original commit: ca4ac43add
This commit is contained in:
Evgeny Gerashchenko
2014-06-23 14:23:26 +04:00
parent 18113ed61a
commit bdc735f48f
12 changed files with 91 additions and 0 deletions
@@ -66,6 +66,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
doTest("jps-plugin/testData/incremental/constantValue/");
}
@TestMetadata("dependencyClassReferenced")
public void testDependencyClassReferenced() throws Exception {
doTest("jps-plugin/testData/incremental/dependencyClassReferenced/");
}
@TestMetadata("filesExchangePackages")
public void testFilesExchangePackages() throws Exception {
doTest("jps-plugin/testData/incremental/filesExchangePackages/");
@@ -81,6 +86,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
doTest("jps-plugin/testData/incremental/multiplePackagesModified/");
}
@TestMetadata("ourClassReferenced")
public void testOurClassReferenced() throws Exception {
doTest("jps-plugin/testData/incremental/ourClassReferenced/");
}
@TestMetadata("packageFileAdded")
public void testPackageFileAdded() throws Exception {
doTest("jps-plugin/testData/incremental/packageFileAdded/");
@@ -0,0 +1,6 @@
package test
fun a(ref: kotlin.test.Asserter) {
b(ref)
println(":)")
}
@@ -0,0 +1,6 @@
package test
fun a(ref: kotlin.test.Asserter) {
b(ref)
println(":)")
}
@@ -0,0 +1,6 @@
package test
fun b(ref: kotlin.test.Asserter) {
a(ref)
println(":)")
}
@@ -0,0 +1,7 @@
Cleaning output files:
out/production/module/test/TestPackage-a-*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/a.kt
End of files
@@ -0,0 +1,3 @@
package klass
class Klass
@@ -0,0 +1,3 @@
package klass
class Klass
@@ -0,0 +1,8 @@
package test
import klass.*
fun a(klass: Klass) {
b(klass)
println(":)")
}
@@ -0,0 +1,8 @@
package test
import klass.*
fun a(klass: Klass) {
b(klass)
println(":)")
}
@@ -0,0 +1,8 @@
package test
import klass.*
fun a(klass: Klass) {
b(klass)
println(":)")
}
@@ -0,0 +1,8 @@
package test
import klass.*
fun b(klass: Klass) {
a(klass)
println(":)")
}
@@ -0,0 +1,18 @@
Cleaning output files:
out/production/module/test/TestPackage-a-*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/a.kt
End of files
Cleaning output files:
out/production/module/klass/Klass.class
out/production/module/test/TestPackage-a-*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/Klass.kt
src/a.kt
End of files