mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Enable source downloading.
This commit is contained in:
parent
a29d837f42
commit
01df4b8d94
14 changed files with 56 additions and 27 deletions
|
@ -41,7 +41,7 @@ class DownloadTest @Inject constructor(
|
|||
|
||||
if (success) {
|
||||
arrayListOf("$groupId:$artifactId:$version", "$groupId:$artifactId:$previousVersion").forEach {
|
||||
val dep = depFactory.create(it, executor)
|
||||
val dep = depFactory.create(it, executor = executor)
|
||||
val future = dep.jarFile
|
||||
Assert.assertFalse(future is CompletedFuture)
|
||||
val file = future.get()
|
||||
|
@ -62,7 +62,7 @@ class DownloadTest @Inject constructor(
|
|||
public fun shouldDownloadNoVersion() {
|
||||
val success = deleteDir()
|
||||
if (success) {
|
||||
val dep = depFactory.create(idNoVersion, executor)
|
||||
val dep = depFactory.create(idNoVersion, executor = executor)
|
||||
|
||||
val future = dep.jarFile
|
||||
val file = future.get()
|
||||
|
@ -80,7 +80,7 @@ class DownloadTest @Inject constructor(
|
|||
val range = "[2.5,)"
|
||||
val expected = "3.0-alpha-1"
|
||||
|
||||
val dep = depFactory.create("javax.servlet:servlet-api:$range", executor)
|
||||
val dep = depFactory.create("javax.servlet:servlet-api:$range", executor = executor)
|
||||
val future = dep.jarFile
|
||||
val file = future.get()
|
||||
Assert.assertFalse(future is CompletedFuture)
|
||||
|
@ -91,7 +91,7 @@ class DownloadTest @Inject constructor(
|
|||
@Test
|
||||
public fun shouldFindLocalJar() {
|
||||
MavenDependency.create("$idNoVersion$version")
|
||||
val dep = depFactory.create("$idNoVersion$version", executor)
|
||||
val dep = depFactory.create("$idNoVersion$version", executor = executor)
|
||||
val future = dep.jarFile
|
||||
// Assert.assertTrue(future is CompletedFuture)
|
||||
val file = future.get()
|
||||
|
|
|
@ -24,8 +24,8 @@ class RemoteRepoTest @Inject constructor(val repoFinder: RepoFinder,
|
|||
|
||||
@Test(enabled = false)
|
||||
fun metadataForSnapshots() {
|
||||
val jar = MavenDependency.create("org.apache.maven.wagon:wagon-provider-test:2.10-SNAPSHOT", executor)
|
||||
.jarFile
|
||||
val jar = MavenDependency.create("org.apache.maven.wagon:wagon-provider-test:2.10-SNAPSHOT",
|
||||
executor = executor).jarFile
|
||||
Assert.assertTrue(jar.get().exists())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue