mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
--dryRun.
This commit is contained in:
parent
fc1779f8fa
commit
33684d6d21
13 changed files with 48 additions and 33 deletions
|
@ -1,13 +1,14 @@
|
|||
package com.beust.kobalt
|
||||
|
||||
import com.beust.kobalt.maven.LocalRepo
|
||||
import com.beust.kobalt.misc.MainModule
|
||||
import com.beust.kobalt.plugin.java.SystemProperties
|
||||
import com.google.inject.Scopes
|
||||
import java.io.File
|
||||
|
||||
class TestLocalRepo: LocalRepo(localRepo = SystemProperties.homeDir + File.separatorChar + ".kobalt-test")
|
||||
|
||||
public class TestModule : com.beust.kobalt.misc.MainModule() {
|
||||
public class TestModule(args: Args) : MainModule(args) {
|
||||
override fun configureTest() {
|
||||
bind(LocalRepo::class.java).to(TestLocalRepo::class.java).`in`(Scopes.SINGLETON)
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.beust.kobalt.maven
|
||||
|
||||
import com.beust.kobalt.Args
|
||||
import com.beust.kobalt.TestModule
|
||||
import com.beust.kobalt.misc.DependencyExecutor
|
||||
import com.beust.kobalt.misc.MainModule
|
||||
|
@ -11,9 +12,10 @@ import javax.inject.Inject
|
|||
|
||||
@org.testng.annotations.Guice(modules = arrayOf(TestModule::class))
|
||||
public class RemoteRepoTest @Inject constructor(val repoFinder: RepoFinder,
|
||||
@DependencyExecutor val executor: ExecutorService){
|
||||
@DependencyExecutor val executor: ExecutorService,
|
||||
val args: Args){
|
||||
|
||||
val INJECTOR = Guice.createInjector(MainModule())
|
||||
val INJECTOR = Guice.createInjector(MainModule(args))
|
||||
|
||||
@Test
|
||||
public fun mavenMetadata() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue