diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/RelocatableJpsCachesTest.kt b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/RelocatableJpsCachesTest.kt index dcbb4332ec6..f8df3789af3 100644 --- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/RelocatableJpsCachesTest.kt +++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/RelocatableJpsCachesTest.kt @@ -55,17 +55,20 @@ class RelocatableJpsCachesTest : BaseKotlinJpsBuildTestCase() { assertEqualDirectories(test1KotlinCachesDir, test2KotlinCachesDir, forgiveExtraFiles = false) } + private class RelocatableCacheTestCaseIml( + private val testName: String, + projectWorkingDir: File, + dirToCopyKotlinCaches: File + ) : RelocatableCacheTestCase(projectWorkingDir, dirToCopyKotlinCaches) { + override fun getName() = testName + } + private fun runTestAndCopyKotlinCaches( projectWorkingDir: File, dirToCopyKotlinCaches: File, testMethod: KFunction1 ) { - val testCase = object : RelocatableCacheTestCase( - projectWorkingDir = projectWorkingDir, - dirToCopyKotlinCaches = dirToCopyKotlinCaches - ) { - override fun getName(): String = testMethod.name - } + val testCase = RelocatableCacheTestCaseIml(testMethod.name, projectWorkingDir, dirToCopyKotlinCaches) testCase.exposedPrivateApi.setUp() try {