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