Added oparent to sdc main
[sdc.git] / common-be / src / test / java / org / openecomp / sdc / be / datatypes / category / GroupingDataDefinitionTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T 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 package org.openecomp.sdc.be.datatypes.category;
22
23 import org.junit.Assert;
24 import org.junit.Test;
25
26
27 public class GroupingDataDefinitionTest {
28
29         private GroupingDataDefinition createTestSubject() {
30                 return new GroupingDataDefinition();
31         }
32
33         @Test
34         public void testCopyConstructor() throws Exception {
35                 GroupingDataDefinition testSubject;
36
37                 // default test
38                 testSubject = createTestSubject();
39                 GroupingDataDefinition groupingDataDefinition = new GroupingDataDefinition(testSubject);
40         }
41         
42         @Test
43         public void testGetName() throws Exception {
44                 GroupingDataDefinition testSubject;
45                 String result;
46
47                 // default test
48                 testSubject = createTestSubject();
49                 result = testSubject.getName();
50         }
51
52         
53         @Test
54         public void testSetName() throws Exception {
55                 GroupingDataDefinition testSubject;
56                 String name = "";
57
58                 // default test
59                 testSubject = createTestSubject();
60                 testSubject.setName(name);
61         }
62
63         
64         @Test
65         public void testGetNormalizedName() throws Exception {
66                 GroupingDataDefinition testSubject;
67                 String result;
68
69                 // default test
70                 testSubject = createTestSubject();
71                 result = testSubject.getNormalizedName();
72         }
73
74         
75         @Test
76         public void testSetNormalizedName() throws Exception {
77                 GroupingDataDefinition testSubject;
78                 String normalizedName = "";
79
80                 // default test
81                 testSubject = createTestSubject();
82                 testSubject.setNormalizedName(normalizedName);
83         }
84
85         
86         @Test
87         public void testGetUniqueId() throws Exception {
88                 GroupingDataDefinition testSubject;
89                 String result;
90
91                 // default test
92                 testSubject = createTestSubject();
93                 result = testSubject.getUniqueId();
94         }
95
96         
97         @Test
98         public void testSetUniqueId() throws Exception {
99                 GroupingDataDefinition testSubject;
100                 String uniqueId = "";
101
102                 // default test
103                 testSubject = createTestSubject();
104                 testSubject.setUniqueId(uniqueId);
105         }
106
107         
108         @Test
109         public void testHashCode() throws Exception {
110                 GroupingDataDefinition testSubject;
111                 int result;
112
113                 // default test
114                 testSubject = createTestSubject();
115                 result = testSubject.hashCode();
116         }
117
118         
119         @Test
120         public void testEquals() throws Exception {
121                 GroupingDataDefinition testSubject;
122                 Object obj = null;
123                 boolean result;
124
125                 // test 1
126                 testSubject = createTestSubject();
127                 obj = null;
128                 result = testSubject.equals(obj);
129                 Assert.assertEquals(false, result);
130                 result = testSubject.equals(testSubject);
131                 Assert.assertEquals(true, result);
132                 result = testSubject.equals(new GroupingDataDefinition(testSubject));
133                 Assert.assertEquals(true, result);
134         }
135
136         
137         @Test
138         public void testToString() throws Exception {
139                 GroupingDataDefinition testSubject;
140                 String result;
141
142                 // default test
143                 testSubject = createTestSubject();
144                 result = testSubject.toString();
145         }
146 }