mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Fix TestModule.
This commit is contained in:
parent
45001a5104
commit
bf539679f9
1 changed files with 2 additions and 2 deletions
|
@ -3,14 +3,14 @@ package com.beust.kobalt
|
||||||
import com.beust.kobalt.maven.LocalRepo
|
import com.beust.kobalt.maven.LocalRepo
|
||||||
import com.beust.kobalt.misc.MainModule
|
import com.beust.kobalt.misc.MainModule
|
||||||
import com.beust.kobalt.plugin.java.SystemProperties
|
import com.beust.kobalt.plugin.java.SystemProperties
|
||||||
|
import com.google.inject.Inject
|
||||||
import com.google.inject.Scopes
|
import com.google.inject.Scopes
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
class TestLocalRepo: LocalRepo(localRepo = SystemProperties.homeDir + File.separatorChar + ".kobalt-test")
|
class TestLocalRepo: LocalRepo(localRepo = SystemProperties.homeDir + File.separatorChar + ".kobalt-test")
|
||||||
|
|
||||||
public class TestModule(args: Args) : MainModule(args) {
|
public class TestModule @Inject constructor(args: Args) : MainModule(args) {
|
||||||
override fun configureTest() {
|
override fun configureTest() {
|
||||||
bind(LocalRepo::class.java).to(TestLocalRepo::class.java).`in`(Scopes.SINGLETON)
|
bind(LocalRepo::class.java).to(TestLocalRepo::class.java).`in`(Scopes.SINGLETON)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue