blob: 1aba12a9794e2ef79ce03f4f58139d582ecc6f96 [file] [log] [blame]
package de.pta.mics.home.common;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class BackendConfigTest {
@Test
public void testConfig() {
BackendConfig bc = BackendConfig.getInstance();
assertEquals( bc.getMicsCentralURL(), "http://localhost:9010/mics/central" );
assertEquals( bc.getMicsDistributionCluster(), "elogbook.openK");
assertEquals( bc.getMicsHealthStateExtraPath(), "healthcheck?pretty=true" );
BackendConfig.setConfigFileName("backendConfigProduction.json");
assertEquals( BackendConfig.getConfigFileName(), "backendConfigProduction.json");
assertEquals( false, BackendConfig.getInstance().isMicsCentralIsHttps());
}
}