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

Evaluate variables in version tags.

This commit is contained in:
Cedric Beust 2016-03-22 02:34:21 +04:00
parent 901dbd1b95
commit a3c9792c12
3 changed files with 44 additions and 26 deletions

View file

@ -22,7 +22,7 @@ class DownloadTest @Inject constructor(
val depFactory: DepFactory,
val localRepo: LocalRepo,
val mdFactory: MavenDependency.IFactory,
val finderFactory: RepoFinderCallable.IFactory,
val dependencyManager: DependencyManager,
val executors: KobaltExecutors) : KobaltTest() {
private var executor: ExecutorService by Delegates.notNull()
@ -165,5 +165,13 @@ class DownloadTest @Inject constructor(
// Assert.assertEquals(results.size, 1)
// Assert.assertEquals(results[0].version, "1.1.0")
}
@Test
fun variablesShouldBeExpanded() {
val dep = dependencyManager.createMaven("org.mapdb:mapdb:3.0.0-M3")
val closure = dependencyManager.transitiveClosure(listOf(dep))
val d = closure.filter { it.id.contains("eclipse-collections-api")}
Assert.assertEquals(d.size, 1)
}
}