596196faa53c4dd7da1df0dc81566b966b9187c8
[ccsdk/features.git] /
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
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
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;
17
18 import java.io.File;
19
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;
25
26 public class TestConfiguration {
27
28     private static final String CONFIGURATIONTESTFILE = "test.properties"; // for
29
30     @Test
31     public void test1() throws ConfigurationException {
32
33                 System.out.println("Configuration file " + CONFIGURATIONTESTFILE);
34
35                 File testConfigurationFile = ResourceFileLoader.getFile(this, CONFIGURATIONTESTFILE);
36                 System.out.println("Located at: "+testConfigurationFile.getAbsolutePath());
37
38                 ConfigurationFileRepresentation configuration = new ConfigurationFileRepresentation(testConfigurationFile);
39
40                 System.out.println("Configuration: " + configuration.getSection(EsConfig.SECTION_MARKER_ES));
41                 EsConfig esConfig1 = new EsConfig(configuration);
42
43                 System.out.println("ES config getArchiveLifetimeSeconds: "+esConfig1.getArchiveLifetimeSeconds());
44
45
46                 // fail("Not yet implemented");
47     }
48
49     @Test
50     public void test2() {
51
52     }
53
54
55 }