60add4be7b8ee91d57861d8f4fbb5a37dedc16e3
[ccsdk/features.git] /
1 /*
2  * ============LICENSE_START========================================================================
3  * ONAP : ccsdk feature sdnr wt
4  * =================================================================================================
5  * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
6  * =================================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8  * in compliance with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software distributed under the License
13  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14  * or implied. See the License for the specific language governing permissions and limitations under
15  * the License.
16  * ============LICENSE_END==========================================================================
17  */
18 package org.onap.ccsdk.features.sdnr.wt.helpserver.test;
19
20 import static org.junit.Assert.fail;
21 import java.net.URISyntaxException;
22 import java.net.URL;
23 import java.nio.file.Path;
24 import java.nio.file.Paths;
25 import org.junit.Test;
26 import org.onap.ccsdk.features.sdnr.wt.helpserver.data.HelpInfrastructureObject;
27
28 public class TestHelpInfrastructure {
29
30     @Test
31     public void test() {
32
33         final ClassLoader loader = this.getClass().getClassLoader();
34         URL url = loader.getResource("help/meta.json");
35         Path path;
36         try {
37             path = Paths.get(url.toURI());
38             HelpInfrastructureObject helpInfrastuctureObject = new HelpInfrastructureObject(path);
39             System.out.println("Help: " + helpInfrastuctureObject);
40         } catch (URISyntaxException e) {
41             fail(e.getMessage());
42         }
43
44
45     }
46
47 }