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:
Chris Beams 2014-11-09 23:42:57 +01:00
parent 162fc3da0e
commit b5f95e00a3
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73
4 changed files with 17 additions and 13 deletions

View file

@ -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);
}