BootstrapConfig { public ConfigSource getConfigSource() { return configSource; } BootstrapConfig(SQLDBConfig sqlConfig, ConfigSource configSource, String osgiFrameworkStorage, String motechDir, String queueUrl);  BootstrapConfig(SQLDBConfig sqlConfig, ConfigSource configSource, String osgiFrameworkStorage, String motechDir, String queueUrl, Properties activeMqProperties); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); ConfigSource getConfigSource(); SQLDBConfig getSqlConfig(); String getOsgiFrameworkStorage(); String getMotechDir(); String getQueueUrl(); Properties getActiveMqProperties(); final void setQueueUrl(String queueUrl); static final String SQL_URL; static final String SQL_USER; static final String SQL_PASSWORD; static final String CONFIG_SOURCE; static final String SQL_DRIVER; static final String OSGI_FRAMEWORK_STORAGE; static final String MOTECH_DIR; static final String QUEUE_URL; static final String DEFAULT_OSGI_FRAMEWORK_STORAGE; static final String DEFAULT_MOTECH_DIR; }
@Test public void shouldUseDefaultIfConfigSourceIsNull() { BootstrapConfig config = new BootstrapConfig(new SQLDBConfig(sqlUrl, sqlDriver, null, null), null, null, null, queueUrl); assertThat(config.getConfigSource(), IsEqual.equalTo(ConfigSource.UI)); }