mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Fix tests.
This commit is contained in:
parent
5ea971adda
commit
12c98ed56f
1 changed files with 7 additions and 1 deletions
|
@ -1,13 +1,19 @@
|
||||||
package com.beust.kobalt.api
|
package com.beust.kobalt.api
|
||||||
|
|
||||||
|
import com.beust.kobalt.Args
|
||||||
import com.beust.kobalt.Plugins
|
import com.beust.kobalt.Plugins
|
||||||
|
import com.beust.kobalt.misc.MainModule
|
||||||
|
import com.google.inject.Guice
|
||||||
import com.google.inject.Injector
|
import com.google.inject.Injector
|
||||||
import java.io.InputStream
|
import java.io.InputStream
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
public class Kobalt {
|
public class Kobalt {
|
||||||
companion object {
|
companion object {
|
||||||
lateinit var INJECTOR : Injector
|
// This injector will eventually be replaced with a different injector initialized with the
|
||||||
|
// correct arguments (or with a TestModule) but it's necessary to give it a default value
|
||||||
|
// here so the kobalt-plugin.xml file can be read since this is done very early
|
||||||
|
var INJECTOR : Injector = Guice.createInjector(MainModule(Args()))
|
||||||
|
|
||||||
var context: KobaltContext? = null
|
var context: KobaltContext? = null
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue