Expanded test with constants unchanged. Now it has class-level and package-level constants mixed in one file.

Original commit: ca647a9ff4
This commit is contained in:
Evgeny Gerashchenko
2014-07-07 15:05:28 +04:00
parent 269ad88f78
commit 0fe80fdb5b
8 changed files with 27 additions and 13 deletions
@@ -86,9 +86,9 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
doTest("jps-plugin/testData/incremental/classSignatureUnchanged/");
}
@TestMetadata("constantUnchanged")
public void testConstantUnchanged() throws Exception {
doTest("jps-plugin/testData/incremental/constantUnchanged/");
@TestMetadata("constantsUnchanged")
public void testConstantsUnchanged() throws Exception {
doTest("jps-plugin/testData/incremental/constantsUnchanged/");
}
@TestMetadata("dependencyClassReferenced")
@@ -1,3 +0,0 @@
package test
val CONST = "foo"
@@ -1,3 +0,0 @@
package test
val CONST = "foo"
@@ -1,4 +0,0 @@
package test
deprecated(CONST + CONST)
class Usage
@@ -1,4 +1,6 @@
Cleaning output files:
out/production/module/test/Klass$object.class
out/production/module/test/Klass.class
out/production/module/test/TestPackage-const-*.class
out/production/module/test/TestPackage.class
End of files
@@ -0,0 +1,9 @@
package test
val CONST = "foo"
class Klass {
class object {
val CONST = "bar"
}
}
@@ -0,0 +1,9 @@
package test
val CONST = "foo"
class Klass {
class object {
val CONST = "bar"
}
}
@@ -0,0 +1,4 @@
package test
deprecated(CONST + Klass.CONST)
class Usage