Added oparent to sdc main
[sdc.git] / common-app-api / src / test / java / org / openecomp / sdc / common / monitoring / MonitoringEventTest.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.common.monitoring;
22
23 import org.junit.Test;
24
25
26 public class MonitoringEventTest {
27
28         private MonitoringEvent createTestSubject() {
29                 return new MonitoringEvent();
30         }
31
32         
33         @Test
34         public void testGetHostid() throws Exception {
35                 MonitoringEvent testSubject;
36                 String result;
37
38                 // default test
39                 testSubject = createTestSubject();
40                 result = testSubject.getHostid();
41         }
42
43         
44         @Test
45         public void testSetHostid() throws Exception {
46                 MonitoringEvent testSubject;
47                 String hostid = "";
48
49                 // default test
50                 testSubject = createTestSubject();
51                 testSubject.setHostid(hostid);
52         }
53
54         
55         @Test
56         public void testGetHostcpu() throws Exception {
57                 MonitoringEvent testSubject;
58                 Long result;
59
60                 // default test
61                 testSubject = createTestSubject();
62                 result = testSubject.getHostcpu();
63         }
64
65         
66         @Test
67         public void testSetHostcpu() throws Exception {
68                 MonitoringEvent testSubject;
69                 Long hostcpu = null;
70
71                 // default test
72                 testSubject = createTestSubject();
73                 testSubject.setHostcpu(hostcpu);
74         }
75
76         
77         @Test
78         public void testGetHostmem() throws Exception {
79                 MonitoringEvent testSubject;
80                 Double result;
81
82                 // default test
83                 testSubject = createTestSubject();
84                 result = testSubject.getHostmem();
85         }
86
87         
88         @Test
89         public void testSetHostmem() throws Exception {
90                 MonitoringEvent testSubject;
91                 Double hostmem = null;
92
93                 // default test
94                 testSubject = createTestSubject();
95                 testSubject.setHostmem(hostmem);
96         }
97
98         
99         @Test
100         public void testGetHostdisk() throws Exception {
101                 MonitoringEvent testSubject;
102                 String result;
103
104                 // default test
105                 testSubject = createTestSubject();
106                 result = testSubject.getHostdisk();
107         }
108
109         
110         @Test
111         public void testSetHostdisk() throws Exception {
112                 MonitoringEvent testSubject;
113                 String hostdisk = "";
114
115                 // default test
116                 testSubject = createTestSubject();
117                 testSubject.setHostdisk(hostdisk);
118         }
119
120         
121         @Test
122         public void testGetJvmid() throws Exception {
123                 MonitoringEvent testSubject;
124                 String result;
125
126                 // default test
127                 testSubject = createTestSubject();
128                 result = testSubject.getJvmid();
129         }
130
131         
132         @Test
133         public void testSetJvmid() throws Exception {
134                 MonitoringEvent testSubject;
135                 String jvmid = "";
136
137                 // default test
138                 testSubject = createTestSubject();
139                 testSubject.setJvmid(jvmid);
140         }
141
142         
143         @Test
144         public void testGetJvmcpu() throws Exception {
145                 MonitoringEvent testSubject;
146                 Long result;
147
148                 // default test
149                 testSubject = createTestSubject();
150                 result = testSubject.getJvmcpu();
151         }
152
153         
154         @Test
155         public void testSetJvmcpu() throws Exception {
156                 MonitoringEvent testSubject;
157                 Long jvmcpu = null;
158
159                 // default test
160                 testSubject = createTestSubject();
161                 testSubject.setJvmcpu(jvmcpu);
162         }
163
164         
165         @Test
166         public void testGetJvmmem() throws Exception {
167                 MonitoringEvent testSubject;
168                 Long result;
169
170                 // default test
171                 testSubject = createTestSubject();
172                 result = testSubject.getJvmmem();
173         }
174
175         
176         @Test
177         public void testSetJvmmem() throws Exception {
178                 MonitoringEvent testSubject;
179                 Long jvmmem = null;
180
181                 // default test
182                 testSubject = createTestSubject();
183                 testSubject.setJvmmem(jvmmem);
184         }
185
186         
187         @Test
188         public void testGetJvmtnum() throws Exception {
189                 MonitoringEvent testSubject;
190                 Integer result;
191
192                 // default test
193                 testSubject = createTestSubject();
194                 result = testSubject.getJvmtnum();
195         }
196
197         
198         @Test
199         public void testSetJvmtnum() throws Exception {
200                 MonitoringEvent testSubject;
201                 Integer jvmtnum = 0;
202
203                 // default test
204                 testSubject = createTestSubject();
205                 testSubject.setJvmtnum(jvmtnum);
206         }
207
208         
209         @Test
210         public void testGetAppid() throws Exception {
211                 MonitoringEvent testSubject;
212                 String result;
213
214                 // default test
215                 testSubject = createTestSubject();
216                 result = testSubject.getAppid();
217         }
218
219         
220         @Test
221         public void testSetAppid() throws Exception {
222                 MonitoringEvent testSubject;
223                 String appid = "";
224
225                 // default test
226                 testSubject = createTestSubject();
227                 testSubject.setAppid(appid);
228         }
229
230         
231         @Test
232         public void testGetAppstat() throws Exception {
233                 MonitoringEvent testSubject;
234                 String result;
235
236                 // default test
237                 testSubject = createTestSubject();
238                 result = testSubject.getAppstat();
239         }
240
241         
242         @Test
243         public void testSetAppstat() throws Exception {
244                 MonitoringEvent testSubject;
245                 String appstat = "";
246
247                 // default test
248                 testSubject = createTestSubject();
249                 testSubject.setAppstat(appstat);
250         }
251
252         
253         @Test
254         public void testToString() throws Exception {
255                 MonitoringEvent testSubject;
256                 String result;
257
258                 // default test
259                 testSubject = createTestSubject();
260                 result = testSubject.toString();
261         }
262 }