Catalog alignment
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / datamodel / ForwardingPathsTest.java
1 /*
2
3  * Copyright (c) 2018 Huawei Intellectual Property.
4
5  *
6
7  * Licensed under the Apache License, Version 2.0 (the "License");
8
9  * you may not use this file except in compliance with the License.
10
11  * You may obtain a copy of the License at
12
13  *
14
15  *     http://www.apache.org/licenses/LICENSE-2.0
16
17  *
18
19  * Unless required by applicable law or agreed to in writing, software
20
21  * distributed under the License is distributed on an "AS IS" BASIS,
22
23  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
25  * See the License for the specific language governing permissions and
26
27  * limitations under the License.
28
29  */
30
31 package org.openecomp.sdc.be.datamodel;
32
33 import org.junit.Test;
34
35 import java.util.Arrays;
36 import java.util.HashSet;
37 import java.util.Set;
38
39 import static org.assertj.core.api.Assertions.assertThat;
40
41 public class ForwardingPathsTest {
42
43         @Test
44         public void testForwardingPaths()  {
45                 ForwardingPaths testForwardingPaths = new ForwardingPaths();
46                 Set<String> path= new HashSet<>(Arrays.asList("test"));
47                 testForwardingPaths.setForwardingPathToDelete(path);
48                 Set<String> getPath = testForwardingPaths.getForwardingPathToDelete();
49                 assertThat(getPath).isEqualTo(path);
50         }
51
52 }