Converter tests:
Change test data files extension to "java"
This commit is contained in:
@@ -418,11 +418,11 @@ fun main(args: Array<String>) {
|
||||
|
||||
testGroup("j2k/tests/test", "j2k/tests/testData") {
|
||||
testClass(javaClass<AbstractJavaToKotlinConverterPluginTest>()) {
|
||||
model("ast", extension = "jav")
|
||||
model("ast", extension = "java")
|
||||
}
|
||||
|
||||
testClass(javaClass<AbstractJavaToKotlinConverterBasicTest>()) {
|
||||
model("ast", extension = "jav")
|
||||
model("ast", extension = "java")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ public abstract class AbstractJavaToKotlinConverterTest(val kotlinFileExtension:
|
||||
protected fun doTest(javaPath: String) {
|
||||
val project = LightPlatformTestCase.getProject()!!
|
||||
val converter = Converter(project, settings)
|
||||
val kotlinPath = javaPath.replace(".jav", ".$kotlinFileExtension")
|
||||
val kotlinPath = javaPath.replace(".java", ".$kotlinFileExtension")
|
||||
val kotlinFile = File(kotlinPath)
|
||||
if (!kotlinFile.exists()) {
|
||||
FileUtil.writeToFile(kotlinFile, "")
|
||||
|
||||
+769
-769
File diff suppressed because it is too large
Load Diff
+769
-769
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user