6258e31c2079e3d8561cca01162aecb4e6093aa8
[ccsdk/features.git] /
1 /*
2  * ============LICENSE_START=======================================================
3  * ONAP : ccsdk features
4  * ================================================================================
5  * Copyright (C) 2021 Samsung Electronics Intellectual Property. All rights reserved.
6  * =================================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *     http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  *
20  */
21
22 package org.onap.ccsdk.features.sdnr.wt.dataprovider.setup;
23
24 import static org.junit.Assert.assertEquals;
25 import static org.junit.Assert.assertTrue;
26 import java.util.Set;
27 import org.junit.Test;
28 import org.onap.ccsdk.features.sdnr.wt.dataprovider.setup.data.ComponentName;
29 import org.onap.ccsdk.features.sdnr.wt.dataprovider.setup.jakarta.JakartaReleaseInformation;
30
31 public class TestJakartaReleaseInformation {
32
33     @Test
34     public void testReleaseInformation() {
35         JakartaReleaseInformation ri = new JakartaReleaseInformation();
36         Set<ComponentName> components = ri.getComponents();
37         assertTrue(components.contains(ComponentName.USERDATA));
38         assertTrue(components.contains(ComponentName.REQUIRED_NETWORKELEMENT));
39         assertTrue(components.contains(ComponentName.CMLOG));
40         assertEquals("userdata", ri.getAlias(ComponentName.USERDATA));
41         assertEquals("networkelement-connection", ri.getAlias(ComponentName.REQUIRED_NETWORKELEMENT));
42         assertEquals("cmlog", ri.getAlias(ComponentName.CMLOG));
43         assertEquals("cmlog-v7", ri.getIndex(ComponentName.CMLOG));
44     }
45
46 }