mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-25 16:05:28 -04:00
Supply appName via properties as well
Like all other command-line options and/or configuration file properties, appName is now parsed for early in #main and its value (default or custom) is then used to populate the Properties object made available to all Guice modules. See the previous commit for additional details.
This commit is contained in:
parent
162fc3da0e
commit
b5f95e00a3
4 changed files with 17 additions and 13 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
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;
|
||||
|
@ -64,7 +65,9 @@ public class ViewLoaderTests {
|
|||
|
||||
@Before
|
||||
public void setUp() {
|
||||
Injector injector = Guice.createInjector(new MainModule(new Properties(), "testApp", TestApp.primaryStage));
|
||||
Properties properties = new Properties();
|
||||
properties.setProperty(ArgumentParser.NAME_FLAG, "testApp");
|
||||
Injector injector = Guice.createInjector(new MainModule(properties, TestApp.primaryStage));
|
||||
ViewLoader.setInjector(injector);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue