1 /*******************************************************************************
2 * ============LICENSE_START======================================================= ONAP : ccsdk
3 * feature sdnr wt ================================================================================
4 * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
5 * ================================================================================ Licensed under
6 * the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
7 * with the License. You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software distributed under the License
12 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13 * or implied. See the License for the specific language governing permissions and limitations under
14 * the License. ============LICENSE_END=========================================================
15 ******************************************************************************/
16 package org.onap.ccsdk.features.sdnr.wt.devicemanager.test;
20 import org.junit.Test;
21 import org.onap.ccsdk.features.sdnr.wt.common.configuration.ConfigurationFileRepresentation;
22 import org.onap.ccsdk.features.sdnr.wt.common.configuration.exception.ConfigurationException;
23 import org.onap.ccsdk.features.sdnr.wt.database.config.EsConfig;
24 import org.onap.ccsdk.features.sdnr.wt.devicemanager.test.util.ResourceFileLoader;
26 public class TestConfiguration {
28 private static final String CONFIGURATIONTESTFILE = "test.properties"; // for
31 public void test1() throws ConfigurationException {
33 System.out.println("Configuration file " + CONFIGURATIONTESTFILE);
35 File testConfigurationFile = ResourceFileLoader.getFile(this, CONFIGURATIONTESTFILE);
36 System.out.println("Located at: "+testConfigurationFile.getAbsolutePath());
38 ConfigurationFileRepresentation configuration = new ConfigurationFileRepresentation(testConfigurationFile);
40 System.out.println("Configuration: " + configuration.getSection(EsConfig.SECTION_MARKER_ES));
41 EsConfig esConfig1 = new EsConfig(configuration);
43 System.out.println("ES config getArchiveLifetimeSeconds: "+esConfig1.getArchiveLifetimeSeconds());
46 // fail("Not yet implemented");