Fix deprecated Kotlin constructs and remove unused code in Android plugins

This commit is contained in:
Yan Zhulanow
2015-03-23 15:27:58 +03:00
parent dd083c64cc
commit 638ec2ae92
5 changed files with 3 additions and 36 deletions
@@ -40,14 +40,7 @@ public abstract class AbstractParserResultEqualityTest : KotlinAndroidTestCase()
assertEquals(cliResult, ideResult)
}
private fun getEnvironment(testPath: String): KotlinCoreEnvironment {
val configuration = JetTestUtils.compilerConfigurationForTests(ConfigurationKind.ALL, TestJdkKind.MOCK_JDK)
configuration.put<String>(AndroidConfigurationKeys.ANDROID_RES_PATH, testPath + "/layout")
configuration.put<String>(AndroidConfigurationKeys.ANDROID_MANIFEST, testPath + "/AndroidManifest.xml")
return KotlinCoreEnvironment.createForTests(getTestRootDisposable()!!, configuration, EnvironmentConfigFiles.JVM_CONFIG_FILES)
}
override fun getTestDataPath(): String? {
return KotlinAndroidTestCaseBase.getPluginTestDataPathBase() + "/parserResultEquality/" + getTestName(true) + "/"
}