mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Fix tests.
This commit is contained in:
parent
2dc45c9d33
commit
1d259808af
1 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
package com.beust.kobalt.maven
|
package com.beust.kobalt.maven
|
||||||
|
|
||||||
import com.beust.kobalt.KobaltTest
|
import com.beust.kobalt.KobaltTest
|
||||||
|
import com.beust.kobalt.maven.dependency.MavenDependency
|
||||||
import com.beust.kobalt.misc.KobaltExecutors
|
import com.beust.kobalt.misc.KobaltExecutors
|
||||||
import com.beust.kobalt.misc.warn
|
import com.beust.kobalt.misc.warn
|
||||||
import org.testng.Assert
|
import org.testng.Assert
|
||||||
|
@ -71,8 +72,9 @@ public class DownloadTest @Inject constructor(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dependsOnMethods = arrayOf("shouldDownloadWithVersion"))
|
@Test
|
||||||
public fun shouldFindLocalJar() {
|
public fun shouldFindLocalJar() {
|
||||||
|
MavenDependency.create("$idNoVersion$version")
|
||||||
val dep = depFactory.create("$idNoVersion$version", executor)
|
val dep = depFactory.create("$idNoVersion$version", executor)
|
||||||
val future = dep.jarFile
|
val future = dep.jarFile
|
||||||
// Assert.assertTrue(future is CompletedFuture)
|
// Assert.assertTrue(future is CompletedFuture)
|
||||||
|
@ -80,8 +82,9 @@ public class DownloadTest @Inject constructor(
|
||||||
Assert.assertTrue(file.exists())
|
Assert.assertTrue(file.exists())
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dependsOnMethods = arrayOf("shouldDownloadWithVersion"))
|
@Test
|
||||||
public fun shouldFindLocalJarNoVersion() {
|
public fun shouldFindLocalJarNoVersion() {
|
||||||
|
MavenDependency.create("$idNoVersion$version")
|
||||||
val dep = depFactory.create(idNoVersion, executor, localFirst = false)
|
val dep = depFactory.create(idNoVersion, executor, localFirst = false)
|
||||||
val future = dep.jarFile
|
val future = dep.jarFile
|
||||||
val file = future.get()
|
val file = future.get()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue