Added oparent to sdc main
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / MigrationTaskEntryTest.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.resources.data;
22
23 import java.util.Date;
24
25 import org.junit.Test;
26
27
28 public class MigrationTaskEntryTest {
29
30         private MigrationTaskEntry createTestSubject() {
31                 return new MigrationTaskEntry();
32         }
33
34         
35         @Test
36         public void testSetMajorVersion() throws Exception {
37                 MigrationTaskEntry testSubject;
38                 Long majorVersion = null;
39
40                 // default test
41                 testSubject = createTestSubject();
42                 testSubject.setMajorVersion(majorVersion);
43         }
44
45         
46         @Test
47         public void testSetMinorVersion() throws Exception {
48                 MigrationTaskEntry testSubject;
49                 Long minorVersion = null;
50
51                 // default test
52                 testSubject = createTestSubject();
53                 testSubject.setMinorVersion(minorVersion);
54         }
55
56         
57         @Test
58         public void testSetTimestamp() throws Exception {
59                 MigrationTaskEntry testSubject;
60                 Date timestamp = null;
61
62                 // default test
63                 testSubject = createTestSubject();
64                 testSubject.setTimestamp(timestamp);
65         }
66
67         
68         @Test
69         public void testSetTaskName() throws Exception {
70                 MigrationTaskEntry testSubject;
71                 String taskName = "";
72
73                 // default test
74                 testSubject = createTestSubject();
75                 testSubject.setTaskName(taskName);
76         }
77
78         
79         @Test
80         public void testSetTaskStatus() throws Exception {
81                 MigrationTaskEntry testSubject;
82                 String taskStatus = "";
83
84                 // default test
85                 testSubject = createTestSubject();
86                 testSubject.setTaskStatus(taskStatus);
87         }
88
89         
90         @Test
91         public void testSetMessage() throws Exception {
92                 MigrationTaskEntry testSubject;
93                 String message = "";
94
95                 // default test
96                 testSubject = createTestSubject();
97                 testSubject.setMessage(message);
98         }
99
100         
101         @Test
102         public void testSetExecutionTime() throws Exception {
103                 MigrationTaskEntry testSubject;
104                 double executionTime = 0.0;
105
106                 // default test
107                 testSubject = createTestSubject();
108                 testSubject.setExecutionTime(executionTime);
109         }
110
111         
112         @Test
113         public void testGetMajorVersion() throws Exception {
114                 MigrationTaskEntry testSubject;
115                 Long result;
116
117                 // default test
118                 testSubject = createTestSubject();
119                 result = testSubject.getMajorVersion();
120         }
121
122         
123         @Test
124         public void testGetMinorVersion() throws Exception {
125                 MigrationTaskEntry testSubject;
126                 Long result;
127
128                 // default test
129                 testSubject = createTestSubject();
130                 result = testSubject.getMinorVersion();
131         }
132
133         
134         @Test
135         public void testGetTimestamp() throws Exception {
136                 MigrationTaskEntry testSubject;
137                 Date result;
138
139                 // default test
140                 testSubject = createTestSubject();
141                 result = testSubject.getTimestamp();
142         }
143
144         
145         @Test
146         public void testGetTaskName() throws Exception {
147                 MigrationTaskEntry testSubject;
148                 String result;
149
150                 // default test
151                 testSubject = createTestSubject();
152                 result = testSubject.getTaskName();
153         }
154
155         
156         @Test
157         public void testGetTaskStatus() throws Exception {
158                 MigrationTaskEntry testSubject;
159                 String result;
160
161                 // default test
162                 testSubject = createTestSubject();
163                 result = testSubject.getTaskStatus();
164         }
165
166         
167         @Test
168         public void testGetMessage() throws Exception {
169                 MigrationTaskEntry testSubject;
170                 String result;
171
172                 // default test
173                 testSubject = createTestSubject();
174                 result = testSubject.getMessage();
175         }
176
177         
178         @Test
179         public void testGetExecutionTime() throws Exception {
180                 MigrationTaskEntry testSubject;
181                 double result;
182
183                 // default test
184                 testSubject = createTestSubject();
185                 result = testSubject.getExecutionTime();
186         }
187
188         
189         @Test
190         public void testGetDescription() throws Exception {
191                 MigrationTaskEntry testSubject;
192                 String result;
193
194                 // default test
195                 testSubject = createTestSubject();
196                 result = testSubject.getDescription();
197         }
198
199         
200         @Test
201         public void testSetDescription() throws Exception {
202                 MigrationTaskEntry testSubject;
203                 String description = "";
204
205                 // default test
206                 testSubject = createTestSubject();
207                 testSubject.setDescription(description);
208         }
209 }