mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-26 08:25:23 -04:00
Rename NAME_FLAG => APP_NAME_KEY and move to AppModule
This commit is contained in:
parent
935785e611
commit
e8986aa7a2
4 changed files with 11 additions and 10 deletions
|
@ -17,7 +17,6 @@
|
|||
|
||||
package io.bitsquare.app.gui;
|
||||
|
||||
import io.bitsquare.app.ArgumentParser;
|
||||
import io.bitsquare.gui.FatalException;
|
||||
import io.bitsquare.gui.Navigation;
|
||||
import io.bitsquare.gui.ViewLoader;
|
||||
|
@ -35,6 +34,8 @@ import org.junit.Before;
|
|||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import static io.bitsquare.app.AppModule.APP_NAME_KEY;
|
||||
|
||||
public class ViewLoaderTests {
|
||||
|
||||
public static class TestApp extends Application {
|
||||
|
@ -63,7 +64,7 @@ public class ViewLoaderTests {
|
|||
@Before
|
||||
public void setUp() {
|
||||
Properties properties = new Properties();
|
||||
properties.setProperty(ArgumentParser.NAME_FLAG, "testApp");
|
||||
properties.setProperty(APP_NAME_KEY, "testApp");
|
||||
Injector injector = Guice.createInjector(new MainModule(properties, TestApp.primaryStage));
|
||||
ViewLoader.setInjector(injector);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue