mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 23:36:00 -04:00
Fix test
This commit is contained in:
parent
3033a19b46
commit
d9372383bf
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user