Commits

Sam Adams  committed d0324f9

Refactoring configuration / property loading

  • Participants
  • Parent commits 71b4f3b

Comments (0)

Files changed (1)

File src/test/java/uk/ac/cam/ch/wwmm/quixote/client/QuixoteClientCLIIntegrationTest.java

 import net.chempound.ChempoundConfigurationModule;
 import net.chempound.DefaultChempoundModule;
 import net.chempound.config.ChempoundConfiguration;
-import net.chempound.config.DefaultChempoundConfiguration;
+import net.chempound.config.DefaultPropertySource;
+import net.chempound.config.StubChempoundConfiguration;
 import net.chempound.datastore.TripleStore;
 import net.chempound.rdf.ORE;
 import net.chempound.webapp.DefaultChempoundWebModule;
         final URI baseUri = URI.create("http://localhost:12080/");
         workspace = new File("target", UUID.randomUUID().toString());
 
-        final ChempoundConfiguration configuration = new DefaultChempoundConfiguration(baseUri, workspace);
+        final ChempoundConfiguration configuration = new StubChempoundConfiguration(baseUri, workspace);
         final Injector injector = Guice.createInjector(Stage.DEVELOPMENT,
                 new DefaultChempoundModule(),
                 new DefaultChempoundWebModule(),
-                new ChempoundConfigurationModule(configuration),
+                new ChempoundConfigurationModule(configuration, new DefaultPropertySource()),
                 new QuixotePluginsModule()
         );