blob: 201c25e04e7c37578382da50ddab4b1a954b10a1 [file] [log] [blame]
/**
******************************************************************************
* Copyright © 2018 PTA GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
*
* http://www.eclipse.org/legal/epl-v10.html
*
******************************************************************************
*/
package org.eclipse.openk.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(), "openK");
assertEquals( bc.getMicsHealthStateExtraPath(), "healthcheck?pretty=true" );
BackendConfig.setConfigFileName("backendConfigProduction.json");
assertEquals( BackendConfig.getConfigFileName(), "backendConfigProduction.json");
assertEquals( false, BackendConfig.getInstance().isMicsCentralIsHttps());
}
}