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

Support for container poms.

Fix #132.
This commit is contained in:
Cedric Beust 2016-02-27 10:28:45 -08:00
parent 4bfe42545e
commit ecbb7ba732
2 changed files with 40 additions and 5 deletions

View file

@ -21,6 +21,7 @@ import kotlin.properties.Delegates
class DownloadTest @Inject constructor(
val depFactory: DepFactory,
val localRepo: LocalRepo,
val mdFactory: MavenDependency.IFactory,
val executors: KobaltExecutors) : KobaltTest() {
private var executor: ExecutorService by Delegates.notNull()
@ -140,5 +141,16 @@ class DownloadTest @Inject constructor(
val id = "http://jitpack.io/com/github/JakeWharton/RxBinding/rxbinding-kotlin/542cd7e8a4/rxbinding-kotlin-542cd7e8a4.aar"
Assert.assertTrue(Kurl(HostConfig(id)).exists)
}
@Test
fun containerPomTest() {
File(localRepo.toFullPath("nl/komponents/kovenant")).deleteRecursively()
val dep = mdFactory.create(MavenId.create("nl.komponents.kovenant:kovenant:3.0.0"), executor = executor,
downloadSources = false, downloadJavadocs = false)
dep.directDependencies().forEach {
Assert.assertTrue(it.jarFile.get().exists(), "Dependency was not downloaded: $it")
}
}
}