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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
22 package org.onap.ccsdk.features.sdnr.wt.dataprovider.setup;
24 import static org.junit.Assert.assertEquals;
25 import static org.junit.Assert.assertTrue;
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;
31 public class TestJakartaReleaseInformation {
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));