2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright 2018 TechMahindra
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 package org.onap.dcaegen2.ves.domain;
22 import java.util.List;
24 import org.onap.dcaegen2.ves.domain.MeasurementsForVfScalingFields;
25 import org.junit.Test;
27 public class MeasurementsForVfScalingFieldsTest {
29 private MeasurementsForVfScalingFields createTestSubject() {
30 return new MeasurementsForVfScalingFields();
34 public void testGetMeasurementInterval() throws Exception {
35 MeasurementsForVfScalingFields testSubject;
39 testSubject = createTestSubject();
40 result = testSubject.getMeasurementInterval();
44 public void testSetMeasurementInterval() throws Exception {
45 MeasurementsForVfScalingFields testSubject;
46 Double measurementInterval = null;
49 testSubject = createTestSubject();
50 testSubject.setMeasurementInterval(measurementInterval);
54 public void testGetMeasurementsForVfScalingVersion() throws Exception {
55 MeasurementsForVfScalingFields testSubject;
59 testSubject = createTestSubject();
60 result = testSubject.getMeasurementsForVfScalingVersion();
64 public void testSetMeasurementsForVfScalingVersion() throws Exception {
65 MeasurementsForVfScalingFields testSubject;
66 Double measurementsForVfScalingVersion = null;
69 testSubject = createTestSubject();
70 testSubject.setMeasurementsForVfScalingVersion(measurementsForVfScalingVersion);
74 public void testGetAdditionalFields() throws Exception {
75 MeasurementsForVfScalingFields testSubject;
76 List<AdditionalField> result;
79 testSubject = createTestSubject();
80 result = testSubject.getAdditionalFields();
84 public void testSetAdditionalFields() throws Exception {
85 MeasurementsForVfScalingFields testSubject;
86 List<AdditionalField> additionalFields = null;
89 testSubject = createTestSubject();
90 testSubject.setAdditionalFields(additionalFields);
94 public void testGetAdditionalMeasurements() throws Exception {
95 MeasurementsForVfScalingFields testSubject;
96 List<AdditionalMeasurement> result;
99 testSubject = createTestSubject();
100 result = testSubject.getAdditionalMeasurements();
104 public void testSetAdditionalMeasurements() throws Exception {
105 MeasurementsForVfScalingFields testSubject;
106 List<AdditionalMeasurement> additionalMeasurements = null;
109 testSubject = createTestSubject();
110 testSubject.setAdditionalMeasurements(additionalMeasurements);
114 public void testGetAdditionalObjects() throws Exception {
115 MeasurementsForVfScalingFields testSubject;
116 List<AdditionalObject> result;
119 testSubject = createTestSubject();
120 result = testSubject.getAdditionalObjects();
124 public void testSetAdditionalObjects() throws Exception {
125 MeasurementsForVfScalingFields testSubject;
126 List<AdditionalObject> additionalObjects = null;
129 testSubject = createTestSubject();
130 testSubject.setAdditionalObjects(additionalObjects);
134 public void testGetCodecUsageArray() throws Exception {
135 MeasurementsForVfScalingFields testSubject;
136 List<CodecUsageArray> result;
139 testSubject = createTestSubject();
140 result = testSubject.getCodecUsageArray();
144 public void testSetCodecUsageArray() throws Exception {
145 MeasurementsForVfScalingFields testSubject;
146 List<CodecUsageArray> codecUsageArray = null;
149 testSubject = createTestSubject();
150 testSubject.setCodecUsageArray(codecUsageArray);
154 public void testGetConcurrentSessions() throws Exception {
155 MeasurementsForVfScalingFields testSubject;
159 testSubject = createTestSubject();
160 result = testSubject.getConcurrentSessions();
164 public void testSetConcurrentSessions() throws Exception {
165 MeasurementsForVfScalingFields testSubject;
166 Long concurrentSessions = null;
169 testSubject = createTestSubject();
170 testSubject.setConcurrentSessions(concurrentSessions);
174 public void testGetConfiguredEntities() throws Exception {
175 MeasurementsForVfScalingFields testSubject;
179 testSubject = createTestSubject();
180 result = testSubject.getConfiguredEntities();
184 public void testSetConfiguredEntities() throws Exception {
185 MeasurementsForVfScalingFields testSubject;
186 Long configuredEntities = null;
189 testSubject = createTestSubject();
190 testSubject.setConfiguredEntities(configuredEntities);
194 public void testGetCpuUsageArray() throws Exception {
195 MeasurementsForVfScalingFields testSubject;
196 List<CpuUsageArray> result;
199 testSubject = createTestSubject();
200 result = testSubject.getCpuUsageArray();
204 public void testSetCpuUsageArray() throws Exception {
205 MeasurementsForVfScalingFields testSubject;
206 List<CpuUsageArray> cpuUsageArray = null;
209 testSubject = createTestSubject();
210 testSubject.setCpuUsageArray(cpuUsageArray);
214 public void testGetDiskUsageArray() throws Exception {
215 MeasurementsForVfScalingFields testSubject;
216 List<DiskUsageArray> result;
219 testSubject = createTestSubject();
220 result = testSubject.getDiskUsageArray();
224 public void testSetDiskUsageArray() throws Exception {
225 MeasurementsForVfScalingFields testSubject;
226 List<DiskUsageArray> diskUsageArray = null;
229 testSubject = createTestSubject();
230 testSubject.setDiskUsageArray(diskUsageArray);
234 public void testGetFeatureUsageArray() throws Exception {
235 MeasurementsForVfScalingFields testSubject;
236 List<FeatureUsageArray> result;
239 testSubject = createTestSubject();
240 result = testSubject.getFeatureUsageArray();
244 public void testSetFeatureUsageArray() throws Exception {
245 MeasurementsForVfScalingFields testSubject;
246 List<FeatureUsageArray> featureUsageArray = null;
249 testSubject = createTestSubject();
250 testSubject.setFeatureUsageArray(featureUsageArray);
254 public void testGetFilesystemUsageArray() throws Exception {
255 MeasurementsForVfScalingFields testSubject;
256 List<FilesystemUsageArray> result;
259 testSubject = createTestSubject();
260 result = testSubject.getFilesystemUsageArray();
264 public void testSetFilesystemUsageArray() throws Exception {
265 MeasurementsForVfScalingFields testSubject;
266 List<FilesystemUsageArray> filesystemUsageArray = null;
269 testSubject = createTestSubject();
270 testSubject.setFilesystemUsageArray(filesystemUsageArray);
274 public void testGetLatencyDistribution() throws Exception {
275 MeasurementsForVfScalingFields testSubject;
276 List<LatencyDistribution> result;
279 testSubject = createTestSubject();
280 result = testSubject.getLatencyDistribution();
284 public void testSetLatencyDistribution() throws Exception {
285 MeasurementsForVfScalingFields testSubject;
286 List<LatencyDistribution> latencyDistribution = null;
289 testSubject = createTestSubject();
290 testSubject.setLatencyDistribution(latencyDistribution);
294 public void testGetMeanRequestLatency() throws Exception {
295 MeasurementsForVfScalingFields testSubject;
299 testSubject = createTestSubject();
300 result = testSubject.getMeanRequestLatency();
304 public void testSetMeanRequestLatency() throws Exception {
305 MeasurementsForVfScalingFields testSubject;
306 Double meanRequestLatency = null;
309 testSubject = createTestSubject();
310 testSubject.setMeanRequestLatency(meanRequestLatency);
314 public void testGetMemoryUsageArray() throws Exception {
315 MeasurementsForVfScalingFields testSubject;
316 List<MemoryUsageArray> result;
319 testSubject = createTestSubject();
320 result = testSubject.getMemoryUsageArray();
324 public void testSetMemoryUsageArray() throws Exception {
325 MeasurementsForVfScalingFields testSubject;
326 List<MemoryUsageArray> memoryUsageArray = null;
329 testSubject = createTestSubject();
330 testSubject.setMemoryUsageArray(memoryUsageArray);
334 public void testGetNumberOfMediaPortsInUse() throws Exception {
335 MeasurementsForVfScalingFields testSubject;
339 testSubject = createTestSubject();
340 result = testSubject.getNumberOfMediaPortsInUse();
344 public void testSetNumberOfMediaPortsInUse() throws Exception {
345 MeasurementsForVfScalingFields testSubject;
346 Long numberOfMediaPortsInUse = null;
349 testSubject = createTestSubject();
350 testSubject.setNumberOfMediaPortsInUse(numberOfMediaPortsInUse);
354 public void testGetRequestRate() throws Exception {
355 MeasurementsForVfScalingFields testSubject;
359 testSubject = createTestSubject();
360 result = testSubject.getRequestRate();
364 public void testSetRequestRate() throws Exception {
365 MeasurementsForVfScalingFields testSubject;
366 Double requestRate = null;
369 testSubject = createTestSubject();
370 testSubject.setRequestRate(requestRate);
374 public void testGetVnfcScalingMetric() throws Exception {
375 MeasurementsForVfScalingFields testSubject;
379 testSubject = createTestSubject();
380 result = testSubject.getVnfcScalingMetric();
384 public void testSetVnfcScalingMetric() throws Exception {
385 MeasurementsForVfScalingFields testSubject;
386 Long vnfcScalingMetric = null;
389 testSubject = createTestSubject();
390 testSubject.setVnfcScalingMetric(vnfcScalingMetric);
394 public void testGetVNicPerformanceArray() throws Exception {
395 MeasurementsForVfScalingFields testSubject;
396 List<VNicPerformanceArray> result;
399 testSubject = createTestSubject();
400 result = testSubject.getVNicPerformanceArray();
404 public void testSetVNicPerformanceArray() throws Exception {
405 MeasurementsForVfScalingFields testSubject;
406 List<VNicPerformanceArray> vNicPerformanceArray = null;
409 testSubject = createTestSubject();
410 testSubject.setVNicPerformanceArray(vNicPerformanceArray);
414 public void testGetAdditionalProperties() throws Exception {
415 MeasurementsForVfScalingFields testSubject;
416 Map<String, Object> result;
419 testSubject = createTestSubject();
420 result = testSubject.getAdditionalProperties();
424 public void testSetAdditionalProperty() throws Exception {
425 MeasurementsForVfScalingFields testSubject;
430 testSubject = createTestSubject();
431 testSubject.setAdditionalProperty(name, value);
435 public void testToString() throws Exception {
436 MeasurementsForVfScalingFields testSubject;
440 testSubject = createTestSubject();
441 result = testSubject.toString();
445 public void testHashCode() throws Exception {
446 MeasurementsForVfScalingFields testSubject;
450 testSubject = createTestSubject();
451 result = testSubject.hashCode();
455 public void testEquals() throws Exception {
456 MeasurementsForVfScalingFields testSubject;
461 testSubject = createTestSubject();
462 result = testSubject.equals(other);