mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-27 00:45:23 -04:00
Fix test
This commit is contained in:
parent
3033a19b46
commit
d9372383bf
1 changed files with 7 additions and 1 deletions
|
@ -24,6 +24,8 @@ import io.bitsquare.gui.ViewLoader;
|
||||||
import com.google.inject.Guice;
|
import com.google.inject.Guice;
|
||||||
import com.google.inject.Injector;
|
import com.google.inject.Injector;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
import javafx.application.Application;
|
import javafx.application.Application;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
|
@ -32,6 +34,8 @@ import org.junit.Before;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import net.sourceforge.argparse4j.inf.Namespace;
|
||||||
|
|
||||||
public class ViewLoaderTests {
|
public class ViewLoaderTests {
|
||||||
|
|
||||||
public static class TestApp extends Application {
|
public static class TestApp extends Application {
|
||||||
|
@ -59,7 +63,9 @@ public class ViewLoaderTests {
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setUp() {
|
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);
|
ViewLoader.setInjector(injector);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue