From 2ef9db700cf87f11628bad5982439bbd6bec7854 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Wed, 23 Mar 2016 15:33:08 +0400 Subject: [PATCH] Test. --- src/test/kotlin/com/beust/kobalt/maven/DownloadTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/kotlin/com/beust/kobalt/maven/DownloadTest.kt b/src/test/kotlin/com/beust/kobalt/maven/DownloadTest.kt index ea2584fb..3a108eda 100644 --- a/src/test/kotlin/com/beust/kobalt/maven/DownloadTest.kt +++ b/src/test/kotlin/com/beust/kobalt/maven/DownloadTest.kt @@ -23,6 +23,7 @@ class DownloadTest @Inject constructor( val depFactory: DepFactory, val localRepo: LocalRepo, val mdFactory: MavenDependency.IFactory, + val pomFactory: Pom.IFactory, val dependencyManager: DependencyManager, val settings: KobaltSettings, val executors: KobaltExecutors) : KobaltTest() { @@ -180,7 +181,7 @@ class DownloadTest @Inject constructor( fun containerPom() { val repoResult = RepoFinderCallable("org.jetbrains.kotlin:kotlin-project:1.0.0", HostConfig("http://repo1.maven.org/maven2/"), - localRepo, dependencyManager, settings).call() + localRepo, pomFactory, dependencyManager).call() val rr = repoResult[0] Assert.assertTrue(rr.found) Assert.assertTrue(rr.localPath != null && rr.localPath!!.startsWith("junit/junit"))