1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00

Test parent pom.

This commit is contained in:
Cedric Beust 2016-03-25 11:01:25 +04:00
parent bf66a44052
commit 16f4452dde

View file

@ -146,16 +146,16 @@ class DownloadTest @Inject constructor(
} }
} }
@Test(enabled = false, description = "Not implemented yet") @Test
fun parentPomTest() { fun parentPomTest() {
// Resolve com.squareup.retrofit2:converter-moshi:2.0.0 // Resolve com.squareup.retrofit2:converter-moshi:2.0.0
// This id has a parent pom which defines moshi version to be 1.1.0. Make sure that this // This id has a parent pom which defines moshi version to be 1.1.0. Make sure that this
// version is being fetched instead of moshi:1.2.0-SNAPSHOT (which gets discarded anyway // version is being fetched instead of moshi:1.2.0-SNAPSHOT (which gets discarded anyway
// since snapshots are not allowed to be returned when looking up a versionless id) // since snapshots are not allowed to be returned when looking up a versionless id)
val host = HostConfig("http://repository.jetbrains.com/all/") val host = HostConfig("http://repository.jetbrains.com/all/")
val id = "com.squareup.moshi:moshi:" val id = "com.squareup.moshi:moshi:(0,]"
val dr = aether.resolve(id) val dr = aether.resolve(id)
println("DEP: " + dr) Assert.assertEquals(dr.dependency.version, "1.1.0")
} }
@Test @Test