Added tests with removing files and changing packages.

Original commit: 111feb2574
This commit is contained in:
Evgeny Gerashchenko
2014-06-20 14:33:47 +04:00
parent 29920360c1
commit 4c8ff1616e
21 changed files with 110 additions and 0 deletions
@@ -56,11 +56,21 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
doTest("jps-plugin/testData/incremental/constantValue/");
}
@TestMetadata("filesExchangePackages")
public void testFilesExchangePackages() throws Exception {
doTest("jps-plugin/testData/incremental/filesExchangePackages/");
}
@TestMetadata("independentClasses")
public void testIndependentClasses() throws Exception {
doTest("jps-plugin/testData/incremental/independentClasses/");
}
@TestMetadata("multiplePackagesModified")
public void testMultiplePackagesModified() throws Exception {
doTest("jps-plugin/testData/incremental/multiplePackagesModified/");
}
@TestMetadata("packageFileAdded")
public void testPackageFileAdded() throws Exception {
doTest("jps-plugin/testData/incremental/packageFileAdded/");
@@ -86,6 +96,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
doTest("jps-plugin/testData/incremental/packageFilesChangedInTurn/");
}
@TestMetadata("packageRemoved")
public void testPackageRemoved() throws Exception {
doTest("jps-plugin/testData/incremental/packageRemoved/");
}
@TestMetadata("returnTypeChanged")
public void testReturnTypeChanged() throws Exception {
doTest("jps-plugin/testData/incremental/returnTypeChanged/");
@@ -96,6 +111,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
doTest("jps-plugin/testData/incremental/simpleClassDependency/");
}
@TestMetadata("soleFileChangesPackage")
public void testSoleFileChangesPackage() throws Exception {
doTest("jps-plugin/testData/incremental/soleFileChangesPackage/");
}
@TestMetadata("topLevelFunctionSameSignature")
public void testTopLevelFunctionSameSignature() throws Exception {
doTest("jps-plugin/testData/incremental/topLevelFunctionSameSignature/");
@@ -0,0 +1,3 @@
package foo
fun a() = "a"
@@ -0,0 +1,3 @@
package foo
fun b() = "b"
@@ -0,0 +1,3 @@
package bar
fun b() = "b"
@@ -0,0 +1,17 @@
Cleaning output files:
out/production/module/bar/BarPackage-c-*.class
out/production/module/bar/BarPackage.class
out/production/module/foo/FooPackage-b-*.class
out/production/module/foo/FooPackage.class
End of files
Compiling files:
src/b.kt
src/c.kt
End of files
Cleaning output files:
out/production/module/foo/FooPackage-a-*.class
out/production/module/foo/FooPackage.class
End of files
Compiling files:
src/a.kt
End of files
@@ -0,0 +1,3 @@
package bar
fun c() = "c"
@@ -0,0 +1,3 @@
package foo
fun c() = "c"
@@ -0,0 +1,3 @@
package a
fun a1() = ":)"
@@ -0,0 +1,3 @@
package a
fun a2() = ":))"
@@ -0,0 +1,3 @@
package b
fun b1() = ":("
@@ -0,0 +1,3 @@
package b
fun b2() = ":(("
@@ -0,0 +1,17 @@
Cleaning output files:
out/production/module/b/BPackage-b2-*.class
out/production/module/b/BPackage.class
End of files
Compiling files:
src/a2.kt
End of files
Cleaning output files:
out/production/module/a/APackage-a1-*.class
out/production/module/a/APackage.class
out/production/module/b/BPackage-b1-*.class
out/production/module/b/BPackage.class
End of files
Compiling files:
src/a1.kt
src/b1.kt
End of files
@@ -0,0 +1,3 @@
package test
fun a() = "a"
@@ -0,0 +1,3 @@
package test
fun b() = "b"
@@ -0,0 +1,9 @@
Cleaning output files:
out/production/module/test/TestPackage-a-*.class
out/production/module/test/TestPackage.class
End of files
Cleaning output files:
out/production/module/test/TestPackage-b-*.class
End of files
Compiling files:
End of files
@@ -0,0 +1,3 @@
package foo
fun a() = "a"
@@ -0,0 +1,4 @@
package bar
fun a() = "a"
fun aa() = "aa"
@@ -0,0 +1,7 @@
Cleaning output files:
out/production/module/foo/FooPackage-a-*.class
out/production/module/foo/FooPackage.class
End of files
Compiling files:
src/a.kt
End of files