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

Fix tests.

This commit is contained in:
Cedric Beust 2015-11-16 05:04:13 -08:00
parent 5ea971adda
commit 12c98ed56f

View file

@ -1,13 +1,19 @@
package com.beust.kobalt.api
import com.beust.kobalt.Args
import com.beust.kobalt.Plugins
import com.beust.kobalt.misc.MainModule
import com.google.inject.Guice
import com.google.inject.Injector
import java.io.InputStream
import java.util.*
public class Kobalt {
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