Migrate bytecode text tests to multi-file framework

Get rid of BytecodeTextMultifileTestGenerated
This commit is contained in:
Alexander Udalov
2016-02-25 14:34:18 +03:00
parent fbc2fe74ad
commit 647e188a08
20 changed files with 214 additions and 208 deletions
@@ -19,9 +19,8 @@ package org.jetbrains.kotlin.lang.resolve.android.test
import org.jetbrains.kotlin.codegen.AbstractBytecodeTextTest
import org.jetbrains.kotlin.config.CompilerConfiguration
import org.jetbrains.kotlin.test.ConfigurationKind
import org.jetbrains.kotlin.test.TestJdkKind
import org.jetbrains.kotlin.test.KotlinTestUtils
import java.io.File
import org.jetbrains.kotlin.test.TestJdkKind
abstract class AbstractAndroidBytecodeShapeTest : AbstractBytecodeTextTest() {
@@ -39,6 +38,7 @@ abstract class AbstractAndroidBytecodeShapeTest : AbstractBytecodeTextTest() {
createAndroidAPIEnvironment(path)
loadFileByFullPath(fileName)
val expected = readExpectedOccurrences(fileName)
countAndCompareActualOccurrences(expected)
val actual = generateToText()
checkGeneratedTextAgainstExpectedOccurrences(actual, expected)
}
}
}