Uast: Update tests, make the tests a bit more readable (provide toString() methods for Uast kinds)

This commit is contained in:
Yan Zhulanow
2016-03-24 17:11:28 +03:00
parent 109c76c87d
commit 3484f92d10
29 changed files with 454 additions and 105 deletions
@@ -24,7 +24,7 @@ import java.io.File
open class AbstractStructureTest : LightCodeInsightTestCase() {
fun test(name: String) {
val testDir = File("testData")
val testDir = testDataPath
val javaFile = File(testDir, "$name.java")
val logFile = File(File(testDir, "log"), "$name.txt")
val renderFile = File(File(testDir, "render"), "$name.txt")
@@ -61,4 +61,6 @@ open class AbstractStructureTest : LightCodeInsightTestCase() {
}
private class NoTestFileException(file: File) : RuntimeException("Test file was generated: $file")
override fun getTestDataPath() = "plugins/uast-java/testData"
}