1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Fix TestModule.

This commit is contained in:
Cedric Beust 2015-10-06 22:16:38 -07:00
parent 45001a5104
commit bf539679f9

View file

@ -3,14 +3,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.Inject
import com.google.inject.Scopes
import java.io.File
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() {
bind(LocalRepo::class.java).to(TestLocalRepo::class.java).`in`(Scopes.SINGLETON)
}
}