This commit is contained in:
Alexandre Archambault 2015-06-21 18:04:55 +01:00
parent 7d3a9d215d
commit 02d28ef9bb
1 changed files with 6 additions and 20 deletions

View File

@ -16,22 +16,15 @@ object CentralTests extends TestSuite {
'logback{
async {
val dep = Dependency(Module("ch.qos.logback", "logback-classic"), "1.1.3")
val res0 =
await(resolve(Set(dep), fetchFrom(repositories))
.runF)
val res = res0.copy(
projectsCache = Map.empty, errors = Map.empty // No validating these here
)
val res = await(resolve(Set(dep), fetchFrom(repositories)).runF)
.copy(projectsCache = Map.empty, errors = Map.empty) // No validating these here
val expected = Resolution(
rootDependencies = Set(dep.withCompileScope),
dependencies = Set(
dep.withCompileScope,
Dependency(Module("ch.qos.logback", "logback-core"), "1.1.3").withCompileScope,
Dependency(Module("org.slf4j", "slf4j-api"), "1.7.7").withCompileScope
)
)
Dependency(Module("org.slf4j", "slf4j-api"), "1.7.7").withCompileScope))
assert(res == expected)
}
@ -39,22 +32,15 @@ object CentralTests extends TestSuite {
'asm{
async {
val dep = Dependency(Module("org.ow2.asm", "asm-commons"), "5.0.2")
val res0 =
await(resolve(Set(dep), fetchFrom(repositories))
.runF)
val res = res0.copy(
projectsCache = Map.empty, errors = Map.empty // No validating these here
)
val res = await(resolve(Set(dep), fetchFrom(repositories)).runF)
.copy(projectsCache = Map.empty, errors = Map.empty) // No validating these here
val expected = Resolution(
rootDependencies = Set(dep.withCompileScope),
dependencies = Set(
dep.withCompileScope,
Dependency(Module("org.ow2.asm", "asm-tree"), "5.0.2").withCompileScope,
Dependency(Module("org.ow2.asm", "asm"), "5.0.2").withCompileScope
)
)
Dependency(Module("org.ow2.asm", "asm"), "5.0.2").withCompileScope))
assert(res == expected)
}