Drop import tests with module per source set disabled

This commit is contained in:
Andrey Uskov
2020-05-25 23:09:32 +03:00
parent 104eeb9ffd
commit 9c2918bdd6
@@ -546,35 +546,6 @@ class GradleFacetImportTest : GradleImportingTestCase() {
)
}
@Test
@TargetVersions("4.9")
fun testCommonImportByPlatformPlugin_SingleModule() {
configureByFiles()
importProjectUsingSingeModulePerGradleProject()
with(facetSettings("project")) {
Assert.assertEquals("1.1", languageLevel!!.versionString)
Assert.assertEquals("1.1", apiLevel!!.versionString)
Assert.assertTrue(targetPlatform.isCommon())
}
val rootManager = ModuleRootManager.getInstance(getModule("project"))
val stdlib = rootManager.orderEntries.filterIsInstance<LibraryOrderEntry>().mapTo(HashSet()) { it.library }.single()
assertEquals(CommonLibraryKind, (stdlib as LibraryEx).kind)
Assert.assertEquals(
listOf(
"file:///src/main/java" to SourceKotlinRootType,
"file:///src/main/kotlin" to SourceKotlinRootType,
"file:///src/test/java" to TestSourceKotlinRootType,
"file:///src/test/kotlin" to TestSourceKotlinRootType,
"file:///src/main/resources" to ResourceKotlinRootType,
"file:///src/test/resources" to TestResourceKotlinRootType
),
getSourceRootInfos("project")
)
}
@Test
fun testJvmImportByKotlinPlugin() {
configureByFiles()