This commit is contained in:
Manfred Karrer 2014-11-08 16:38:09 +01:00
parent 3033a19b46
commit d9372383bf

View File

@ -24,6 +24,8 @@ import io.bitsquare.gui.ViewLoader;
import com.google.inject.Guice;
import com.google.inject.Injector;
import java.util.HashMap;
import javafx.application.Application;
import javafx.stage.Stage;
@ -32,6 +34,8 @@ import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import net.sourceforge.argparse4j.inf.Namespace;
public class ViewLoaderTests {
public static class TestApp extends Application {
@ -59,7 +63,9 @@ public class ViewLoaderTests {
@Before
public void setUp() {
Injector injector = Guice.createInjector(new MainModule("testApp", null, TestApp.primaryStage));
Injector injector = Guice.createInjector(new MainModule("testApp",
new Namespace(new HashMap<>()),
TestApp.primaryStage));
ViewLoader.setInjector(injector);
}