Fix gvnfm juju compile problem
[vfc/nfvo/driver/vnfm/gvnfm.git] / juju / juju-vnfmadapter / Juju-vnfmadapterService / service / src / test / java / org / onap / vfc / nfvo / vnfm / gvnfm / jujuvnfmadapter / service / entity / JujuVnfmInfoTest.java
1 /*
2  * Copyright 2016 Huawei Technologies Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.service.entity;
18
19 import static org.junit.Assert.assertNull;
20 import static org.junit.Assert.assertNotNull;
21 import static org.junit.Assert.assertEquals;
22 import static org.junit.Assert.assertFalse;
23 import static org.junit.Assert.assertTrue;
24
25 import org.junit.Test;
26 import org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.service.entity.JujuVnfmInfo;
27
28 import java.util.Date;
29
30 public class JujuVnfmInfoTest {
31
32         @Test
33         public void testSetId() {
34                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
35                 jujuVnfmInfo.setId("testSetId");
36                 String result = jujuVnfmInfo.getId();
37                 assertEquals("testSetId", result);
38         }
39
40         @Test
41         public void testGetId() {
42                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
43                 String result = jujuVnfmInfo.getId();
44                 assertNull(result);
45         }
46
47         @Test
48         public void testSetVnfmId() {
49                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
50                 jujuVnfmInfo.setVnfmId("testSetVnfmId");
51                 String result = jujuVnfmInfo.getVnfmId();
52                 assertEquals("testSetVnfmId", result);
53         }
54
55         @Test
56         public void testGetVnfmId() {
57                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
58                 String result = jujuVnfmInfo.getVnfmId();
59                 assertNull(result);
60         }
61
62         @Test
63         public void testSetVnfId() {
64                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
65                 jujuVnfmInfo.setVnfId("testSetVnfId");
66                 String result = jujuVnfmInfo.getVnfId();
67                 assertEquals("testSetVnfId", result);
68         }
69
70         @Test
71         public void testGetVnfId() {
72                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
73                 String result = jujuVnfmInfo.getVnfId();
74                 assertNull(result);
75         }
76
77         @Test
78         public void testSetAppName() {
79                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
80                 jujuVnfmInfo.setAppName("testSetAppName");
81                 String result = jujuVnfmInfo.getAppName();
82                 assertEquals("testSetAppName", result);
83         }
84
85         @Test
86         public void testGetAppName() {
87                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
88                 String result = jujuVnfmInfo.getAppName();
89                 assertNull(result);
90         }
91
92         @Test
93         public void testSetJobId() {
94                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
95                 jujuVnfmInfo.setJobId("testSetJobId");
96                 String result = jujuVnfmInfo.getJobId();
97                 assertEquals("testSetJobId", result);
98         }
99
100         @Test
101         public void testGetJobId() {
102                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
103                 String result = jujuVnfmInfo.getJobId();
104                 assertNull(result);
105         }
106
107         @Test
108         public void testSetStatus() {
109                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
110                 jujuVnfmInfo.setStatus(0);
111                 Integer result = jujuVnfmInfo.getStatus();
112                 assertEquals(Integer.valueOf(0), result);
113         }
114
115         @Test
116         public void testGetStatus() {
117                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
118                 Integer result = jujuVnfmInfo.getStatus();
119                 assertNull(result);
120         }
121
122         @Test
123         public void testSetCreateTime() {
124                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
125                 jujuVnfmInfo.setCreateTime(new Date());
126                 Date result = jujuVnfmInfo.getCreateTime();
127                 assertEquals(new Date(), result);
128         }
129
130         @Test
131         public void testGetCreateTime() {
132                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
133                 Date result = jujuVnfmInfo.getCreateTime();
134                 assertNull(result);
135         }
136
137         @Test
138         public void testSetModifyTime() {
139                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
140                 jujuVnfmInfo.setModifyTime(new Date());
141                 Date result = jujuVnfmInfo.getModifyTime();
142                 assertEquals(new Date(), result);
143         }
144
145         @Test
146         public void testGetModifyTime() {
147                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
148                 Date result = jujuVnfmInfo.getModifyTime();
149                 assertNull(result);
150         }
151
152         @Test
153         public void testSetDeleteTime() {
154                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
155                 jujuVnfmInfo.setDeleteTime(new Date());
156                 Date result = jujuVnfmInfo.getDeleteTime();
157                 assertEquals(new Date(), result);
158         }
159
160         @Test
161         public void testGetDeleteTime() {
162                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
163                 Date result = jujuVnfmInfo.getDeleteTime();
164                 assertNull(result);
165         }
166
167         @Test
168         public void testSetExtend() {
169                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
170                 jujuVnfmInfo.setExtend("testSetExtend");
171                 String result = jujuVnfmInfo.getExtend();
172                 assertEquals("testSetExtend", result);
173         }
174
175         @Test
176         public void testGetExtend() {
177                 JujuVnfmInfo jujuVnfmInfo = new JujuVnfmInfo();
178                 String result = jujuVnfmInfo.getExtend();
179                 assertNull(result);
180         }
181
182
183 }