Added test with class signature unchanged.

This commit is contained in:
Evgeny Gerashchenko
2014-06-19 14:37:08 +04:00
parent 15d9549477
commit 7f1e99ecfd
5 changed files with 32 additions and 0 deletions
@@ -41,6 +41,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
doTest("jps-plugin/testData/incremental/classSignatureChanged/");
}
@TestMetadata("classSignatureUnchanged")
public void testClassSignatureUnchanged() throws Exception {
doTest("jps-plugin/testData/incremental/classSignatureUnchanged/");
}
@TestMetadata("constantUnchanged")
public void testConstantUnchanged() throws Exception {
doTest("jps-plugin/testData/incremental/constantUnchanged/");
@@ -0,0 +1,6 @@
Cleaning output files:
out/production/module/test/Klass.class
End of files
Compiling files:
src/class.kt
End of files
@@ -0,0 +1,7 @@
package test
class Klass {
fun foo() = ":)"
fun bar() = ":("
}
@@ -0,0 +1,8 @@
package test
// swapped functions
class Klass {
fun bar() = ":("
fun foo() = ":)"
}
@@ -0,0 +1,6 @@
package test
fun usage(a: Klass) {
a.foo()
a.bar()
}