diff --git a/jps-plugin/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTest.kt b/jps-plugin/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTest.kt index 5c807b2c89c..aa9d2abb009 100644 --- a/jps-plugin/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTest.kt +++ b/jps-plugin/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTest.kt @@ -757,18 +757,19 @@ public class KotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() { DELETE } - protected fun touch(path: String): Action = Action(Operation.CHANGE, path) + private fun touch(path: String): Action = Action(Operation.CHANGE, path) - protected fun del(path: String): Action = Action(Operation.DELETE, path) + private fun del(path: String): Action = Action(Operation.DELETE, path) - protected fun change(filePath: String): Unit = JpsBuildTestCase.change(filePath) + // TODO inline after KT-3974 will be fixed + private fun touch(file: File): Unit = JpsBuildTestCase.change(file.absolutePath) - protected inner class Action constructor(private val operation: Operation, private val path: String) { + private inner class Action constructor(private val operation: Operation, private val path: String) { fun apply() { val file = File(workDir, path) when (operation) { Operation.CHANGE -> - change(file.getAbsolutePath()) + touch(file) Operation.DELETE -> assertTrue(file.delete(), "Can not delete file \"" + file.getAbsolutePath() + "\"") else ->