0a85f7ea49b9f34397206628618c4fc8a07409fa
[vfc/nfvo/driver/sfc.git] / zte / sfc-driver / sfc-driver / src / test / java / org / onap / sfc / entity / portpair / ServiceFunctionParameterTest.java
1 package org.onap.sfc.entity.portpair;
2
3 import org.junit.Before;
4 import org.junit.Test;
5
6 /**
7  * Copyright 2018 ZTE Corporation.
8  * <p>
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * <p>
13  * http://www.apache.org/licenses/LICENSE-2.0
14  * <p>
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 public class ServiceFunctionParameterTest {
22     ServiceFunctionParameter entity1;
23     ServiceFunctionParameter entity2;
24
25     @Before
26     public void setUp() throws Exception {
27         entity1 = new ServiceFunctionParameter();
28         entity1.setGetServiceFunctionParamterValue("");
29         entity1.setServiceFunctionParamter("");
30
31         entity2 = new ServiceFunctionParameter();
32         entity2.setGetServiceFunctionParamterValue("");
33         entity2.setServiceFunctionParamter("");
34     }
35
36     @Test
37     public void test() throws Exception {
38         assert entity2.getGetServiceFunctionParamterValue().equals(entity1.getGetServiceFunctionParamterValue());
39         assert entity2.getServiceFunctionParamter().equals(entity1.getServiceFunctionParamter());
40     }
41
42     @Test
43     public void equals() throws Exception {
44         assert !entity2.equals(entity1);
45         assert entity2.equals(entity2);
46     }
47
48     @Test
49     public void toStringTest() throws Exception {
50         assert entity2.toString() != null;
51     }
52
53 }