Always create test files, directive processing would be based on them
This is required for extracted 'getTestJdkKind' in previous commits
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ abstract class AbstractCompilerLightClassTest : KotlinMultiFileTestWithJava<Kotl
|
||||
fileName: String,
|
||||
text: String,
|
||||
directives: Map<String, String>
|
||||
): TestFile? = null
|
||||
): TestFile = TestFile(fileName, text)
|
||||
|
||||
companion object {
|
||||
fun findLightClass(allowFrontendExceptions: Boolean, environment: KotlinCoreEnvironment, fqname: String): PsiClass? {
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ abstract class KotlinMultiFileTestWithJava<M : KotlinBaseTest.TestModule, F : Ko
|
||||
|
||||
protected abstract fun createTestModule(name: String, dependencies: List<String>, friends: List<String>): M?
|
||||
|
||||
protected abstract fun createTestFile(module: M?, fileName: String, text: String, directives: Map<String, String>): F?
|
||||
protected abstract fun createTestFile(module: M?, fileName: String, text: String, directives: Map<String, String>): F
|
||||
|
||||
protected open fun createTestFiles(
|
||||
file: File,
|
||||
|
||||
@@ -22,8 +22,8 @@ abstract class AbstractVisualizer : KotlinMultiFileTestWithJava<KotlinBaseTest.T
|
||||
): TestModule? = null
|
||||
|
||||
|
||||
override fun createTestFile(module: TestModule?, fileName: String, text: String, directives: Map<String, String>): TestFile? =
|
||||
null
|
||||
override fun createTestFile(module: TestModule?, fileName: String, text: String, directives: Map<String, String>): TestFile =
|
||||
TestFile(fileName, text)
|
||||
|
||||
|
||||
override fun doMultiFileTest(wholeFile: File, files: List<TestFile>) {
|
||||
@@ -37,10 +37,6 @@ abstract class AbstractVisualizer : KotlinMultiFileTestWithJava<KotlinBaseTest.T
|
||||
return true
|
||||
}
|
||||
|
||||
override fun getTestJdkKind(files: List<TestFile>): TestJdkKind {
|
||||
return TestJdkKind.FULL_JDK
|
||||
}
|
||||
|
||||
override fun getConfigurationKind(): ConfigurationKind {
|
||||
return ConfigurationKind.ALL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user