Change test data so IC and non IC warnings count match
When IC is on and new Kotlin class is referencing new Java class, new Kotlin file is compiled twice, because JPS thinks new Kotlin class is affected by new Java class (see https://youtrack.jetbrains.com/issue/KT-20318). This does not happen when IC is off, and KotlinBuilder requests chunk rebuild (see previous commit). I decided to remove the reference, because the issue is now known, and the reference is non critical for the test.
This commit is contained in:
@@ -337,7 +337,7 @@ open class KotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() {
|
||||
val buildResult = buildAllModules()
|
||||
buildResult.assertSuccessful()
|
||||
val warnings = buildResult.getMessages(BuildMessage.Kind.WARNING)
|
||||
assertEquals("Warning about invalid package prefix in module 2 is expected: $warnings", 2, warnings.size)
|
||||
assertEquals("Warning about invalid package prefix in module 2 is expected: $warnings", 1, warnings.size)
|
||||
assertEquals("Invalid package prefix name is ignored: invalid-prefix.test", warnings.first().messageText)
|
||||
}
|
||||
|
||||
|
||||
@@ -3,11 +3,9 @@ package some
|
||||
import bad.prefix.KotlinTestInBadPrefix
|
||||
import good.prefix.KotlinTestInGoodPrefix
|
||||
import good.prefix.JavaTest;
|
||||
import test.JavaRef
|
||||
|
||||
val goodTest = KotlinTestInGoodPrefix()
|
||||
val badTest = KotlinTestInBadPrefix()
|
||||
val javaTest = JavaTest().bar()
|
||||
val javaRef = JavaRef().foo(null)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user