From 5e76fbd802ca4dcf48dac5c9a8f262470a326ef7 Mon Sep 17 00:00:00 2001 From: Pooja03 Date: Wed, 20 Mar 2019 19:39:58 +0530 Subject: Resolving warning reported in build - VES Mapper Changes made to resolve warnings in the build. Change-Id: I03dee6780941881afc65c4b907ade078febb5e39 Issue-ID: DCAEGEN2-604 Signed-off-by: Pooja03 --- .../domain/ves70/AdditionalMeasurementTest.java | 110 ++ .../ves/domain/ves70/AdditionalObjectTest.java | 193 ++++ .../ves/domain/ves70/AdditionalParameterTest.java | 128 +++ .../ves70/AlarmAdditionalInformationTest.java | 90 ++ .../ves/domain/ves70/CodecUsageArrayTest.java | 110 ++ .../ves/domain/ves70/CommonEventHeaderTest.java | 472 ++++++++ .../ves/domain/ves70/CpuUsageArrayTest.java | 410 +++++++ .../ves/domain/ves70/DiskUsageArrayTest.java | 1170 ++++++++++++++++++++ .../domain/ves70/EndOfCallVqmSummariesTest.java | 651 +++++++++++ .../onap/dcaegen2/ves/domain/ves70/EventTest.java | 343 ++++++ .../dcaegen2/ves/domain/ves70/FaultFieldsTest.java | 253 +++++ .../ves/domain/ves70/FilesystemUsageArrayTest.java | 210 ++++ .../ves/domain/ves70/GtpPerFlowMetricsTest.java | 1073 ++++++++++++++++++ .../ves/domain/ves70/HeartbeatFieldsTest.java | 132 +++ .../ves/domain/ves70/HugePagesArrayTest.java | 211 ++++ .../ves/domain/ves70/InternalHeaderFieldsTest.java | 93 ++ .../ves70/IpmiBaseboardTemperatureArrayTest.java | 110 ++ .../IpmiBaseboardVoltageRegulatorArrayTest.java | 110 ++ .../ves/domain/ves70/IpmiBatteryArrayTest.java | 130 +++ .../ves/domain/ves70/IpmiFanArrayTest.java | 110 ++ ...iGlobalAggregateTemperatureMarginArrayTest.java | 111 ++ .../ves/domain/ves70/IpmiHsbpArrayTest.java | 110 ++ .../ves/domain/ves70/IpmiNicArrayTest.java | 110 ++ .../ves/domain/ves70/IpmiPowerSupplyArrayTest.java | 150 +++ .../ves/domain/ves70/IpmiProcessorArrayTest.java | 155 +++ .../onap/dcaegen2/ves/domain/ves70/IpmiTest.java | 343 ++++++ .../ves/domain/ves70/LatencyDistributionTest.java | 130 +++ .../dcaegen2/ves/domain/ves70/LoadArrayTest.java | 130 +++ .../ves70/MachineCheckExceptionArrayTest.java | 170 +++ .../ves/domain/ves70/MeasurementFieldsTest.java | 553 +++++++++ .../ves/domain/ves70/MemoryUsageArrayTest.java | 410 +++++++ .../ves/domain/ves70/MobileFlowFieldsTest.java | 733 ++++++++++++ .../ves/domain/ves70/NicPerformanceArrayTest.java | 856 ++++++++++++++ .../ves/domain/ves70/NotificationFieldsTest.java | 255 +++++ .../ves/domain/ves70/ObjectInstanceTest.java | 154 +++ .../dcaegen2/ves/domain/ves70/ObjectKeyTest.java | 130 +++ .../dcaegen2/ves/domain/ves70/OtherFieldsTest.java | 156 +++ .../domain/ves70/PnfRegistrationFieldsTest.java | 333 ++++++ .../ves/domain/ves70/ProcessStatsArrayTest.java | 230 ++++ ...ocessorDimmAggregateThermalMarginArrayTest.java | 111 ++ .../ves/domain/ves70/SipSignalingFieldsTest.java | 271 +++++ .../ves/domain/ves70/StateChangeFieldsTest.java | 174 +++ .../ves/domain/ves70/SyslogFieldsTest.java | 393 +++++++ .../ves70/ThresholdCrossingAlertFieldsTest.java | 403 +++++++ .../ves/domain/ves70/VendorNfNameFieldsTest.java | 130 +++ .../dcaegen2/ves/domain/ves70/VesEventTest.java | 114 ++ .../ves/domain/ves70/VoiceQualityFieldsTest.java | 254 +++++ .../domain/ves7_0/AdditionalMeasurementTest.java | 106 -- .../ves/domain/ves7_0/AdditionalObjectTest.java | 189 ---- .../ves/domain/ves7_0/AdditionalParameterTest.java | 127 --- .../ves7_0/AlarmAdditionalInformationTest.java | 88 -- .../ves/domain/ves7_0/CodecUsageArrayTest.java | 108 -- .../ves/domain/ves7_0/CommonEventHeaderTest.java | 471 -------- .../ves/domain/ves7_0/CpuUsageArrayTest.java | 407 ------- .../ves/domain/ves7_0/DiskUsageArrayTest.java | 1167 ------------------- .../domain/ves7_0/EndOfCallVqmSummariesTest.java | 648 ----------- .../onap/dcaegen2/ves/domain/ves7_0/EventTest.java | 327 ------ .../ves/domain/ves7_0/FaultFieldsTest.java | 250 ----- .../domain/ves7_0/FilesystemUsageArrayTest.java | 208 ---- .../ves/domain/ves7_0/GtpPerFlowMetricsTest.java | 1069 ------------------ .../ves/domain/ves7_0/HeartbeatFieldsTest.java | 129 --- .../ves/domain/ves7_0/HugePagesArrayTest.java | 209 ---- .../domain/ves7_0/InternalHeaderFieldsTest.java | 90 -- .../ves7_0/IpmiBaseboardTemperatureArrayTest.java | 108 -- .../IpmiBaseboardVoltageRegulatorArrayTest.java | 108 -- .../ves/domain/ves7_0/IpmiBatteryArrayTest.java | 128 --- .../ves/domain/ves7_0/IpmiFanArrayTest.java | 108 -- ...iGlobalAggregateTemperatureMarginArrayTest.java | 108 -- .../ves/domain/ves7_0/IpmiHsbpArrayTest.java | 108 -- .../ves/domain/ves7_0/IpmiNicArrayTest.java | 108 -- .../domain/ves7_0/IpmiPowerSupplyArrayTest.java | 148 --- .../ves/domain/ves7_0/IpmiProcessorArrayTest.java | 150 --- .../onap/dcaegen2/ves/domain/ves7_0/IpmiTest.java | 331 ------ .../ves/domain/ves7_0/LatencyDistributionTest.java | 128 --- .../dcaegen2/ves/domain/ves7_0/LoadArrayTest.java | 128 --- .../ves7_0/MachineCheckExceptionArrayTest.java | 168 --- .../ves/domain/ves7_0/MeasurementFieldsTest.java | 550 --------- .../ves/domain/ves7_0/MemoryUsageArrayTest.java | 408 ------- .../ves/domain/ves7_0/MobileFlowFieldsTest.java | 729 ------------ .../ves/domain/ves7_0/NicPerformanceArrayTest.java | 851 -------------- .../ves/domain/ves7_0/NotificationFieldsTest.java | 250 ----- .../ves/domain/ves7_0/ObjectInstanceTest.java | 149 --- .../dcaegen2/ves/domain/ves7_0/ObjectKeyTest.java | 128 --- .../ves/domain/ves7_0/OtherFieldsTest.java | 150 --- .../domain/ves7_0/PnfRegistrationFieldsTest.java | 329 ------ .../ves/domain/ves7_0/ProcessStatsArrayTest.java | 228 ---- ...ocessorDimmAggregateThermalMarginArrayTest.java | 109 -- .../ves/domain/ves7_0/SipSignalingFieldsTest.java | 269 ----- .../ves/domain/ves7_0/StateChangeFieldsTest.java | 171 --- .../ves/domain/ves7_0/SyslogFieldsTest.java | 390 ------- .../ves7_0/ThresholdCrossingAlertFieldsTest.java | 398 ------- .../ves/domain/ves7_0/VendorNfNameFieldsTest.java | 128 --- .../dcaegen2/ves/domain/ves7_0/VesEventTest.java | 110 -- .../ves/domain/ves7_0/VoiceQualityFieldsTest.java | 249 ----- .../adapter/UniversalEventAdapterTest.java | 236 ++-- .../configs/DMaaPMRBaseConfigTest.java | 75 -- .../configs/DmaapMrBaseConfigTest.java | 78 ++ .../controller/VesControllerTest.java | 134 +-- .../ConfigFileSmooksConversionExceptionTest.java | 72 +- .../exception/DMaapExceptionTest.java | 84 +- .../exception/MapperConfigExceptionTest.java | 65 +- .../mappingconfig/EntryTest.java | 119 +- .../mappingconfig/EvaluationTest.java | 140 +-- .../mappingconfig/MapperConfigTest.java | 109 +- .../service/VesServiceTest.java | 244 ++-- .../universalvesadapter/utils/SmooksUtilsTest.java | 217 ++-- 106 files changed, 13959 insertions(+), 13810 deletions(-) create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurementTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObjectTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameterTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformationTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeaderTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummariesTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EventTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FaultFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetricsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistributionTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LoadArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstanceTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKeyTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/OtherFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VesEventTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurementTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObjectTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameterTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformationTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeaderTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummariesTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EventTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetricsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistributionTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstanceTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKeyTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEventTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DMaaPMRBaseConfigTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DmaapMrBaseConfigTest.java (limited to 'UniversalVesAdapter/src/test/java/org/onap') diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurementTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurementTest.java new file mode 100644 index 0000000..3b1a3ac --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurementTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalMeasurement; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; + + +public class AdditionalMeasurementTest { + + private AdditionalMeasurement createTestSubject() { + return new AdditionalMeasurement(); + } + + @Test + public void testGetName() throws Exception { + AdditionalMeasurement testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getName(); + } + + @Test + public void testSetName() throws Exception { + AdditionalMeasurement testSubject; + String name = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setName(name); + } + + @Test + public void testGetHashMap() throws Exception { + AdditionalMeasurement testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.getHashMap(); + } + + @Test + public void testSetHashMap() throws Exception { + AdditionalMeasurement testSubject; + AlarmAdditionalInformation hashMap = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHashMap(hashMap); + } + + @Test + public void testToString() throws Exception { + AdditionalMeasurement testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + AdditionalMeasurement testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + AdditionalMeasurement testSubject; + AdditionalMeasurement testSubject2; + Object other = null; + boolean result; + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObjectTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObjectTest.java new file mode 100644 index 0000000..3096fe2 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObjectTest.java @@ -0,0 +1,193 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalObject; +import org.onap.dcaegen2.ves.domain.ves70.ObjectInstance; + + +public class AdditionalObjectTest { + + private AdditionalObject createTestSubject() { + return new AdditionalObject(); + } + + @Test + public void testGetObjectInstances() throws Exception { + AdditionalObject testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.getObjectInstances(); + } + + @Test + public void testSetObjectInstances() throws Exception { + AdditionalObject testSubject; + List objectInstances = null; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectInstances(objectInstances); + } + + @Test + public void testGetObjectName() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getObjectName(); + } + + @Test + public void testSetObjectName() throws Exception { + AdditionalObject testSubject; + String objectName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectName(objectName); + } + + @Test + public void testGetObjectSchema() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getObjectSchema(); + } + + @Test + public void testSetObjectSchema() throws Exception { + AdditionalObject testSubject; + String objectSchema = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectSchema(objectSchema); + } + + @Test + public void testGetObjectSchemaUrl() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getObjectSchemaUrl(); + } + + @Test + public void testSetObjectSchemaUrl() throws Exception { + AdditionalObject testSubject; + String objectSchemaUrl = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectSchemaUrl(objectSchemaUrl); + } + + @Test + public void testGetNfSubscribedObjectName() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getNfSubscribedObjectName(); + } + + @Test + public void testSetNfSubscribedObjectName() throws Exception { + AdditionalObject testSubject; + String nfSubscribedObjectName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfSubscribedObjectName(nfSubscribedObjectName); + } + + @Test + public void testGetNfSubscriptionId() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getNfSubscriptionId(); + } + + @Test + public void testSetNfSubscriptionId() throws Exception { + AdditionalObject testSubject; + String nfSubscriptionId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfSubscriptionId(nfSubscriptionId); + } + + @Test + public void testToString() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + AdditionalObject testSubject; + AdditionalObject testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameterTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameterTest.java new file mode 100644 index 0000000..d72037f --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameterTest.java @@ -0,0 +1,128 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalParameter.Criticality; + + + +public class AdditionalParameterTest { + + private AdditionalParameter createTestSubject() { + return new AdditionalParameter(); + } + + @Test + public void getCriticalityTest() throws Exception { + AdditionalParameter testSubject; + Criticality result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCriticality(); + } + + @Test + public void setCriticalityTest() throws Exception { + AdditionalParameter testSubject; + Criticality criticality = Criticality.CRIT; + + // default test + testSubject = createTestSubject(); + testSubject.setCriticality(criticality); + } + + @Test + public void getHashMapTest() throws Exception { + AdditionalParameter testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHashMap(); + } + + @Test + public void setHashMapTest() throws Exception { + AdditionalParameter testSubject; + AlarmAdditionalInformation hashMap = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHashMap(hashMap); + } + + @Test + public void getThresholdCrossedTest() throws Exception { + AdditionalParameter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getThresholdCrossed(); + } + + @Test + public void setThresholdCrossedTest() throws Exception { + AdditionalParameter testSubject; + String thresholdCrossed = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setThresholdCrossed(thresholdCrossed); + } + + @Test + public void toStringTest() throws Exception { + AdditionalParameter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void hashCodeTest() throws Exception { + AdditionalParameter testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void equalsTest() throws Exception { + AdditionalParameter testSubject; + AdditionalParameter testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformationTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformationTest.java new file mode 100644 index 0000000..aceac0b --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformationTest.java @@ -0,0 +1,90 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.Map; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; + + +public class AlarmAdditionalInformationTest { + + private AlarmAdditionalInformation createTestSubject() { + return new AlarmAdditionalInformation(); + } + + @Test + public void testToString() throws Exception { + AlarmAdditionalInformation testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testGetAdditionalProperties() throws Exception { + AlarmAdditionalInformation testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalProperties(); + } + + @Test + public void testSetAdditionalProperty() throws Exception { + AlarmAdditionalInformation testSubject; + String name = ""; + String value = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalProperty(name, value); + } + + @Test + public void testHashCode() throws Exception { + AlarmAdditionalInformation testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + AlarmAdditionalInformation testSubject; + AlarmAdditionalInformation testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArrayTest.java new file mode 100644 index 0000000..c9812fd --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.CodecUsageArray; + + +public class CodecUsageArrayTest { + + private CodecUsageArray createTestSubject() { + return new CodecUsageArray(); + } + + @Test + public void testGetCodecIdentifier() throws Exception { + CodecUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCodecIdentifier(); + } + + @Test + public void testSetCodecIdentifier() throws Exception { + CodecUsageArray testSubject; + String codecIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCodecIdentifier(codecIdentifier); + } + + @Test + public void testGetNumberInUse() throws Exception { + CodecUsageArray testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumberInUse(); + } + + @Test + public void testSetNumberInUse() throws Exception { + CodecUsageArray testSubject; + Integer numberInUse = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setNumberInUse(numberInUse); + } + + @Test + public void testToString() throws Exception { + CodecUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + CodecUsageArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + CodecUsageArray testSubject; + CodecUsageArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeaderTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeaderTest.java new file mode 100644 index 0000000..8e5deb4 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeaderTest.java @@ -0,0 +1,472 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain; +import org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion; + + +public class CommonEventHeaderTest { + + private CommonEventHeader createTestSubject() { + return new CommonEventHeader(); + } + + @Test + public void testGetTs1() throws Exception { + CommonEventHeader testSubject; + long result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTs1(); + } + + @Test + public void testSetTs1() throws Exception { + CommonEventHeader testSubject; + long ts1 = 123222; + + // default test + testSubject = createTestSubject(); + testSubject.setTs1(ts1); + } + + @Test + public void testGetDomain() throws Exception { + CommonEventHeader testSubject; + Domain result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDomain(); + } + + @Test + public void testSetDomain() throws Exception { + CommonEventHeader testSubject; + Domain domain = CommonEventHeader.Domain.FAULT; + + // default test + testSubject = createTestSubject(); + testSubject.setDomain(domain); + } + + @Test + public void testGetEventId() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventId(); + } + + @Test + public void testSetEventId() throws Exception { + CommonEventHeader testSubject; + String eventId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventId(eventId); + } + + @Test + public void testGetEventName() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventName(); + } + + @Test + public void testSetEventName() throws Exception { + CommonEventHeader testSubject; + String eventName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventName(eventName); + } + + @Test + public void testGetEventType() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventType(); + } + + @Test + public void testSetEventType() throws Exception { + CommonEventHeader testSubject; + String eventType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventType(eventType); + } + + @Test + public void testGetInternalHeaderFields() throws Exception { + CommonEventHeader testSubject; + InternalHeaderFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInternalHeaderFields(); + } + + @Test + public void testSetInternalHeaderFields() throws Exception { + CommonEventHeader testSubject; + InternalHeaderFields internalHeaderFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInternalHeaderFields(internalHeaderFields); + } + + @Test + public void testGetLastEpochMicrosec() throws Exception { + CommonEventHeader testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLastEpochMicrosec(); + } + + @Test + public void testSetLastEpochMicrosec() throws Exception { + CommonEventHeader testSubject; + Double lastEpochMicrosec = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLastEpochMicrosec(lastEpochMicrosec); + } + + @Test + public void testGetNfcNamingCode() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfcNamingCode(); + } + + @Test + public void testSetNfcNamingCode() throws Exception { + CommonEventHeader testSubject; + String nfcNamingCode = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfcNamingCode(nfcNamingCode); + } + + @Test + public void testGetNfNamingCode() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfNamingCode(); + } + + @Test + public void testSetNfNamingCode() throws Exception { + CommonEventHeader testSubject; + String nfNamingCode = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfNamingCode(nfNamingCode); + } + + @Test + public void testGetNfVendorName() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfVendorName(); + } + + @Test + public void testSetNfVendorName() throws Exception { + CommonEventHeader testSubject; + String nfVendorName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfVendorName(nfVendorName); + } + + @Test + public void testGetPriority() throws Exception { + CommonEventHeader testSubject; + CommonEventHeader.Priority result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPriority(); + } + + @Test + public void testSetPriority() throws Exception { + CommonEventHeader testSubject; + CommonEventHeader.Priority priority = CommonEventHeader.Priority.HIGH; + + // default test + testSubject = createTestSubject(); + testSubject.setPriority(priority); + } + + @Test + public void testGetReportingEntityId() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReportingEntityId(); + } + + @Test + public void testSetReportingEntityId() throws Exception { + CommonEventHeader testSubject; + String reportingEntityId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setReportingEntityId(reportingEntityId); + } + + @Test + public void testGetReportingEntityName() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReportingEntityName(); + } + + @Test + public void testSetReportingEntityName() throws Exception { + CommonEventHeader testSubject; + String reportingEntityName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setReportingEntityName(reportingEntityName); + } + + @Test + public void testGetSequence() throws Exception { + CommonEventHeader testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSequence(); + } + + @Test + public void testSetSequence() throws Exception { + CommonEventHeader testSubject; + Integer sequence = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setSequence(sequence); + } + + @Test + public void testGetSourceId() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSourceId(); + } + + @Test + public void testSetSourceId() throws Exception { + CommonEventHeader testSubject; + String sourceId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSourceId(sourceId); + } + + @Test + public void testGetSourceName() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSourceName(); + } + + @Test + public void testSetSourceName() throws Exception { + CommonEventHeader testSubject; + String sourceName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSourceName(sourceName); + } + + @Test + public void testGetStartEpochMicrosec() throws Exception { + CommonEventHeader testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStartEpochMicrosec(); + } + + @Test + public void testSetStartEpochMicrosec() throws Exception { + CommonEventHeader testSubject; + Double startEpochMicrosec = null; + + // default test + testSubject = createTestSubject(); + testSubject.setStartEpochMicrosec(startEpochMicrosec); + } + + @Test + public void testGetTimeZoneOffset() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTimeZoneOffset(); + } + + @Test + public void testSetTimeZoneOffset() throws Exception { + CommonEventHeader testSubject; + String timeZoneOffset = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setTimeZoneOffset(timeZoneOffset); + } + + @Test + public void testGetVersion() throws Exception { + CommonEventHeader testSubject; + CommonEventHeader.Version result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVersion(); + } + + @Test + public void testSetVersion() throws Exception { + CommonEventHeader testSubject; + CommonEventHeader.Version version = CommonEventHeader.Version._4_0_1; + + // default test + testSubject = createTestSubject(); + testSubject.setVersion(version); + } + + @Test + public void testGetVesEventListenerVersion() throws Exception { + CommonEventHeader testSubject; + VesEventListenerVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVesEventListenerVersion(); + } + + @Test + public void testSetVesEventListenerVersion() throws Exception { + CommonEventHeader testSubject; + VesEventListenerVersion vesEventListenerVersion = + CommonEventHeader.VesEventListenerVersion._7_0_1; + + // default test + testSubject = createTestSubject(); + testSubject.setVesEventListenerVersion(vesEventListenerVersion); + } + + @Test + public void testToString() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + CommonEventHeader testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + CommonEventHeader testSubject; + CommonEventHeader testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArrayTest.java new file mode 100644 index 0000000..683b777 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArrayTest.java @@ -0,0 +1,410 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.CpuUsageArray; + + +public class CpuUsageArrayTest { + + private CpuUsageArray createTestSubject() { + return new CpuUsageArray(); + } + + @Test + public void testGetCpuCapacityContention() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuCapacityContention(); + } + + @Test + public void testSetCpuCapacityContention() throws Exception { + CpuUsageArray testSubject; + Double cpuCapacityContention = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuCapacityContention(cpuCapacityContention); + } + + @Test + public void testGetCpuDemandAvg() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuDemandAvg(); + } + + @Test + public void testSetCpuDemandAvg() throws Exception { + CpuUsageArray testSubject; + Double cpuDemandAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuDemandAvg(cpuDemandAvg); + } + + @Test + public void testGetCpuDemandMhz() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuDemandMhz(); + } + + @Test + public void testSetCpuDemandMhz() throws Exception { + CpuUsageArray testSubject; + Double cpuDemandMhz = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuDemandMhz(cpuDemandMhz); + } + + @Test + public void testGetCpuDemandPct() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuDemandPct(); + } + + @Test + public void testSetCpuDemandPct() throws Exception { + CpuUsageArray testSubject; + Double cpuDemandPct = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuDemandPct(cpuDemandPct); + } + + @Test + public void testGetCpuIdentifier() throws Exception { + CpuUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuIdentifier(); + } + + @Test + public void testSetCpuIdentifier() throws Exception { + CpuUsageArray testSubject; + String cpuIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuIdentifier(cpuIdentifier); + } + + @Test + public void testGetCpuIdle() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuIdle(); + } + + @Test + public void testSetCpuIdle() throws Exception { + CpuUsageArray testSubject; + Double cpuIdle = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuIdle(cpuIdle); + } + + @Test + public void testGetCpuLatencyAvg() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuLatencyAvg(); + } + + @Test + public void testSetCpuLatencyAvg() throws Exception { + CpuUsageArray testSubject; + Double cpuLatencyAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuLatencyAvg(cpuLatencyAvg); + } + + @Test + public void testGetCpuOverheadAvg() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuOverheadAvg(); + } + + @Test + public void testSetCpuOverheadAvg() throws Exception { + CpuUsageArray testSubject; + Double cpuOverheadAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuOverheadAvg(cpuOverheadAvg); + } + + @Test + public void testGetCpuSwapWaitTime() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuSwapWaitTime(); + } + + @Test + public void testSetCpuSwapWaitTime() throws Exception { + CpuUsageArray testSubject; + Double cpuSwapWaitTime = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuSwapWaitTime(cpuSwapWaitTime); + } + + @Test + public void testGetCpuUsageInterrupt() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageInterrupt(); + } + + @Test + public void testSetCpuUsageInterrupt() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageInterrupt = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageInterrupt(cpuUsageInterrupt); + } + + @Test + public void testGetCpuUsageNice() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageNice(); + } + + @Test + public void testSetCpuUsageNice() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageNice = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageNice(cpuUsageNice); + } + + @Test + public void testGetCpuUsageSoftIrq() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageSoftIrq(); + } + + @Test + public void testSetCpuUsageSoftIrq() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageSoftIrq = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageSoftIrq(cpuUsageSoftIrq); + } + + @Test + public void testGetCpuUsageSteal() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageSteal(); + } + + @Test + public void testSetCpuUsageSteal() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageSteal = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageSteal(cpuUsageSteal); + } + + @Test + public void testGetCpuUsageSystem() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageSystem(); + } + + @Test + public void testSetCpuUsageSystem() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageSystem = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageSystem(cpuUsageSystem); + } + + @Test + public void testGetCpuUsageUser() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageUser(); + } + + @Test + public void testSetCpuUsageUser() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageUser = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageUser(cpuUsageUser); + } + + @Test + public void testGetCpuWait() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuWait(); + } + + @Test + public void testSetCpuWait() throws Exception { + CpuUsageArray testSubject; + Double cpuWait = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuWait(cpuWait); + } + + @Test + public void testGetPercentUsage() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPercentUsage(); + } + + @Test + public void testSetPercentUsage() throws Exception { + CpuUsageArray testSubject; + Double percentUsage = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPercentUsage(percentUsage); + } + + @Test + public void testToString() throws Exception { + CpuUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + CpuUsageArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + CpuUsageArray testSubject; + CpuUsageArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArrayTest.java new file mode 100644 index 0000000..d634540 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArrayTest.java @@ -0,0 +1,1170 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.DiskUsageArray; + + +public class DiskUsageArrayTest { + + private DiskUsageArray createTestSubject() { + return new DiskUsageArray(); + } + + @Test + public void testGetDiskBusResets() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskBusResets(); + } + + @Test + public void testSetDiskBusResets() throws Exception { + DiskUsageArray testSubject; + Double diskBusResets = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskBusResets(diskBusResets); + } + + @Test + public void testGetDiskCommandsAborted() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskCommandsAborted(); + } + + @Test + public void testSetDiskCommandsAborted() throws Exception { + DiskUsageArray testSubject; + Double diskCommandsAborted = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskCommandsAborted(diskCommandsAborted); + } + + @Test + public void testGetDiskCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskCommandsAvg(); + } + + @Test + public void testSetDiskCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double diskCommandsAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskCommandsAvg(diskCommandsAvg); + } + + @Test + public void testGetDiskFlushRequests() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskFlushRequests(); + } + + @Test + public void testSetDiskFlushRequests() throws Exception { + DiskUsageArray testSubject; + Double diskFlushRequests = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskFlushRequests(diskFlushRequests); + } + + @Test + public void testGetDiskFlushTime() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskFlushTime(); + } + + @Test + public void testSetDiskFlushTime() throws Exception { + DiskUsageArray testSubject; + Double diskFlushTime = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskFlushTime(diskFlushTime); + } + + @Test + public void testGetDiskIdentifier() throws Exception { + DiskUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskIdentifier(); + } + + @Test + public void testSetDiskIdentifier() throws Exception { + DiskUsageArray testSubject; + String diskIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskIdentifier(diskIdentifier); + } + + @Test + public void testGetDiskIoTimeAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskIoTimeAvg(); + } + + @Test + public void testSetDiskIoTimeAvg() throws Exception { + DiskUsageArray testSubject; + Double diskIoTimeAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskIoTimeAvg(diskIoTimeAvg); + } + + @Test + public void testGetDiskIoTimeLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskIoTimeLast(); + } + + @Test + public void testSetDiskIoTimeLast() throws Exception { + DiskUsageArray testSubject; + Double diskIoTimeLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskIoTimeLast(diskIoTimeLast); + } + + @Test + public void testGetDiskIoTimeMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskIoTimeMax(); + } + + @Test + public void testSetDiskIoTimeMax() throws Exception { + DiskUsageArray testSubject; + Double diskIoTimeMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskIoTimeMax(diskIoTimeMax); + } + + @Test + public void testGetDiskIoTimeMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskIoTimeMin(); + } + + @Test + public void testSetDiskIoTimeMin() throws Exception { + DiskUsageArray testSubject; + Double diskIoTimeMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskIoTimeMin(diskIoTimeMin); + } + + @Test + public void testGetDiskMergedReadAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedReadAvg(); + } + + @Test + public void testSetDiskMergedReadAvg() throws Exception { + DiskUsageArray testSubject; + Double diskMergedReadAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedReadAvg(diskMergedReadAvg); + } + + @Test + public void testGetDiskMergedReadLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedReadLast(); + } + + @Test + public void testSetDiskMergedReadLast() throws Exception { + DiskUsageArray testSubject; + Double diskMergedReadLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedReadLast(diskMergedReadLast); + } + + @Test + public void testGetDiskMergedReadMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedReadMax(); + } + + @Test + public void testSetDiskMergedReadMax() throws Exception { + DiskUsageArray testSubject; + Double diskMergedReadMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedReadMax(diskMergedReadMax); + } + + @Test + public void testGetDiskMergedReadMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedReadMin(); + } + + @Test + public void testSetDiskMergedReadMin() throws Exception { + DiskUsageArray testSubject; + Double diskMergedReadMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedReadMin(diskMergedReadMin); + } + + @Test + public void testGetDiskMergedWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedWriteAvg(); + } + + @Test + public void testSetDiskMergedWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double diskMergedWriteAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedWriteAvg(diskMergedWriteAvg); + } + + @Test + public void testGetDiskMergedWriteLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedWriteLast(); + } + + @Test + public void testSetDiskMergedWriteLast() throws Exception { + DiskUsageArray testSubject; + Double diskMergedWriteLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedWriteLast(diskMergedWriteLast); + } + + @Test + public void testGetDiskMergedWriteMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedWriteMax(); + } + + @Test + public void testSetDiskMergedWriteMax() throws Exception { + DiskUsageArray testSubject; + Double diskMergedWriteMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedWriteMax(diskMergedWriteMax); + } + + @Test + public void testGetDiskMergedWriteMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedWriteMin(); + } + + @Test + public void testSetDiskMergedWriteMin() throws Exception { + DiskUsageArray testSubject; + Double diskMergedWriteMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedWriteMin(diskMergedWriteMin); + } + + @Test + public void testGetDiskOctetsReadAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsReadAvg(); + } + + @Test + public void testSetDiskOctetsReadAvg() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsReadAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsReadAvg(diskOctetsReadAvg); + } + + @Test + public void testGetDiskOctetsReadLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsReadLast(); + } + + @Test + public void testSetDiskOctetsReadLast() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsReadLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsReadLast(diskOctetsReadLast); + } + + @Test + public void testGetDiskOctetsReadMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsReadMax(); + } + + @Test + public void testSetDiskOctetsReadMax() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsReadMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsReadMax(diskOctetsReadMax); + } + + @Test + public void testGetDiskOctetsReadMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsReadMin(); + } + + @Test + public void testSetDiskOctetsReadMin() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsReadMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsReadMin(diskOctetsReadMin); + } + + @Test + public void testGetDiskOctetsWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsWriteAvg(); + } + + @Test + public void testSetDiskOctetsWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsWriteAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsWriteAvg(diskOctetsWriteAvg); + } + + @Test + public void testGetDiskOctetsWriteLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsWriteLast(); + } + + @Test + public void testSetDiskOctetsWriteLast() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsWriteLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsWriteLast(diskOctetsWriteLast); + } + + @Test + public void testGetDiskOctetsWriteMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsWriteMax(); + } + + @Test + public void testSetDiskOctetsWriteMax() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsWriteMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsWriteMax(diskOctetsWriteMax); + } + + @Test + public void testGetDiskOctetsWriteMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsWriteMin(); + } + + @Test + public void testSetDiskOctetsWriteMin() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsWriteMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsWriteMin(diskOctetsWriteMin); + } + + @Test + public void testGetDiskOpsReadAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsReadAvg(); + } + + @Test + public void testSetDiskOpsReadAvg() throws Exception { + DiskUsageArray testSubject; + Double diskOpsReadAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsReadAvg(diskOpsReadAvg); + } + + @Test + public void testGetDiskOpsReadLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsReadLast(); + } + + @Test + public void testSetDiskOpsReadLast() throws Exception { + DiskUsageArray testSubject; + Double diskOpsReadLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsReadLast(diskOpsReadLast); + } + + @Test + public void testGetDiskOpsReadMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsReadMax(); + } + + @Test + public void testSetDiskOpsReadMax() throws Exception { + DiskUsageArray testSubject; + Double diskOpsReadMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsReadMax(diskOpsReadMax); + } + + @Test + public void testGetDiskOpsReadMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsReadMin(); + } + + @Test + public void testSetDiskOpsReadMin() throws Exception { + DiskUsageArray testSubject; + Double diskOpsReadMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsReadMin(diskOpsReadMin); + } + + @Test + public void testGetDiskOpsWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsWriteAvg(); + } + + @Test + public void testSetDiskOpsWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double diskOpsWriteAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsWriteAvg(diskOpsWriteAvg); + } + + @Test + public void testGetDiskOpsWriteLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsWriteLast(); + } + + @Test + public void testSetDiskOpsWriteLast() throws Exception { + DiskUsageArray testSubject; + Double diskOpsWriteLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsWriteLast(diskOpsWriteLast); + } + + @Test + public void testGetDiskOpsWriteMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsWriteMax(); + } + + @Test + public void testSetDiskOpsWriteMax() throws Exception { + DiskUsageArray testSubject; + Double diskOpsWriteMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsWriteMax(diskOpsWriteMax); + } + + @Test + public void testGetDiskOpsWriteMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsWriteMin(); + } + + @Test + public void testSetDiskOpsWriteMin() throws Exception { + DiskUsageArray testSubject; + Double diskOpsWriteMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsWriteMin(diskOpsWriteMin); + } + + @Test + public void testGetDiskPendingOperationsAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskPendingOperationsAvg(); + } + + @Test + public void testSetDiskPendingOperationsAvg() throws Exception { + DiskUsageArray testSubject; + Double diskPendingOperationsAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskPendingOperationsAvg(diskPendingOperationsAvg); + } + + @Test + public void testGetDiskPendingOperationsLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskPendingOperationsLast(); + } + + @Test + public void testSetDiskPendingOperationsLast() throws Exception { + DiskUsageArray testSubject; + Double diskPendingOperationsLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskPendingOperationsLast(diskPendingOperationsLast); + } + + @Test + public void testGetDiskPendingOperationsMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskPendingOperationsMax(); + } + + @Test + public void testSetDiskPendingOperationsMax() throws Exception { + DiskUsageArray testSubject; + Double diskPendingOperationsMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskPendingOperationsMax(diskPendingOperationsMax); + } + + @Test + public void testGetDiskPendingOperationsMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskPendingOperationsMin(); + } + + @Test + public void testSetDiskPendingOperationsMin() throws Exception { + DiskUsageArray testSubject; + Double diskPendingOperationsMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskPendingOperationsMin(diskPendingOperationsMin); + } + + @Test + public void testGetDiskReadCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskReadCommandsAvg(); + } + + @Test + public void testSetDiskReadCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double diskReadCommandsAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskReadCommandsAvg(diskReadCommandsAvg); + } + + @Test + public void testGetDiskTime() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTime(); + } + + @Test + public void testSetDiskTime() throws Exception { + DiskUsageArray testSubject; + Double diskTime = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTime(diskTime); + } + + @Test + public void testGetDiskTimeReadAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeReadAvg(); + } + + @Test + public void testSetDiskTimeReadAvg() throws Exception { + DiskUsageArray testSubject; + Double diskTimeReadAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeReadAvg(diskTimeReadAvg); + } + + @Test + public void testGetDiskTimeReadLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeReadLast(); + } + + @Test + public void testSetDiskTimeReadLast() throws Exception { + DiskUsageArray testSubject; + Double diskTimeReadLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeReadLast(diskTimeReadLast); + } + + @Test + public void testGetDiskTimeReadMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeReadMax(); + } + + @Test + public void testSetDiskTimeReadMax() throws Exception { + DiskUsageArray testSubject; + Double diskTimeReadMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeReadMax(diskTimeReadMax); + } + + @Test + public void testGetDiskTimeReadMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeReadMin(); + } + + @Test + public void testSetDiskTimeReadMin() throws Exception { + DiskUsageArray testSubject; + Double diskTimeReadMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeReadMin(diskTimeReadMin); + } + + @Test + public void testGetDiskTimeWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeWriteAvg(); + } + + @Test + public void testSetDiskTimeWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double diskTimeWriteAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeWriteAvg(diskTimeWriteAvg); + } + + @Test + public void testGetDiskTimeWriteLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeWriteLast(); + } + + @Test + public void testSetDiskTimeWriteLast() throws Exception { + DiskUsageArray testSubject; + Double diskTimeWriteLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeWriteLast(diskTimeWriteLast); + } + + @Test + public void testGetDiskTimeWriteMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeWriteMax(); + } + + @Test + public void testSetDiskTimeWriteMax() throws Exception { + DiskUsageArray testSubject; + Double diskTimeWriteMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeWriteMax(diskTimeWriteMax); + } + + @Test + public void testGetDiskTimeWriteMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeWriteMin(); + } + + @Test + public void testSetDiskTimeWriteMin() throws Exception { + DiskUsageArray testSubject; + Double diskTimeWriteMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeWriteMin(diskTimeWriteMin); + } + + @Test + public void testGetDiskTotalReadLatencyAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTotalReadLatencyAvg(); + } + + @Test + public void testSetDiskTotalReadLatencyAvg() throws Exception { + DiskUsageArray testSubject; + Double diskTotalReadLatencyAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTotalReadLatencyAvg(diskTotalReadLatencyAvg); + } + + @Test + public void testGetDiskTotalWriteLatencyAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTotalWriteLatencyAvg(); + } + + @Test + public void testSetDiskTotalWriteLatencyAvg() throws Exception { + DiskUsageArray testSubject; + Double diskTotalWriteLatencyAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTotalWriteLatencyAvg(diskTotalWriteLatencyAvg); + } + + @Test + public void testGetDiskWeightedIoTimeAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskWeightedIoTimeAvg(); + } + + @Test + public void testSetDiskWeightedIoTimeAvg() throws Exception { + DiskUsageArray testSubject; + Double diskWeightedIoTimeAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskWeightedIoTimeAvg(diskWeightedIoTimeAvg); + } + + @Test + public void testGetDiskWeightedIoTimeLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskWeightedIoTimeLast(); + } + + @Test + public void testSetDiskWeightedIoTimeLast() throws Exception { + DiskUsageArray testSubject; + Double diskWeightedIoTimeLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskWeightedIoTimeLast(diskWeightedIoTimeLast); + } + + @Test + public void testGetDiskWeightedIoTimeMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskWeightedIoTimeMax(); + } + + @Test + public void testSetDiskWeightedIoTimeMax() throws Exception { + DiskUsageArray testSubject; + Double diskWeightedIoTimeMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskWeightedIoTimeMax(diskWeightedIoTimeMax); + } + + @Test + public void testGetDiskWeightedIoTimeMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskWeightedIoTimeMin(); + } + + @Test + public void testSetDiskWeightedIoTimeMin() throws Exception { + DiskUsageArray testSubject; + Double diskWeightedIoTimeMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskWeightedIoTimeMin(diskWeightedIoTimeMin); + } + + @Test + public void testGetDiskWriteCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskWriteCommandsAvg(); + } + + @Test + public void testSetDiskWriteCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double diskWriteCommandsAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskWriteCommandsAvg(diskWriteCommandsAvg); + } + + @Test + public void testToString() throws Exception { + DiskUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + DiskUsageArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + DiskUsageArray testSubject; + DiskUsageArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummariesTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummariesTest.java new file mode 100644 index 0000000..62109eb --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummariesTest.java @@ -0,0 +1,651 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.EndOfCallVqmSummaries; +import org.onap.dcaegen2.ves.domain.ves70.EndOfCallVqmSummaries.EndpointDescription; + + +public class EndOfCallVqmSummariesTest { + + private EndOfCallVqmSummaries createTestSubject() { + return new EndOfCallVqmSummaries(); + } + + @Test + public void testGetAdjacencyName() throws Exception { + EndOfCallVqmSummaries testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdjacencyName(); + } + + @Test + public void testSetAdjacencyName() throws Exception { + EndOfCallVqmSummaries testSubject; + String adjacencyName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAdjacencyName(adjacencyName); + } + + @Test + public void testGetEndpointAverageJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointAverageJitter(); + } + + @Test + public void testSetEndpointAverageJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointAverageJitter = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointAverageJitter(endpointAverageJitter); + } + + @Test + public void testGetEndpointDescription() throws Exception { + EndOfCallVqmSummaries testSubject; + EndpointDescription result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointDescription(); + } + + @Test + public void testSetEndpointDescription() throws Exception { + EndOfCallVqmSummaries testSubject; + EndpointDescription endpointDescription = EndpointDescription.CALLEE; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointDescription(endpointDescription); + } + + @Test + public void testGetEndpointMaxJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointMaxJitter(); + } + + @Test + public void testSetEndpointMaxJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointMaxJitter = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointMaxJitter(endpointMaxJitter); + } + + @Test + public void testGetEndpointRtpOctetsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpOctetsDiscarded(); + } + + @Test + public void testSetEndpointRtpOctetsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpOctetsDiscarded = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpOctetsDiscarded(endpointRtpOctetsDiscarded); + } + + @Test + public void testGetEndpointRtpOctetsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpOctetsLost(); + } + + @Test + public void testSetEndpointRtpOctetsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpOctetsLost = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpOctetsLost(endpointRtpOctetsLost); + } + + @Test + public void testGetEndpointRtpOctetsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpOctetsReceived(); + } + + @Test + public void testSetEndpointRtpOctetsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpOctetsReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpOctetsReceived(endpointRtpOctetsReceived); + } + + @Test + public void testGetEndpointRtpOctetsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpOctetsSent(); + } + + @Test + public void testSetEndpointRtpOctetsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpOctetsSent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpOctetsSent(endpointRtpOctetsSent); + } + + @Test + public void testGetEndpointRtpPacketsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpPacketsDiscarded(); + } + + @Test + public void testSetEndpointRtpPacketsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpPacketsDiscarded = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpPacketsDiscarded(endpointRtpPacketsDiscarded); + } + + @Test + public void testGetEndpointRtpPacketsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpPacketsLost(); + } + + @Test + public void testSetEndpointRtpPacketsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpPacketsLost = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpPacketsLost(endpointRtpPacketsLost); + } + + @Test + public void testGetEndpointRtpPacketsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpPacketsReceived(); + } + + @Test + public void testSetEndpointRtpPacketsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpPacketsReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpPacketsReceived(endpointRtpPacketsReceived); + } + + @Test + public void testGetEndpointRtpPacketsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpPacketsSent(); + } + + @Test + public void testSetEndpointRtpPacketsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpPacketsSent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpPacketsSent(endpointRtpPacketsSent); + } + + @Test + public void testGetLocalAverageJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalAverageJitter(); + } + + @Test + public void testSetLocalAverageJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localAverageJitter = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalAverageJitter(localAverageJitter); + } + + @Test + public void testGetLocalAverageJitterBufferDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalAverageJitterBufferDelay(); + } + + @Test + public void testSetLocalAverageJitterBufferDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localAverageJitterBufferDelay = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalAverageJitterBufferDelay(localAverageJitterBufferDelay); + } + + @Test + public void testGetLocalMaxJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalMaxJitter(); + } + + @Test + public void testSetLocalMaxJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localMaxJitter = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalMaxJitter(localMaxJitter); + } + + @Test + public void testGetLocalMaxJitterBufferDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalMaxJitterBufferDelay(); + } + + @Test + public void testSetLocalMaxJitterBufferDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localMaxJitterBufferDelay = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalMaxJitterBufferDelay(localMaxJitterBufferDelay); + } + + @Test + public void testGetLocalRtpOctetsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpOctetsDiscarded(); + } + + @Test + public void testSetLocalRtpOctetsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpOctetsDiscarded = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpOctetsDiscarded(localRtpOctetsDiscarded); + } + + @Test + public void testGetLocalRtpOctetsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpOctetsLost(); + } + + @Test + public void testSetLocalRtpOctetsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpOctetsLost = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpOctetsLost(localRtpOctetsLost); + } + + @Test + public void testGetLocalRtpOctetsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpOctetsReceived(); + } + + @Test + public void testSetLocalRtpOctetsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpOctetsReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpOctetsReceived(localRtpOctetsReceived); + } + + @Test + public void testGetLocalRtpOctetsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpOctetsSent(); + } + + @Test + public void testSetLocalRtpOctetsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpOctetsSent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpOctetsSent(localRtpOctetsSent); + } + + @Test + public void testGetLocalRtpPacketsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpPacketsDiscarded(); + } + + @Test + public void testSetLocalRtpPacketsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpPacketsDiscarded = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpPacketsDiscarded(localRtpPacketsDiscarded); + } + + @Test + public void testGetLocalRtpPacketsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpPacketsLost(); + } + + @Test + public void testSetLocalRtpPacketsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpPacketsLost = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpPacketsLost(localRtpPacketsLost); + } + + @Test + public void testGetLocalRtpPacketsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpPacketsReceived(); + } + + @Test + public void testSetLocalRtpPacketsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpPacketsReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpPacketsReceived(localRtpPacketsReceived); + } + + @Test + public void testGetLocalRtpPacketsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpPacketsSent(); + } + + @Test + public void testSetLocalRtpPacketsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpPacketsSent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpPacketsSent(localRtpPacketsSent); + } + + @Test + public void testGetMosCqe() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMosCqe(); + } + + @Test + public void testSetMosCqe() throws Exception { + EndOfCallVqmSummaries testSubject; + Double mosCqe = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMosCqe(mosCqe); + } + + @Test + public void testGetOneWayDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOneWayDelay(); + } + + @Test + public void testSetOneWayDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double oneWayDelay = null; + + // default test + testSubject = createTestSubject(); + testSubject.setOneWayDelay(oneWayDelay); + } + + @Test + public void testGetPacketLossPercent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPacketLossPercent(); + } + + @Test + public void testSetPacketLossPercent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double packetLossPercent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPacketLossPercent(packetLossPercent); + } + + @Test + public void testGetRFactor() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRFactor(); + } + + @Test + public void testSetRFactor() throws Exception { + EndOfCallVqmSummaries testSubject; + Double value = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRFactor(value); + } + + @Test + public void testGetRoundTripDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRoundTripDelay(); + } + + @Test + public void testSetRoundTripDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double roundTripDelay = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRoundTripDelay(roundTripDelay); + } + + @Test + public void testToString() throws Exception { + EndOfCallVqmSummaries testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + EndOfCallVqmSummaries testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + EndOfCallVqmSummaries testSubject; + EndOfCallVqmSummaries testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EventTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EventTest.java new file mode 100644 index 0000000..4ad45aa --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EventTest.java @@ -0,0 +1,343 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader; +import org.onap.dcaegen2.ves.domain.ves70.Event; +import org.onap.dcaegen2.ves.domain.ves70.FaultFields; +import org.onap.dcaegen2.ves.domain.ves70.HeartbeatFields; +import org.onap.dcaegen2.ves.domain.ves70.MeasurementFields; +import org.onap.dcaegen2.ves.domain.ves70.MobileFlowFields; +import org.onap.dcaegen2.ves.domain.ves70.NotificationFields; +import org.onap.dcaegen2.ves.domain.ves70.OtherFields; +import org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields; +import org.onap.dcaegen2.ves.domain.ves70.SipSignalingFields; +import org.onap.dcaegen2.ves.domain.ves70.StateChangeFields; +import org.onap.dcaegen2.ves.domain.ves70.SyslogFields; +import org.onap.dcaegen2.ves.domain.ves70.ThresholdCrossingAlertFields; +import org.onap.dcaegen2.ves.domain.ves70.VoiceQualityFields; + + +public class EventTest { + + private Event createTestSubject() { + return new Event(); + } + + @Test + public void testGetCommonEventHeader() throws Exception { + Event testSubject; + CommonEventHeader result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCommonEventHeader(); + } + + @Test + public void testSetCommonEventHeader() throws Exception { + Event testSubject; + CommonEventHeader commonEventHeader = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCommonEventHeader(commonEventHeader); + } + + @Test + public void testGetFaultFields() throws Exception { + Event testSubject; + FaultFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFaultFields(); + } + + @Test + public void testSetFaultFields() throws Exception { + Event testSubject; + FaultFields faultFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFaultFields(faultFields); + } + + @Test + public void testGetHeartbeatFields() throws Exception { + Event testSubject; + HeartbeatFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHeartbeatFields(); + } + + @Test + public void testSetHeartbeatFields() throws Exception { + Event testSubject; + HeartbeatFields heartbeatFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHeartbeatFields(heartbeatFields); + } + + @Test + public void testGetMeasurementFields() throws Exception { + Event testSubject; + MeasurementFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMeasurementFields(); + } + + @Test + public void testSetMeasurementFields() throws Exception { + Event testSubject; + MeasurementFields measurementFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMeasurementFields(measurementFields); + } + + @Test + public void testGetMobileFlowFields() throws Exception { + Event testSubject; + MobileFlowFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMobileFlowFields(); + } + + @Test + public void testSetMobileFlowFields() throws Exception { + Event testSubject; + MobileFlowFields mobileFlowFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMobileFlowFields(mobileFlowFields); + } + + @Test + public void testGetNotificationFields() throws Exception { + Event testSubject; + NotificationFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNotificationFields(); + } + + @Test + public void testSetNotificationFields() throws Exception { + Event testSubject; + NotificationFields notificationFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNotificationFields(notificationFields); + } + + @Test + public void testGetOtherFields() throws Exception { + Event testSubject; + OtherFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOtherFields(); + } + + @Test + public void testSetOtherFields() throws Exception { + Event testSubject; + OtherFields otherFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setOtherFields(otherFields); + } + + @Test + public void testGetPnfRegistrationFields() throws Exception { + Event testSubject; + PnfRegistrationFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPnfRegistrationFields(); + } + + @Test + public void testSetPnfRegistrationFields() throws Exception { + Event testSubject; + PnfRegistrationFields pnfRegistrationFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPnfRegistrationFields(pnfRegistrationFields); + } + + @Test + public void testGetSipSignalingFields() throws Exception { + Event testSubject; + SipSignalingFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSipSignalingFields(); + } + + @Test + public void testSetSipSignalingFields() throws Exception { + Event testSubject; + SipSignalingFields sipSignalingFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSipSignalingFields(sipSignalingFields); + } + + @Test + public void testGetStateChangeFields() throws Exception { + Event testSubject; + StateChangeFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStateChangeFields(); + } + + @Test + public void testSetStateChangeFields() throws Exception { + Event testSubject; + StateChangeFields stateChangeFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setStateChangeFields(stateChangeFields); + } + + @Test + public void testGetSyslogFields() throws Exception { + Event testSubject; + SyslogFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogFields(); + } + + @Test + public void testSetSyslogFields() throws Exception { + Event testSubject; + SyslogFields syslogFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogFields(syslogFields); + } + + @Test + public void testGetThresholdCrossingAlertFields() throws Exception { + Event testSubject; + ThresholdCrossingAlertFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getThresholdCrossingAlertFields(); + } + + @Test + public void testSetThresholdCrossingAlertFields() throws Exception { + Event testSubject; + ThresholdCrossingAlertFields thresholdCrossingAlertFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setThresholdCrossingAlertFields(thresholdCrossingAlertFields); + } + + @Test + public void testGetVoiceQualityFields() throws Exception { + Event testSubject; + VoiceQualityFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVoiceQualityFields(); + } + + @Test + public void testSetVoiceQualityFields() throws Exception { + Event testSubject; + VoiceQualityFields voiceQualityFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVoiceQualityFields(voiceQualityFields); + } + + @Test + public void testToString() throws Exception { + Event testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + Event testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + Event testSubject; + Event testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FaultFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FaultFieldsTest.java new file mode 100644 index 0000000..80cbd57 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FaultFieldsTest.java @@ -0,0 +1,253 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.FaultFields; +import org.onap.dcaegen2.ves.domain.ves70.FaultFields.FaultFieldsVersion; +import org.onap.dcaegen2.ves.domain.ves70.FaultFields.VfStatus; + + +public class FaultFieldsTest { + + private FaultFields createTestSubject() { + return new FaultFields(); + } + + @Test + public void testGetAlarmAdditionalInformation() throws Exception { + FaultFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlarmAdditionalInformation(); + } + + @Test + public void testSetAlarmAdditionalInformation() throws Exception { + FaultFields testSubject; + AlarmAdditionalInformation alarmAdditionalInformation = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAlarmAdditionalInformation(alarmAdditionalInformation); + } + + @Test + public void testGetAlarmCondition() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlarmCondition(); + } + + @Test + public void testSetAlarmCondition() throws Exception { + FaultFields testSubject; + String alarmCondition = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAlarmCondition(alarmCondition); + } + + @Test + public void testGetAlarmInterfaceA() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlarmInterfaceA(); + } + + @Test + public void testSetAlarmInterfaceA() throws Exception { + FaultFields testSubject; + String alarmInterfaceA = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAlarmInterfaceA(alarmInterfaceA); + } + + @Test + public void testGetEventCategory() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventCategory(); + } + + @Test + public void testSetEventCategory() throws Exception { + FaultFields testSubject; + String eventCategory = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventCategory(eventCategory); + } + + @Test + public void testGetEventSeverity() throws Exception { + FaultFields testSubject; + FaultFields.EventSeverity result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventSeverity(); + } + + @Test + public void testSetEventSeverity() throws Exception { + FaultFields testSubject; + FaultFields.EventSeverity eventSeverity = FaultFields.EventSeverity.CRITICAL; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSeverity(eventSeverity); + } + + @Test + public void testGetEventSourceType() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventSourceType(); + } + + @Test + public void testSetEventSourceType() throws Exception { + FaultFields testSubject; + String eventSourceType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSourceType(eventSourceType); + } + + @Test + public void testGetFaultFieldsVersion() throws Exception { + FaultFields testSubject; + FaultFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFaultFieldsVersion(); + } + + @Test + public void testSetFaultFieldsVersion() throws Exception { + FaultFields testSubject; + FaultFieldsVersion faultFieldsVersion = FaultFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setFaultFieldsVersion(faultFieldsVersion); + } + + @Test + public void testGetSpecificProblem() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSpecificProblem(); + } + + @Test + public void testSetSpecificProblem() throws Exception { + FaultFields testSubject; + String specificProblem = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSpecificProblem(specificProblem); + } + + @Test + public void testGetVfStatus() throws Exception { + FaultFields testSubject; + VfStatus result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVfStatus(); + } + + @Test + public void testSetVfStatus() throws Exception { + FaultFields testSubject; + VfStatus vfStatus = VfStatus.ACTIVE; + + // default test + testSubject = createTestSubject(); + testSubject.setVfStatus(vfStatus); + } + + @Test + public void testToString() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + FaultFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + FaultFields testSubject; + FaultFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArrayTest.java new file mode 100644 index 0000000..4bb1a1a --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArrayTest.java @@ -0,0 +1,210 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.FilesystemUsageArray; + + +public class FilesystemUsageArrayTest { + + private FilesystemUsageArray createTestSubject() { + return new FilesystemUsageArray(); + } + + @Test + public void testGetBlockConfigured() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBlockConfigured(); + } + + @Test + public void testSetBlockConfigured() throws Exception { + FilesystemUsageArray testSubject; + Double blockConfigured = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBlockConfigured(blockConfigured); + } + + @Test + public void testGetBlockIops() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBlockIops(); + } + + @Test + public void testSetBlockIops() throws Exception { + FilesystemUsageArray testSubject; + Double blockIops = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBlockIops(blockIops); + } + + @Test + public void testGetBlockUsed() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBlockUsed(); + } + + @Test + public void testSetBlockUsed() throws Exception { + FilesystemUsageArray testSubject; + Double blockUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBlockUsed(blockUsed); + } + + @Test + public void testGetEphemeralConfigured() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEphemeralConfigured(); + } + + @Test + public void testSetEphemeralConfigured() throws Exception { + FilesystemUsageArray testSubject; + Double ephemeralConfigured = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEphemeralConfigured(ephemeralConfigured); + } + + @Test + public void testGetEphemeralIops() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEphemeralIops(); + } + + @Test + public void testSetEphemeralIops() throws Exception { + FilesystemUsageArray testSubject; + Double ephemeralIops = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEphemeralIops(ephemeralIops); + } + + @Test + public void testGetEphemeralUsed() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEphemeralUsed(); + } + + @Test + public void testSetEphemeralUsed() throws Exception { + FilesystemUsageArray testSubject; + Double ephemeralUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEphemeralUsed(ephemeralUsed); + } + + @Test + public void testGetFilesystemName() throws Exception { + FilesystemUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFilesystemName(); + } + + @Test + public void testSetFilesystemName() throws Exception { + FilesystemUsageArray testSubject; + String filesystemName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFilesystemName(filesystemName); + } + + @Test + public void testToString() throws Exception { + FilesystemUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + FilesystemUsageArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + FilesystemUsageArray testSubject; + FilesystemUsageArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetricsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetricsTest.java new file mode 100644 index 0000000..f191748 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetricsTest.java @@ -0,0 +1,1073 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.GtpPerFlowMetrics; + + +public class GtpPerFlowMetricsTest { + + private GtpPerFlowMetrics createTestSubject() { + return new GtpPerFlowMetrics(); + } + + @Test + public void testGetAvgBitErrorRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAvgBitErrorRate(); + } + + @Test + public void testSetAvgBitErrorRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double avgBitErrorRate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAvgBitErrorRate(avgBitErrorRate); + } + + @Test + public void testGetAvgPacketDelayVariation() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAvgPacketDelayVariation(); + } + + @Test + public void testSetAvgPacketDelayVariation() throws Exception { + GtpPerFlowMetrics testSubject; + Double avgPacketDelayVariation = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAvgPacketDelayVariation(avgPacketDelayVariation); + } + + @Test + public void testGetAvgPacketLatency() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAvgPacketLatency(); + } + + @Test + public void testSetAvgPacketLatency() throws Exception { + GtpPerFlowMetrics testSubject; + Double avgPacketLatency = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAvgPacketLatency(avgPacketLatency); + } + + @Test + public void testGetAvgReceiveThroughput() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAvgReceiveThroughput(); + } + + @Test + public void testSetAvgReceiveThroughput() throws Exception { + GtpPerFlowMetrics testSubject; + Double avgReceiveThroughput = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAvgReceiveThroughput(avgReceiveThroughput); + } + + @Test + public void testGetAvgTransmitThroughput() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAvgTransmitThroughput(); + } + + @Test + public void testSetAvgTransmitThroughput() throws Exception { + GtpPerFlowMetrics testSubject; + Double avgTransmitThroughput = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAvgTransmitThroughput(avgTransmitThroughput); + } + + @Test + public void testGetDurConnectionFailedStatus() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDurConnectionFailedStatus(); + } + + @Test + public void testSetDurConnectionFailedStatus() throws Exception { + GtpPerFlowMetrics testSubject; + Double durConnectionFailedStatus = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDurConnectionFailedStatus(durConnectionFailedStatus); + } + + @Test + public void testGetDurTunnelFailedStatus() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDurTunnelFailedStatus(); + } + + @Test + public void testSetDurTunnelFailedStatus() throws Exception { + GtpPerFlowMetrics testSubject; + Double durTunnelFailedStatus = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDurTunnelFailedStatus(durTunnelFailedStatus); + } + + @Test + public void testGetFlowActivatedBy() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowActivatedBy(); + } + + @Test + public void testSetFlowActivatedBy() throws Exception { + GtpPerFlowMetrics testSubject; + String flowActivatedBy = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowActivatedBy(flowActivatedBy); + } + + @Test + public void testGetFlowActivationEpoch() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowActivationEpoch(); + } + + @Test + public void testSetFlowActivationEpoch() throws Exception { + GtpPerFlowMetrics testSubject; + Double flowActivationEpoch = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowActivationEpoch(flowActivationEpoch); + } + + @Test + public void testGetFlowActivationMicrosec() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowActivationMicrosec(); + } + + @Test + public void testSetFlowActivationMicrosec() throws Exception { + GtpPerFlowMetrics testSubject; + Double flowActivationMicrosec = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowActivationMicrosec(flowActivationMicrosec); + } + + @Test + public void testGetFlowActivationTime() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowActivationTime(); + } + + @Test + public void testSetFlowActivationTime() throws Exception { + GtpPerFlowMetrics testSubject; + String flowActivationTime = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowActivationTime(flowActivationTime); + } + + @Test + public void testGetFlowDeactivatedBy() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowDeactivatedBy(); + } + + @Test + public void testSetFlowDeactivatedBy() throws Exception { + GtpPerFlowMetrics testSubject; + String flowDeactivatedBy = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowDeactivatedBy(flowDeactivatedBy); + } + + @Test + public void testGetFlowDeactivationEpoch() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowDeactivationEpoch(); + } + + @Test + public void testSetFlowDeactivationEpoch() throws Exception { + GtpPerFlowMetrics testSubject; + Double flowDeactivationEpoch = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowDeactivationEpoch(flowDeactivationEpoch); + } + + @Test + public void testGetFlowDeactivationMicrosec() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowDeactivationMicrosec(); + } + + @Test + public void testSetFlowDeactivationMicrosec() throws Exception { + GtpPerFlowMetrics testSubject; + Double flowDeactivationMicrosec = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowDeactivationMicrosec(flowDeactivationMicrosec); + } + + @Test + public void testGetFlowDeactivationTime() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowDeactivationTime(); + } + + @Test + public void testSetFlowDeactivationTime() throws Exception { + GtpPerFlowMetrics testSubject; + String flowDeactivationTime = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowDeactivationTime(flowDeactivationTime); + } + + @Test + public void testGetFlowStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowStatus(); + } + + @Test + public void testSetFlowStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String flowStatus = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowStatus(flowStatus); + } + + @Test + public void testGetGtpConnectionStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGtpConnectionStatus(); + } + + @Test + public void testSetGtpConnectionStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String gtpConnectionStatus = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setGtpConnectionStatus(gtpConnectionStatus); + } + + @Test + public void testGetGtpTunnelStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGtpTunnelStatus(); + } + + @Test + public void testSetGtpTunnelStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String gtpTunnelStatus = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setGtpTunnelStatus(gtpTunnelStatus); + } + + @Test + public void testGetIpTosCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpTosCountList(); + } + + @Test + public void testSetIpTosCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation ipTosCountList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpTosCountList(ipTosCountList); + } + + @Test + public void testGetIpTosList() throws Exception { + GtpPerFlowMetrics testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpTosList(); + } + + @Test + public void testSetIpTosList() throws Exception { + GtpPerFlowMetrics testSubject; + List ipTosList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpTosList(ipTosList); + } + + @Test + public void testGetLargePacketRtt() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLargePacketRtt(); + } + + @Test + public void testSetLargePacketRtt() throws Exception { + GtpPerFlowMetrics testSubject; + Double largePacketRtt = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLargePacketRtt(largePacketRtt); + } + + @Test + public void testGetLargePacketThreshold() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLargePacketThreshold(); + } + + @Test + public void testSetLargePacketThreshold() throws Exception { + GtpPerFlowMetrics testSubject; + Double largePacketThreshold = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLargePacketThreshold(largePacketThreshold); + } + + @Test + public void testGetMaxPacketDelayVariation() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMaxPacketDelayVariation(); + } + + @Test + public void testSetMaxPacketDelayVariation() throws Exception { + GtpPerFlowMetrics testSubject; + Double maxPacketDelayVariation = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMaxPacketDelayVariation(maxPacketDelayVariation); + } + + @Test + public void testGetMaxReceiveBitRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMaxReceiveBitRate(); + } + + @Test + public void testSetMaxReceiveBitRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double maxReceiveBitRate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMaxReceiveBitRate(maxReceiveBitRate); + } + + @Test + public void testGetMaxTransmitBitRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMaxTransmitBitRate(); + } + + @Test + public void testSetMaxTransmitBitRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double maxTransmitBitRate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMaxTransmitBitRate(maxTransmitBitRate); + } + + @Test + public void testGetMobileQciCosCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMobileQciCosCountList(); + } + + @Test + public void testSetMobileQciCosCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation mobileQciCosCountList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMobileQciCosCountList(mobileQciCosCountList); + } + + @Test + public void testGetMobileQciCosList() throws Exception { + GtpPerFlowMetrics testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMobileQciCosList(); + } + + @Test + public void testSetMobileQciCosList() throws Exception { + GtpPerFlowMetrics testSubject; + List mobileQciCosList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMobileQciCosList(mobileQciCosList); + } + + @Test + public void testGetNumActivationFailures() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumActivationFailures(); + } + + @Test + public void testSetNumActivationFailures() throws Exception { + GtpPerFlowMetrics testSubject; + Double numActivationFailures = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumActivationFailures(numActivationFailures); + } + + @Test + public void testGetNumBitErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumBitErrors(); + } + + @Test + public void testSetNumBitErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double numBitErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumBitErrors(numBitErrors); + } + + @Test + public void testGetNumBytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumBytesReceived(); + } + + @Test + public void testSetNumBytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double numBytesReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumBytesReceived(numBytesReceived); + } + + @Test + public void testGetNumBytesTransmitted() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumBytesTransmitted(); + } + + @Test + public void testSetNumBytesTransmitted() throws Exception { + GtpPerFlowMetrics testSubject; + Double numBytesTransmitted = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumBytesTransmitted(numBytesTransmitted); + } + + @Test + public void testGetNumDroppedPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumDroppedPackets(); + } + + @Test + public void testSetNumDroppedPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double numDroppedPackets = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumDroppedPackets(numDroppedPackets); + } + + @Test + public void testGetNumGtpEchoFailures() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumGtpEchoFailures(); + } + + @Test + public void testSetNumGtpEchoFailures() throws Exception { + GtpPerFlowMetrics testSubject; + Double numGtpEchoFailures = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumGtpEchoFailures(numGtpEchoFailures); + } + + @Test + public void testGetNumGtpTunnelErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumGtpTunnelErrors(); + } + + @Test + public void testSetNumGtpTunnelErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double numGtpTunnelErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumGtpTunnelErrors(numGtpTunnelErrors); + } + + @Test + public void testGetNumHttpErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumHttpErrors(); + } + + @Test + public void testSetNumHttpErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double numHttpErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumHttpErrors(numHttpErrors); + } + + @Test + public void testGetNumL7BytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumL7BytesReceived(); + } + + @Test + public void testSetNumL7BytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double numL7BytesReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumL7BytesReceived(numL7BytesReceived); + } + + @Test + public void testGetNumL7BytesTransmitted() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumL7BytesTransmitted(); + } + + @Test + public void testSetNumL7BytesTransmitted() throws Exception { + GtpPerFlowMetrics testSubject; + Double numL7BytesTransmitted = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumL7BytesTransmitted(numL7BytesTransmitted); + } + + @Test + public void testGetNumLostPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumLostPackets(); + } + + @Test + public void testSetNumLostPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double numLostPackets = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumLostPackets(numLostPackets); + } + + @Test + public void testGetNumOutOfOrderPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumOutOfOrderPackets(); + } + + @Test + public void testSetNumOutOfOrderPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double numOutOfOrderPackets = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumOutOfOrderPackets(numOutOfOrderPackets); + } + + @Test + public void testGetNumPacketErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumPacketErrors(); + } + + @Test + public void testSetNumPacketErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double numPacketErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumPacketErrors(numPacketErrors); + } + + @Test + public void testGetNumPacketsReceivedExclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumPacketsReceivedExclRetrans(); + } + + @Test + public void testSetNumPacketsReceivedExclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double numPacketsReceivedExclRetrans = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumPacketsReceivedExclRetrans(numPacketsReceivedExclRetrans); + } + + @Test + public void testGetNumPacketsReceivedInclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumPacketsReceivedInclRetrans(); + } + + @Test + public void testSetNumPacketsReceivedInclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double numPacketsReceivedInclRetrans = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumPacketsReceivedInclRetrans(numPacketsReceivedInclRetrans); + } + + @Test + public void testGetNumPacketsTransmittedInclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumPacketsTransmittedInclRetrans(); + } + + @Test + public void testSetNumPacketsTransmittedInclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double numPacketsTransmittedInclRetrans = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumPacketsTransmittedInclRetrans(numPacketsTransmittedInclRetrans); + } + + @Test + public void testGetNumRetries() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumRetries(); + } + + @Test + public void testSetNumRetries() throws Exception { + GtpPerFlowMetrics testSubject; + Double numRetries = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumRetries(numRetries); + } + + @Test + public void testGetNumTimeouts() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumTimeouts(); + } + + @Test + public void testSetNumTimeouts() throws Exception { + GtpPerFlowMetrics testSubject; + Double numTimeouts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumTimeouts(numTimeouts); + } + + @Test + public void testGetNumTunneledL7BytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumTunneledL7BytesReceived(); + } + + @Test + public void testSetNumTunneledL7BytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double numTunneledL7BytesReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumTunneledL7BytesReceived(numTunneledL7BytesReceived); + } + + @Test + public void testGetRoundTripTime() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRoundTripTime(); + } + + @Test + public void testSetRoundTripTime() throws Exception { + GtpPerFlowMetrics testSubject; + Double roundTripTime = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRoundTripTime(roundTripTime); + } + + @Test + public void testGetTcpFlagCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTcpFlagCountList(); + } + + @Test + public void testSetTcpFlagCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation tcpFlagCountList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTcpFlagCountList(tcpFlagCountList); + } + + @Test + public void testGetTcpFlagList() throws Exception { + GtpPerFlowMetrics testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTcpFlagList(); + } + + @Test + public void testSetTcpFlagList() throws Exception { + GtpPerFlowMetrics testSubject; + List tcpFlagList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTcpFlagList(tcpFlagList); + } + + @Test + public void testGetTimeToFirstByte() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTimeToFirstByte(); + } + + @Test + public void testSetTimeToFirstByte() throws Exception { + GtpPerFlowMetrics testSubject; + Double timeToFirstByte = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTimeToFirstByte(timeToFirstByte); + } + + @Test + public void testToString() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + GtpPerFlowMetrics testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + GtpPerFlowMetrics testSubject; + GtpPerFlowMetrics testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFieldsTest.java new file mode 100644 index 0000000..777fd91 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFieldsTest.java @@ -0,0 +1,132 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.HeartbeatFields; +import org.onap.dcaegen2.ves.domain.ves70.HeartbeatFields.HeartbeatFieldsVersion; + + +public class HeartbeatFieldsTest { + + private HeartbeatFields createTestSubject() { + return new HeartbeatFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + HeartbeatFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + HeartbeatFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetHeartbeatFieldsVersion() throws Exception { + HeartbeatFields testSubject; + HeartbeatFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHeartbeatFieldsVersion(); + } + + @Test + public void testSetHeartbeatFieldsVersion() throws Exception { + HeartbeatFields testSubject; + HeartbeatFieldsVersion heartbeatFieldsVersion = HeartbeatFieldsVersion._3_0; + + // default test + testSubject = createTestSubject(); + testSubject.setHeartbeatFieldsVersion(heartbeatFieldsVersion); + } + + @Test + public void testGetHeartbeatInterval() throws Exception { + HeartbeatFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHeartbeatInterval(); + } + + @Test + public void testSetHeartbeatInterval() throws Exception { + HeartbeatFields testSubject; + Integer heartbeatInterval = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setHeartbeatInterval(heartbeatInterval); + } + + @Test + public void testToString() throws Exception { + HeartbeatFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + HeartbeatFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + HeartbeatFields testSubject; + HeartbeatFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArrayTest.java new file mode 100644 index 0000000..2381a1b --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArrayTest.java @@ -0,0 +1,211 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.HugePagesArray; + + +public class HugePagesArrayTest { + + private HugePagesArray createTestSubject() { + return new HugePagesArray(); + } + + @Test + public void testGetBytesFree() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBytesFree(); + } + + @Test + public void testSetBytesFree() throws Exception { + HugePagesArray testSubject; + Double bytesFree = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBytesFree(bytesFree); + } + + @Test + public void testGetBytesUsed() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBytesUsed(); + } + + @Test + public void testSetBytesUsed() throws Exception { + HugePagesArray testSubject; + Double bytesUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBytesUsed(bytesUsed); + } + + @Test + public void testGetHugePagesIdentifier() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHugePagesIdentifier(); + } + + @Test + public void testSetHugePagesIdentifier() throws Exception { + HugePagesArray testSubject; + Double hugePagesIdentifier = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHugePagesIdentifier(hugePagesIdentifier); + } + + @Test + public void testGetPercentFree() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPercentFree(); + } + + @Test + public void testSetPercentFree() throws Exception { + HugePagesArray testSubject; + Double percentFree = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPercentFree(percentFree); + } + + @Test + public void testGetPercentUsed() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPercentUsed(); + } + + @Test + public void testSetPercentUsed() throws Exception { + HugePagesArray testSubject; + Double percentUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPercentUsed(percentUsed); + } + + @Test + public void testGetVmPageNumberFree() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVmPageNumberFree(); + } + + @Test + public void testSetVmPageNumberFree() throws Exception { + HugePagesArray testSubject; + Double vmPageNumberFree = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVmPageNumberFree(vmPageNumberFree); + } + + @Test + public void testGetVmPageNumberUsed() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVmPageNumberUsed(); + } + + @Test + public void testSetVmPageNumberUsed() throws Exception { + HugePagesArray testSubject; + Double vmPageNumberUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVmPageNumberUsed(vmPageNumberUsed); + } + + @Test + public void testToString() throws Exception { + HugePagesArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + HugePagesArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + + HugePagesArray testSubject; + HugePagesArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFieldsTest.java new file mode 100644 index 0000000..041d068 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFieldsTest.java @@ -0,0 +1,93 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.Map; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.InternalHeaderFields; + + +public class InternalHeaderFieldsTest { + + private InternalHeaderFields createTestSubject() { + return new InternalHeaderFields(); + } + + @Test + public void testToString() throws Exception { + InternalHeaderFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testGetAdditionalProperties() throws Exception { + InternalHeaderFields testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalProperties(); + } + + @Test + public void testSetAdditionalProperty() throws Exception { + InternalHeaderFields testSubject; + String name = ""; + Object value = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalProperty(name, value); + } + + @Test + public void testHashCode() throws Exception { + InternalHeaderFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + InternalHeaderFields testSubject; + InternalHeaderFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArrayTest.java new file mode 100644 index 0000000..5ecd58a --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBaseboardTemperatureArray; + + +public class IpmiBaseboardTemperatureArrayTest { + + private IpmiBaseboardTemperatureArray createTestSubject() { + return new IpmiBaseboardTemperatureArray(); + } + + @Test + public void testGetBaseboardTemperatureIdentifier() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBaseboardTemperatureIdentifier(); + } + + @Test + public void testSetBaseboardTemperatureIdentifier() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + String baseboardTemperatureIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setBaseboardTemperatureIdentifier(baseboardTemperatureIdentifier); + } + + @Test + public void testGetBaseboardTemperature() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBaseboardTemperature(); + } + + @Test + public void testSetBaseboardTemperature() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + Double baseboardTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBaseboardTemperature(baseboardTemperature); + } + + @Test + public void testToString() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + IpmiBaseboardTemperatureArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArrayTest.java new file mode 100644 index 0000000..6186c07 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBaseboardVoltageRegulatorArray; + + +public class IpmiBaseboardVoltageRegulatorArrayTest { + + private IpmiBaseboardVoltageRegulatorArray createTestSubject() { + return new IpmiBaseboardVoltageRegulatorArray(); + } + + @Test + public void testGetBaseboardVoltageRegulatorIdentifier() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBaseboardVoltageRegulatorIdentifier(); + } + + @Test + public void testSetBaseboardVoltageRegulatorIdentifier() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + String baseboardVoltageRegulatorIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setBaseboardVoltageRegulatorIdentifier(baseboardVoltageRegulatorIdentifier); + } + + @Test + public void testGetVoltageRegulatorTemperature() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVoltageRegulatorTemperature(); + } + + @Test + public void testSetVoltageRegulatorTemperature() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + Double voltageRegulatorTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVoltageRegulatorTemperature(voltageRegulatorTemperature); + } + + @Test + public void testToString() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + IpmiBaseboardVoltageRegulatorArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArrayTest.java new file mode 100644 index 0000000..2e8197a --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArrayTest.java @@ -0,0 +1,130 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBatteryArray; + + +public class IpmiBatteryArrayTest { + + private IpmiBatteryArray createTestSubject() { + return new IpmiBatteryArray(); + } + + @Test + public void testGetBatteryIdentifier() throws Exception { + IpmiBatteryArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBatteryIdentifier(); + } + + @Test + public void testSetBatteryIdentifier() throws Exception { + IpmiBatteryArray testSubject; + String batteryIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setBatteryIdentifier(batteryIdentifier); + } + + @Test + public void testGetBatteryType() throws Exception { + IpmiBatteryArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBatteryType(); + } + + @Test + public void testSetBatteryType() throws Exception { + IpmiBatteryArray testSubject; + String batteryType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setBatteryType(batteryType); + } + + @Test + public void testGetBatteryVoltageLevel() throws Exception { + IpmiBatteryArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBatteryVoltageLevel(); + } + + @Test + public void testSetBatteryVoltageLevel() throws Exception { + IpmiBatteryArray testSubject; + Double batteryVoltageLevel = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBatteryVoltageLevel(batteryVoltageLevel); + } + + @Test + public void testToString() throws Exception { + IpmiBatteryArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiBatteryArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiBatteryArray testSubject; + IpmiBatteryArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArrayTest.java new file mode 100644 index 0000000..a5851e8 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiFanArray; + + +public class IpmiFanArrayTest { + + private IpmiFanArray createTestSubject() { + return new IpmiFanArray(); + } + + @Test + public void testGetFanIdentifier() throws Exception { + IpmiFanArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFanIdentifier(); + } + + @Test + public void testSetFanIdentifier() throws Exception { + IpmiFanArray testSubject; + String fanIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFanIdentifier(fanIdentifier); + } + + @Test + public void testGetFanSpeed() throws Exception { + IpmiFanArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFanSpeed(); + } + + @Test + public void testSetFanSpeed() throws Exception { + IpmiFanArray testSubject; + Double fanSpeed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFanSpeed(fanSpeed); + } + + @Test + public void testToString() throws Exception { + IpmiFanArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiFanArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiFanArray testSubject; + IpmiFanArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArrayTest.java new file mode 100644 index 0000000..dbceee5 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArrayTest.java @@ -0,0 +1,111 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiGlobalAggregateTemperatureMarginArray; + + +public class IpmiGlobalAggregateTemperatureMarginArrayTest { + + private IpmiGlobalAggregateTemperatureMarginArray createTestSubject() { + return new IpmiGlobalAggregateTemperatureMarginArray(); + } + + @Test + public void testGetIpmiGlobalAggregateTemperatureMarginIdentifier() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiGlobalAggregateTemperatureMarginIdentifier(); + } + + @Test + public void testSetIpmiGlobalAggregateTemperatureMarginIdentifier() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + String ipmiGlobalAggregateTemperatureMarginIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiGlobalAggregateTemperatureMarginIdentifier( + ipmiGlobalAggregateTemperatureMarginIdentifier); + } + + @Test + public void testGetGlobalAggregateTemperatureMargin() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGlobalAggregateTemperatureMargin(); + } + + @Test + public void testSetGlobalAggregateTemperatureMargin() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + Double globalAggregateTemperatureMargin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setGlobalAggregateTemperatureMargin(globalAggregateTemperatureMargin); + } + + @Test + public void testToString() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + IpmiGlobalAggregateTemperatureMarginArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArrayTest.java new file mode 100644 index 0000000..3729d17 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiHsbpArray; + + +public class IpmiHsbpArrayTest { + + private IpmiHsbpArray createTestSubject() { + return new IpmiHsbpArray(); + } + + @Test + public void testGetHsbpIdentifier() throws Exception { + IpmiHsbpArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHsbpIdentifier(); + } + + @Test + public void testSetHsbpIdentifier() throws Exception { + IpmiHsbpArray testSubject; + String hsbpIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setHsbpIdentifier(hsbpIdentifier); + } + + @Test + public void testGetHsbpTemperature() throws Exception { + IpmiHsbpArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHsbpTemperature(); + } + + @Test + public void testSetHsbpTemperature() throws Exception { + IpmiHsbpArray testSubject; + Double hsbpTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHsbpTemperature(hsbpTemperature); + } + + @Test + public void testToString() throws Exception { + IpmiHsbpArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiHsbpArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiHsbpArray testSubject; + IpmiHsbpArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArrayTest.java new file mode 100644 index 0000000..ced4972 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiNicArray; + + +public class IpmiNicArrayTest { + + private IpmiNicArray createTestSubject() { + return new IpmiNicArray(); + } + + @Test + public void testGetNicIdentifier() throws Exception { + IpmiNicArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNicIdentifier(); + } + + @Test + public void testSetNicIdentifier() throws Exception { + IpmiNicArray testSubject; + String nicIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNicIdentifier(nicIdentifier); + } + + @Test + public void testGetNicTemperature() throws Exception { + IpmiNicArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNicTemperature(); + } + + @Test + public void testSetNicTemperature() throws Exception { + IpmiNicArray testSubject; + Double nicTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNicTemperature(nicTemperature); + } + + @Test + public void testToString() throws Exception { + IpmiNicArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiNicArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiNicArray testSubject; + IpmiNicArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArrayTest.java new file mode 100644 index 0000000..b86a9a5 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArrayTest.java @@ -0,0 +1,150 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiPowerSupplyArray; + + +public class IpmiPowerSupplyArrayTest { + + private IpmiPowerSupplyArray createTestSubject() { + return new IpmiPowerSupplyArray(); + } + + @Test + public void testGetPowerSupplyIdentifier() throws Exception { + IpmiPowerSupplyArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPowerSupplyIdentifier(); + } + + @Test + public void testSetPowerSupplyIdentifier() throws Exception { + IpmiPowerSupplyArray testSubject; + String powerSupplyIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPowerSupplyIdentifier(powerSupplyIdentifier); + } + + @Test + public void testGetPowerSupplyInputPower() throws Exception { + IpmiPowerSupplyArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPowerSupplyInputPower(); + } + + @Test + public void testSetPowerSupplyInputPower() throws Exception { + IpmiPowerSupplyArray testSubject; + Double powerSupplyInputPower = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPowerSupplyInputPower(powerSupplyInputPower); + } + + @Test + public void testGetPowerSupplyCurrentOutputPercent() throws Exception { + IpmiPowerSupplyArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPowerSupplyCurrentOutputPercent(); + } + + @Test + public void testSetPowerSupplyCurrentOutputPercent() throws Exception { + IpmiPowerSupplyArray testSubject; + Double powerSupplyCurrentOutputPercent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPowerSupplyCurrentOutputPercent(powerSupplyCurrentOutputPercent); + } + + @Test + public void testGetPowerSupplyTemperature() throws Exception { + IpmiPowerSupplyArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPowerSupplyTemperature(); + } + + @Test + public void testSetPowerSupplyTemperature() throws Exception { + IpmiPowerSupplyArray testSubject; + Double powerSupplyTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPowerSupplyTemperature(powerSupplyTemperature); + } + + @Test + public void testToString() throws Exception { + IpmiPowerSupplyArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiPowerSupplyArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiPowerSupplyArray testSubject; + IpmiPowerSupplyArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArrayTest.java new file mode 100644 index 0000000..5c95151 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArrayTest.java @@ -0,0 +1,155 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiProcessorArray; +import org.onap.dcaegen2.ves.domain.ves70.ProcessorDimmAggregateThermalMarginArray; + + +public class IpmiProcessorArrayTest { + + private IpmiProcessorArray createTestSubject() { + return new IpmiProcessorArray(); + } + + @Test + public void testGetProcessorIdentifier() throws Exception { + IpmiProcessorArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessorIdentifier(); + } + + @Test + public void testSetProcessorIdentifier() throws Exception { + IpmiProcessorArray testSubject; + String processorIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessorIdentifier(processorIdentifier); + } + + @Test + public void testGetProcessorThermalControlPercent() throws Exception { + IpmiProcessorArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessorThermalControlPercent(); + } + + @Test + public void testSetProcessorThermalControlPercent() throws Exception { + IpmiProcessorArray testSubject; + Double processorThermalControlPercent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessorThermalControlPercent(processorThermalControlPercent); + } + + @Test + public void testGetProcessorDtsThermalMargin() throws Exception { + IpmiProcessorArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessorDtsThermalMargin(); + } + + @Test + public void testSetProcessorDtsThermalMargin() throws Exception { + IpmiProcessorArray testSubject; + Double processorDtsThermalMargin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessorDtsThermalMargin(processorDtsThermalMargin); + } + + @Test + public void testGetProcessorDimmAggregateThermalMarginArray() throws Exception { + IpmiProcessorArray testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessorDimmAggregateThermalMarginArray(); + } + + @Test + public void testSetProcessorDimmAggregateThermalMarginArray() throws Exception { + IpmiProcessorArray testSubject; + List processorDimmAggregateThermalMarginArray = + null; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessorDimmAggregateThermalMarginArray( + processorDimmAggregateThermalMarginArray); + } + + @Test + public void testToString() throws Exception { + IpmiProcessorArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiProcessorArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiProcessorArray testSubject; + IpmiProcessorArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiTest.java new file mode 100644 index 0000000..a898238 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiTest.java @@ -0,0 +1,343 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.Ipmi; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBaseboardTemperatureArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBaseboardVoltageRegulatorArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBatteryArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiFanArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiGlobalAggregateTemperatureMarginArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiHsbpArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiNicArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiPowerSupplyArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiProcessorArray; + + +public class IpmiTest { + + private Ipmi createTestSubject() { + return new Ipmi(); + } + + @Test + public void testGetExitAirTemperature() throws Exception { + Ipmi testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getExitAirTemperature(); + } + + @Test + public void testSetExitAirTemperature() throws Exception { + Ipmi testSubject; + Double exitAirTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setExitAirTemperature(exitAirTemperature); + } + + @Test + public void testGetFrontPanelTemperature() throws Exception { + Ipmi testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFrontPanelTemperature(); + } + + @Test + public void testSetFrontPanelTemperature() throws Exception { + Ipmi testSubject; + Double frontPanelTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFrontPanelTemperature(frontPanelTemperature); + } + + @Test + public void testGetIoModuleTemperature() throws Exception { + Ipmi testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIoModuleTemperature(); + } + + @Test + public void testSetIoModuleTemperature() throws Exception { + Ipmi testSubject; + Double ioModuleTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIoModuleTemperature(ioModuleTemperature); + } + + @Test + public void testGetIpmiBaseboardTemperatureArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiBaseboardTemperatureArray(); + } + + @Test + public void testSetIpmiBaseboardTemperatureArray() throws Exception { + Ipmi testSubject; + List ipmiBaseboardTemperatureArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiBaseboardTemperatureArray(ipmiBaseboardTemperatureArray); + } + + @Test + public void testGetIpmiBaseboardVoltageRegulatorArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiBaseboardVoltageRegulatorArray(); + } + + @Test + public void testSetIpmiBaseboardVoltageRegulatorArray() throws Exception { + Ipmi testSubject; + List ipmiBaseboardVoltageRegulatorArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiBaseboardVoltageRegulatorArray(ipmiBaseboardVoltageRegulatorArray); + } + + @Test + public void testGetIpmiBatteryArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiBatteryArray(); + } + + @Test + public void testSetIpmiBatteryArray() throws Exception { + Ipmi testSubject; + List ipmiBatteryArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiBatteryArray(ipmiBatteryArray); + } + + @Test + public void testGetIpmiFanArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiFanArray(); + } + + @Test + public void testSetIpmiFanArray() throws Exception { + Ipmi testSubject; + List ipmiFanArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiFanArray(ipmiFanArray); + } + + @Test + public void testGetIpmiHsbpArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiHsbpArray(); + } + + @Test + public void testSetIpmiHsbpArray() throws Exception { + Ipmi testSubject; + List ipmiHsbpArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiHsbpArray(ipmiHsbpArray); + } + + @Test + public void testGetIpmiGlobalAggregateTemperatureMarginArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiGlobalAggregateTemperatureMarginArray(); + } + + @Test + public void testSetIpmiGlobalAggregateTemperatureMarginArray() throws Exception { + Ipmi testSubject; + List ipmiGlobalAggregateTemperatureMarginArray = + null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiGlobalAggregateTemperatureMarginArray( + ipmiGlobalAggregateTemperatureMarginArray); + } + + @Test + public void testGetIpmiNicArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiNicArray(); + } + + @Test + public void testSetIpmiNicArray() throws Exception { + Ipmi testSubject; + List ipmiNicArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiNicArray(ipmiNicArray); + } + + @Test + public void testGetIpmiPowerSupplyArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiPowerSupplyArray(); + } + + @Test + public void testSetIpmiPowerSupplyArray() throws Exception { + Ipmi testSubject; + List ipmiPowerSupplyArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiPowerSupplyArray(ipmiPowerSupplyArray); + } + + @Test + public void testGetIpmiProcessorArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiProcessorArray(); + } + + @Test + public void testSetIpmiProcessorArray() throws Exception { + Ipmi testSubject; + List ipmiProcessorArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiProcessorArray(ipmiProcessorArray); + } + + @Test + public void testGetSystemAirflow() throws Exception { + Ipmi testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSystemAirflow(); + } + + @Test + public void testSetSystemAirflow() throws Exception { + Ipmi testSubject; + Double systemAirflow = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSystemAirflow(systemAirflow); + } + + @Test + public void testToString() throws Exception { + Ipmi testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + Ipmi testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + Ipmi testSubject; + Ipmi testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistributionTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistributionTest.java new file mode 100644 index 0000000..e3c11e8 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistributionTest.java @@ -0,0 +1,130 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.LatencyDistribution; + + +public class LatencyDistributionTest { + + private LatencyDistribution createTestSubject() { + return new LatencyDistribution(); + } + + @Test + public void testGetCountsInTheBucket() throws Exception { + LatencyDistribution testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCountsInTheBucket(); + } + + @Test + public void testSetCountsInTheBucket() throws Exception { + LatencyDistribution testSubject; + Double countsInTheBucket = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCountsInTheBucket(countsInTheBucket); + } + + @Test + public void testGetHighEndOfLatencyBucket() throws Exception { + LatencyDistribution testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHighEndOfLatencyBucket(); + } + + @Test + public void testSetHighEndOfLatencyBucket() throws Exception { + LatencyDistribution testSubject; + Double highEndOfLatencyBucket = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHighEndOfLatencyBucket(highEndOfLatencyBucket); + } + + @Test + public void testGetLowEndOfLatencyBucket() throws Exception { + LatencyDistribution testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLowEndOfLatencyBucket(); + } + + @Test + public void testSetLowEndOfLatencyBucket() throws Exception { + LatencyDistribution testSubject; + Double lowEndOfLatencyBucket = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLowEndOfLatencyBucket(lowEndOfLatencyBucket); + } + + @Test + public void testToString() throws Exception { + LatencyDistribution testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + LatencyDistribution testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + LatencyDistribution testSubject; + LatencyDistribution testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LoadArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LoadArrayTest.java new file mode 100644 index 0000000..b951658 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LoadArrayTest.java @@ -0,0 +1,130 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.LoadArray; + + +public class LoadArrayTest { + + private LoadArray createTestSubject() { + return new LoadArray(); + } + + @Test + public void testGetLongTerm() throws Exception { + LoadArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLongTerm(); + } + + @Test + public void testSetLongTerm() throws Exception { + LoadArray testSubject; + Double longTerm = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLongTerm(longTerm); + } + + @Test + public void testGetMidTerm() throws Exception { + LoadArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMidTerm(); + } + + @Test + public void testSetMidTerm() throws Exception { + LoadArray testSubject; + Double midTerm = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMidTerm(midTerm); + } + + @Test + public void testGetShortTerm() throws Exception { + LoadArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getShortTerm(); + } + + @Test + public void testSetShortTerm() throws Exception { + LoadArray testSubject; + Double shortTerm = null; + + // default test + testSubject = createTestSubject(); + testSubject.setShortTerm(shortTerm); + } + + @Test + public void testToString() throws Exception { + LoadArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + LoadArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + LoadArray testSubject; + LoadArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArrayTest.java new file mode 100644 index 0000000..a22616e --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArrayTest.java @@ -0,0 +1,170 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.MachineCheckExceptionArray; + + +public class MachineCheckExceptionArrayTest { + + private MachineCheckExceptionArray createTestSubject() { + return new MachineCheckExceptionArray(); + } + + @Test + public void testGetCorrectedMemoryErrors() throws Exception { + MachineCheckExceptionArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCorrectedMemoryErrors(); + } + + @Test + public void testSetCorrectedMemoryErrors() throws Exception { + MachineCheckExceptionArray testSubject; + Double correctedMemoryErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCorrectedMemoryErrors(correctedMemoryErrors); + } + + @Test + public void testGetCorrectedMemoryErrorsIn1Hr() throws Exception { + MachineCheckExceptionArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCorrectedMemoryErrorsIn1Hr(); + } + + @Test + public void testSetCorrectedMemoryErrorsIn1Hr() throws Exception { + MachineCheckExceptionArray testSubject; + Double correctedMemoryErrorsIn1Hr = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCorrectedMemoryErrorsIn1Hr(correctedMemoryErrorsIn1Hr); + } + + @Test + public void testGetUncorrectedMemoryErrors() throws Exception { + MachineCheckExceptionArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUncorrectedMemoryErrors(); + } + + @Test + public void testSetUncorrectedMemoryErrors() throws Exception { + MachineCheckExceptionArray testSubject; + Double uncorrectedMemoryErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setUncorrectedMemoryErrors(uncorrectedMemoryErrors); + } + + @Test + public void testGetUncorrectedMemoryErrorsIn1Hr() throws Exception { + MachineCheckExceptionArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUncorrectedMemoryErrorsIn1Hr(); + } + + @Test + public void testSetUncorrectedMemoryErrorsIn1Hr() throws Exception { + MachineCheckExceptionArray testSubject; + Double uncorrectedMemoryErrorsIn1Hr = null; + + // default test + testSubject = createTestSubject(); + testSubject.setUncorrectedMemoryErrorsIn1Hr(uncorrectedMemoryErrorsIn1Hr); + } + + @Test + public void testGetVmIdentifier() throws Exception { + MachineCheckExceptionArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVmIdentifier(); + } + + @Test + public void testSetVmIdentifier() throws Exception { + MachineCheckExceptionArray testSubject; + String vmIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setVmIdentifier(vmIdentifier); + } + + @Test + public void testToString() throws Exception { + MachineCheckExceptionArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + MachineCheckExceptionArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + MachineCheckExceptionArray testSubject; + MachineCheckExceptionArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFieldsTest.java new file mode 100644 index 0000000..b838933 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFieldsTest.java @@ -0,0 +1,553 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.MeasurementFields.MeasurementFieldsVersion; + + + +public class MeasurementFieldsTest { + + private MeasurementFields createTestSubject() { + return new MeasurementFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + MeasurementFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + MeasurementFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetAdditionalMeasurements() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalMeasurements(); + } + + @Test + public void testSetAdditionalMeasurements() throws Exception { + MeasurementFields testSubject; + List additionalMeasurements = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalMeasurements(additionalMeasurements); + } + + @Test + public void testGetAdditionalObjects() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalObjects(); + } + + @Test + public void testSetAdditionalObjects() throws Exception { + MeasurementFields testSubject; + List additionalObjects = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalObjects(additionalObjects); + } + + @Test + public void testGetCodecUsageArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCodecUsageArray(); + } + + @Test + public void testSetCodecUsageArray() throws Exception { + MeasurementFields testSubject; + List codecUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCodecUsageArray(codecUsageArray); + } + + @Test + public void testGetConcurrentSessions() throws Exception { + MeasurementFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getConcurrentSessions(); + } + + @Test + public void testSetConcurrentSessions() throws Exception { + MeasurementFields testSubject; + Integer concurrentSessions = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setConcurrentSessions(concurrentSessions); + } + + @Test + public void testGetConfiguredEntities() throws Exception { + MeasurementFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getConfiguredEntities(); + } + + @Test + public void testSetConfiguredEntities() throws Exception { + MeasurementFields testSubject; + Integer configuredEntities = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setConfiguredEntities(configuredEntities); + } + + @Test + public void testGetCpuUsageArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageArray(); + } + + @Test + public void testSetCpuUsageArray() throws Exception { + MeasurementFields testSubject; + List cpuUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageArray(cpuUsageArray); + } + + @Test + public void testGetDiskUsageArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskUsageArray(); + } + + @Test + public void testSetDiskUsageArray() throws Exception { + MeasurementFields testSubject; + List diskUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskUsageArray(diskUsageArray); + } + + @Test + public void testGetFeatureUsageArray() throws Exception { + MeasurementFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFeatureUsageArray(); + } + + @Test + public void testSetFeatureUsageArray() throws Exception { + MeasurementFields testSubject; + AlarmAdditionalInformation featureUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFeatureUsageArray(featureUsageArray); + } + + @Test + public void testGetFilesystemUsageArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFilesystemUsageArray(); + } + + @Test + public void testSetFilesystemUsageArray() throws Exception { + MeasurementFields testSubject; + List filesystemUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFilesystemUsageArray(filesystemUsageArray); + } + + @Test + public void testGetHugePagesArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHugePagesArray(); + } + + @Test + public void testSetHugePagesArray() throws Exception { + MeasurementFields testSubject; + List hugePagesArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHugePagesArray(hugePagesArray); + } + + @Test + public void testGetIpmi() throws Exception { + MeasurementFields testSubject; + Ipmi result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmi(); + } + + @Test + public void testSetIpmi() throws Exception { + MeasurementFields testSubject; + Ipmi ipmi = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmi(ipmi); + } + + @Test + public void testGetLatencyDistribution() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLatencyDistribution(); + } + + @Test + public void testSetLatencyDistribution() throws Exception { + MeasurementFields testSubject; + List latencyDistribution = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLatencyDistribution(latencyDistribution); + } + + @Test + public void testGetLoadArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLoadArray(); + } + + @Test + public void testSetLoadArray() throws Exception { + MeasurementFields testSubject; + List loadArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLoadArray(loadArray); + } + + @Test + public void testGetMachineCheckExceptionArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMachineCheckExceptionArray(); + } + + @Test + public void testSetMachineCheckExceptionArray() throws Exception { + MeasurementFields testSubject; + List machineCheckExceptionArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMachineCheckExceptionArray(machineCheckExceptionArray); + } + + @Test + public void testGetMeanRequestLatency() throws Exception { + MeasurementFields testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMeanRequestLatency(); + } + + @Test + public void testSetMeanRequestLatency() throws Exception { + MeasurementFields testSubject; + Double meanRequestLatency = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMeanRequestLatency(meanRequestLatency); + } + + @Test + public void testGetMeasurementInterval() throws Exception { + MeasurementFields testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMeasurementInterval(); + } + + @Test + public void testSetMeasurementInterval() throws Exception { + MeasurementFields testSubject; + Double measurementInterval = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMeasurementInterval(measurementInterval); + } + + @Test + public void testGetMeasurementFieldsVersion() throws Exception { + MeasurementFields testSubject; + MeasurementFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMeasurementFieldsVersion(); + } + + @Test + public void testSetMeasurementFieldsVersion() throws Exception { + MeasurementFields testSubject; + MeasurementFieldsVersion measurementFieldsVersion = MeasurementFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setMeasurementFieldsVersion(measurementFieldsVersion); + } + + @Test + public void testGetMemoryUsageArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryUsageArray(); + } + + @Test + public void testSetMemoryUsageArray() throws Exception { + MeasurementFields testSubject; + List memoryUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryUsageArray(memoryUsageArray); + } + + @Test + public void testGetNumberOfMediaPortsInUse() throws Exception { + MeasurementFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumberOfMediaPortsInUse(); + } + + @Test + public void testSetNumberOfMediaPortsInUse() throws Exception { + MeasurementFields testSubject; + Integer numberOfMediaPortsInUse = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setNumberOfMediaPortsInUse(numberOfMediaPortsInUse); + } + + @Test + public void testGetRequestRate() throws Exception { + MeasurementFields testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRequestRate(); + } + + @Test + public void testSetRequestRate() throws Exception { + MeasurementFields testSubject; + Double requestRate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRequestRate(requestRate); + } + + @Test + public void testGetNfcScalingMetric() throws Exception { + MeasurementFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfcScalingMetric(); + } + + @Test + public void testSetNfcScalingMetric() throws Exception { + MeasurementFields testSubject; + Integer nfcScalingMetric = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setNfcScalingMetric(nfcScalingMetric); + } + + @Test + public void testGetNicPerformanceArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNicPerformanceArray(); + } + + @Test + public void testSetNicPerformanceArray() throws Exception { + MeasurementFields testSubject; + List nicPerformanceArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNicPerformanceArray(nicPerformanceArray); + } + + @Test + public void testGetProcessStatsArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessStatsArray(); + } + + @Test + public void testSetProcessStatsArray() throws Exception { + MeasurementFields testSubject; + List processStatsArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessStatsArray(processStatsArray); + } + + @Test + public void testToString() throws Exception { + MeasurementFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + MeasurementFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + MeasurementFields testSubject; + MeasurementFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArrayTest.java new file mode 100644 index 0000000..9acf4c9 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArrayTest.java @@ -0,0 +1,410 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.MemoryUsageArray; + + +public class MemoryUsageArrayTest { + + private MemoryUsageArray createTestSubject() { + return new MemoryUsageArray(); + } + + @Test + public void testGetMemoryBuffered() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryBuffered(); + } + + @Test + public void testSetMemoryBuffered() throws Exception { + MemoryUsageArray testSubject; + Double memoryBuffered = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryBuffered(memoryBuffered); + } + + @Test + public void testGetMemoryCached() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryCached(); + } + + @Test + public void testSetMemoryCached() throws Exception { + MemoryUsageArray testSubject; + Double memoryCached = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryCached(memoryCached); + } + + @Test + public void testGetMemoryConfigured() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryConfigured(); + } + + @Test + public void testSetMemoryConfigured() throws Exception { + MemoryUsageArray testSubject; + Double memoryConfigured = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryConfigured(memoryConfigured); + } + + @Test + public void testGetMemoryDemand() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryDemand(); + } + + @Test + public void testSetMemoryDemand() throws Exception { + MemoryUsageArray testSubject; + Double memoryDemand = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryDemand(memoryDemand); + } + + @Test + public void testGetMemoryFree() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryFree(); + } + + @Test + public void testSetMemoryFree() throws Exception { + MemoryUsageArray testSubject; + Double memoryFree = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryFree(memoryFree); + } + + @Test + public void testGetMemoryLatencyAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryLatencyAvg(); + } + + @Test + public void testSetMemoryLatencyAvg() throws Exception { + MemoryUsageArray testSubject; + Double memoryLatencyAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryLatencyAvg(memoryLatencyAvg); + } + + @Test + public void testGetMemorySharedAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySharedAvg(); + } + + @Test + public void testSetMemorySharedAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySharedAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySharedAvg(memorySharedAvg); + } + + @Test + public void testGetMemorySlabRecl() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySlabRecl(); + } + + @Test + public void testSetMemorySlabRecl() throws Exception { + MemoryUsageArray testSubject; + Double memorySlabRecl = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySlabRecl(memorySlabRecl); + } + + @Test + public void testGetMemorySlabUnrecl() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySlabUnrecl(); + } + + @Test + public void testSetMemorySlabUnrecl() throws Exception { + MemoryUsageArray testSubject; + Double memorySlabUnrecl = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySlabUnrecl(memorySlabUnrecl); + } + + @Test + public void testGetMemorySwapInAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySwapInAvg(); + } + + @Test + public void testSetMemorySwapInAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySwapInAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySwapInAvg(memorySwapInAvg); + } + + @Test + public void testGetMemorySwapInRateAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySwapInRateAvg(); + } + + @Test + public void testSetMemorySwapInRateAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySwapInRateAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySwapInRateAvg(memorySwapInRateAvg); + } + + @Test + public void testGetMemorySwapOutAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySwapOutAvg(); + } + + @Test + public void testSetMemorySwapOutAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySwapOutAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySwapOutAvg(memorySwapOutAvg); + } + + @Test + public void testGetMemorySwapOutRateAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySwapOutRateAvg(); + } + + @Test + public void testSetMemorySwapOutRateAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySwapOutRateAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySwapOutRateAvg(memorySwapOutRateAvg); + } + + @Test + public void testGetMemorySwapUsedAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySwapUsedAvg(); + } + + @Test + public void testSetMemorySwapUsedAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySwapUsedAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySwapUsedAvg(memorySwapUsedAvg); + } + + @Test + public void testGetMemoryUsed() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryUsed(); + } + + @Test + public void testSetMemoryUsed() throws Exception { + MemoryUsageArray testSubject; + Double memoryUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryUsed(memoryUsed); + } + + @Test + public void testGetPercentMemoryUsage() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPercentMemoryUsage(); + } + + @Test + public void testSetPercentMemoryUsage() throws Exception { + MemoryUsageArray testSubject; + Double percentMemoryUsage = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPercentMemoryUsage(percentMemoryUsage); + } + + @Test + public void testGetVmIdentifier() throws Exception { + MemoryUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVmIdentifier(); + } + + @Test + public void testSetVmIdentifier() throws Exception { + MemoryUsageArray testSubject; + String vmIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setVmIdentifier(vmIdentifier); + } + + @Test + public void testToString() throws Exception { + MemoryUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + MemoryUsageArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + MemoryUsageArray testSubject; + MemoryUsageArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFieldsTest.java new file mode 100644 index 0000000..7ac8a12 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFieldsTest.java @@ -0,0 +1,733 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.GtpPerFlowMetrics; +import org.onap.dcaegen2.ves.domain.ves70.MobileFlowFields; +import org.onap.dcaegen2.ves.domain.ves70.MobileFlowFields.MobileFlowFieldsVersion; + + +public class MobileFlowFieldsTest { + + private MobileFlowFields createTestSubject() { + return new MobileFlowFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + MobileFlowFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + MobileFlowFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetApplicationType() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getApplicationType(); + } + + @Test + public void testSetApplicationType() throws Exception { + MobileFlowFields testSubject; + String applicationType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setApplicationType(applicationType); + } + + @Test + public void testGetAppProtocolType() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAppProtocolType(); + } + + @Test + public void testSetAppProtocolType() throws Exception { + MobileFlowFields testSubject; + String appProtocolType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAppProtocolType(appProtocolType); + } + + @Test + public void testGetAppProtocolVersion() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAppProtocolVersion(); + } + + @Test + public void testSetAppProtocolVersion() throws Exception { + MobileFlowFields testSubject; + String appProtocolVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAppProtocolVersion(appProtocolVersion); + } + + @Test + public void testGetCid() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCid(); + } + + @Test + public void testSetCid() throws Exception { + MobileFlowFields testSubject; + String cid = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCid(cid); + } + + @Test + public void testGetConnectionType() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getConnectionType(); + } + + @Test + public void testSetConnectionType() throws Exception { + MobileFlowFields testSubject; + String connectionType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setConnectionType(connectionType); + } + + @Test + public void testGetEcgi() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEcgi(); + } + + @Test + public void testSetEcgi() throws Exception { + MobileFlowFields testSubject; + String ecgi = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEcgi(ecgi); + } + + @Test + public void testGetFlowDirection() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowDirection(); + } + + @Test + public void testSetFlowDirection() throws Exception { + MobileFlowFields testSubject; + String flowDirection = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowDirection(flowDirection); + } + + @Test + public void testGetGtpPerFlowMetrics() throws Exception { + MobileFlowFields testSubject; + GtpPerFlowMetrics result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGtpPerFlowMetrics(); + } + + @Test + public void testSetGtpPerFlowMetrics() throws Exception { + MobileFlowFields testSubject; + GtpPerFlowMetrics gtpPerFlowMetrics = null; + + // default test + testSubject = createTestSubject(); + testSubject.setGtpPerFlowMetrics(gtpPerFlowMetrics); + } + + @Test + public void testGetGtpProtocolType() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGtpProtocolType(); + } + + @Test + public void testSetGtpProtocolType() throws Exception { + MobileFlowFields testSubject; + String gtpProtocolType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setGtpProtocolType(gtpProtocolType); + } + + @Test + public void testGetGtpVersion() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGtpVersion(); + } + + @Test + public void testSetGtpVersion() throws Exception { + MobileFlowFields testSubject; + String gtpVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setGtpVersion(gtpVersion); + } + + @Test + public void testGetHttpHeader() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHttpHeader(); + } + + @Test + public void testSetHttpHeader() throws Exception { + MobileFlowFields testSubject; + String httpHeader = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setHttpHeader(httpHeader); + } + + @Test + public void testGetImei() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getImei(); + } + + @Test + public void testSetImei() throws Exception { + MobileFlowFields testSubject; + String imei = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setImei(imei); + } + + @Test + public void testGetImsi() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getImsi(); + } + + @Test + public void testSetImsi() throws Exception { + MobileFlowFields testSubject; + String imsi = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setImsi(imsi); + } + + @Test + public void testGetIpProtocolType() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpProtocolType(); + } + + @Test + public void testSetIpProtocolType() throws Exception { + MobileFlowFields testSubject; + String ipProtocolType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setIpProtocolType(ipProtocolType); + } + + @Test + public void testGetIpVersion() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpVersion(); + } + + @Test + public void testSetIpVersion() throws Exception { + MobileFlowFields testSubject; + String ipVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setIpVersion(ipVersion); + } + + @Test + public void testGetLac() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLac(); + } + + @Test + public void testSetLac() throws Exception { + MobileFlowFields testSubject; + String lac = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setLac(lac); + } + + @Test + public void testGetMcc() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMcc(); + } + + @Test + public void testSetMcc() throws Exception { + MobileFlowFields testSubject; + String mcc = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMcc(mcc); + } + + @Test + public void testGetMnc() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMnc(); + } + + @Test + public void testSetMnc() throws Exception { + MobileFlowFields testSubject; + String mnc = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMnc(mnc); + } + + @Test + public void testGetMobileFlowFieldsVersion() throws Exception { + MobileFlowFields testSubject; + MobileFlowFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMobileFlowFieldsVersion(); + } + + @Test + public void testSetMobileFlowFieldsVersion() throws Exception { + MobileFlowFields testSubject; + MobileFlowFieldsVersion mobileFlowFieldsVersion = MobileFlowFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setMobileFlowFieldsVersion(mobileFlowFieldsVersion); + } + + @Test + public void testGetMsisdn() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMsisdn(); + } + + @Test + public void testSetMsisdn() throws Exception { + MobileFlowFields testSubject; + String msisdn = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMsisdn(msisdn); + } + + @Test + public void testGetOtherEndpointIpAddress() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOtherEndpointIpAddress(); + } + + @Test + public void testSetOtherEndpointIpAddress() throws Exception { + MobileFlowFields testSubject; + String otherEndpointIpAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOtherEndpointIpAddress(otherEndpointIpAddress); + } + + @Test + public void testGetOtherEndpointPort() throws Exception { + MobileFlowFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOtherEndpointPort(); + } + + @Test + public void testSetOtherEndpointPort() throws Exception { + MobileFlowFields testSubject; + Integer otherEndpointPort = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setOtherEndpointPort(otherEndpointPort); + } + + @Test + public void testGetOtherFunctionalRole() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOtherFunctionalRole(); + } + + @Test + public void testSetOtherFunctionalRole() throws Exception { + MobileFlowFields testSubject; + String otherFunctionalRole = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOtherFunctionalRole(otherFunctionalRole); + } + + @Test + public void testGetRac() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRac(); + } + + @Test + public void testSetRac() throws Exception { + MobileFlowFields testSubject; + String rac = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRac(rac); + } + + @Test + public void testGetRadioAccessTechnology() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRadioAccessTechnology(); + } + + @Test + public void testSetRadioAccessTechnology() throws Exception { + MobileFlowFields testSubject; + String radioAccessTechnology = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRadioAccessTechnology(radioAccessTechnology); + } + + @Test + public void testGetReportingEndpointIpAddr() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReportingEndpointIpAddr(); + } + + @Test + public void testSetReportingEndpointIpAddr() throws Exception { + MobileFlowFields testSubject; + String reportingEndpointIpAddr = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setReportingEndpointIpAddr(reportingEndpointIpAddr); + } + + @Test + public void testGetReportingEndpointPort() throws Exception { + MobileFlowFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReportingEndpointPort(); + } + + @Test + public void testSetReportingEndpointPort() throws Exception { + MobileFlowFields testSubject; + Integer reportingEndpointPort = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setReportingEndpointPort(reportingEndpointPort); + } + + @Test + public void testGetSac() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSac(); + } + + @Test + public void testSetSac() throws Exception { + MobileFlowFields testSubject; + String sac = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSac(sac); + } + + @Test + public void testGetSamplingAlgorithm() throws Exception { + MobileFlowFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSamplingAlgorithm(); + } + + @Test + public void testSetSamplingAlgorithm() throws Exception { + MobileFlowFields testSubject; + Integer samplingAlgorithm = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setSamplingAlgorithm(samplingAlgorithm); + } + + @Test + public void testGetTac() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTac(); + } + + @Test + public void testSetTac() throws Exception { + MobileFlowFields testSubject; + String tac = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setTac(tac); + } + + @Test + public void testGetTunnelId() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTunnelId(); + } + + @Test + public void testSetTunnelId() throws Exception { + MobileFlowFields testSubject; + String tunnelId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setTunnelId(tunnelId); + } + + @Test + public void testGetVlanId() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVlanId(); + } + + @Test + public void testSetVlanId() throws Exception { + MobileFlowFields testSubject; + String vlanId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setVlanId(vlanId); + } + + @Test + public void testToString() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + MobileFlowFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + MobileFlowFields testSubject; + MobileFlowFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArrayTest.java new file mode 100644 index 0000000..20adf6f --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArrayTest.java @@ -0,0 +1,856 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.NicPerformanceArray; +import org.onap.dcaegen2.ves.domain.ves70.NicPerformanceArray.AdministrativeState; +import org.onap.dcaegen2.ves.domain.ves70.NicPerformanceArray.OperationalState; +import org.onap.dcaegen2.ves.domain.ves70.NicPerformanceArray.ValuesAreSuspect; + + +public class NicPerformanceArrayTest { + + private NicPerformanceArray createTestSubject() { + return new NicPerformanceArray(); + } + + @Test + public void testGetAdministrativeState() throws Exception { + NicPerformanceArray testSubject; + AdministrativeState result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdministrativeState(); + } + + @Test + public void testSetAdministrativeState() throws Exception { + NicPerformanceArray testSubject; + AdministrativeState administrativeState = AdministrativeState.IN_SERVICE; + + // default test + testSubject = createTestSubject(); + testSubject.setAdministrativeState(administrativeState); + } + + @Test + public void testGetNicIdentifier() throws Exception { + NicPerformanceArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNicIdentifier(); + } + + @Test + public void testSetNicIdentifier() throws Exception { + NicPerformanceArray testSubject; + String nicIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNicIdentifier(nicIdentifier); + } + + @Test + public void testGetOperationalState() throws Exception { + NicPerformanceArray testSubject; + OperationalState result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOperationalState(); + } + + @Test + public void testSetOperationalState() throws Exception { + NicPerformanceArray testSubject; + OperationalState operationalState = OperationalState.IN_SERVICE; + + // default test + testSubject = createTestSubject(); + testSubject.setOperationalState(operationalState); + } + + @Test + public void testGetReceivedBroadcastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedBroadcastPacketsAccumulated(); + } + + @Test + public void testSetReceivedBroadcastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedBroadcastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedBroadcastPacketsAccumulated(receivedBroadcastPacketsAccumulated); + } + + @Test + public void testGetReceivedBroadcastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedBroadcastPacketsDelta(); + } + + @Test + public void testSetReceivedBroadcastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedBroadcastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedBroadcastPacketsDelta(receivedBroadcastPacketsDelta); + } + + @Test + public void testGetReceivedDiscardedPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedDiscardedPacketsAccumulated(); + } + + @Test + public void testSetReceivedDiscardedPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedDiscardedPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedDiscardedPacketsAccumulated(receivedDiscardedPacketsAccumulated); + } + + @Test + public void testGetReceivedDiscardedPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedDiscardedPacketsDelta(); + } + + @Test + public void testSetReceivedDiscardedPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedDiscardedPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedDiscardedPacketsDelta(receivedDiscardedPacketsDelta); + } + + @Test + public void testGetReceivedErrorPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedErrorPacketsAccumulated(); + } + + @Test + public void testSetReceivedErrorPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedErrorPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedErrorPacketsAccumulated(receivedErrorPacketsAccumulated); + } + + @Test + public void testGetReceivedErrorPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedErrorPacketsDelta(); + } + + @Test + public void testSetReceivedErrorPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedErrorPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedErrorPacketsDelta(receivedErrorPacketsDelta); + } + + @Test + public void testGetReceivedMulticastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedMulticastPacketsAccumulated(); + } + + @Test + public void testSetReceivedMulticastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedMulticastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedMulticastPacketsAccumulated(receivedMulticastPacketsAccumulated); + } + + @Test + public void testGetReceivedMulticastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedMulticastPacketsDelta(); + } + + @Test + public void testSetReceivedMulticastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedMulticastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedMulticastPacketsDelta(receivedMulticastPacketsDelta); + } + + @Test + public void testGetReceivedOctetsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedOctetsAccumulated(); + } + + @Test + public void testSetReceivedOctetsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedOctetsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedOctetsAccumulated(receivedOctetsAccumulated); + } + + @Test + public void testGetReceivedOctetsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedOctetsDelta(); + } + + @Test + public void testSetReceivedOctetsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedOctetsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedOctetsDelta(receivedOctetsDelta); + } + + @Test + public void testGetReceivedTotalPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedTotalPacketsAccumulated(); + } + + @Test + public void testSetReceivedTotalPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedTotalPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedTotalPacketsAccumulated(receivedTotalPacketsAccumulated); + } + + @Test + public void testGetReceivedPercentDiscard() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedPercentDiscard(); + } + + @Test + public void testSetReceivedPercentDiscard() throws Exception { + NicPerformanceArray testSubject; + Double receivedPercentDiscard = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedPercentDiscard(receivedPercentDiscard); + } + + @Test + public void testGetReceivedPercentError() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedPercentError(); + } + + @Test + public void testSetReceivedPercentError() throws Exception { + NicPerformanceArray testSubject; + Double receivedPercentError = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedPercentError(receivedPercentError); + } + + @Test + public void testGetReceivedTotalPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedTotalPacketsDelta(); + } + + @Test + public void testSetReceivedTotalPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedTotalPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedTotalPacketsDelta(receivedTotalPacketsDelta); + } + + @Test + public void testGetReceivedUnicastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedUnicastPacketsAccumulated(); + } + + @Test + public void testSetReceivedUnicastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedUnicastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedUnicastPacketsAccumulated(receivedUnicastPacketsAccumulated); + } + + @Test + public void testGetReceivedUnicastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedUnicastPacketsDelta(); + } + + @Test + public void testSetReceivedUnicastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedUnicastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedUnicastPacketsDelta(receivedUnicastPacketsDelta); + } + + @Test + public void testGetReceivedUtilization() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedUtilization(); + } + + @Test + public void testSetReceivedUtilization() throws Exception { + NicPerformanceArray testSubject; + Double receivedUtilization = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedUtilization(receivedUtilization); + } + + @Test + public void testGetSpeed() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSpeed(); + } + + @Test + public void testSetSpeed() throws Exception { + NicPerformanceArray testSubject; + Double speed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSpeed(speed); + } + + @Test + public void testGetTransmittedBroadcastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedBroadcastPacketsAccumulated(); + } + + @Test + public void testSetTransmittedBroadcastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedBroadcastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject + .setTransmittedBroadcastPacketsAccumulated(transmittedBroadcastPacketsAccumulated); + } + + @Test + public void testGetTransmittedBroadcastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedBroadcastPacketsDelta(); + } + + @Test + public void testSetTransmittedBroadcastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedBroadcastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedBroadcastPacketsDelta(transmittedBroadcastPacketsDelta); + } + + @Test + public void testGetTransmittedDiscardedPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedDiscardedPacketsAccumulated(); + } + + @Test + public void testSetTransmittedDiscardedPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedDiscardedPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject + .setTransmittedDiscardedPacketsAccumulated(transmittedDiscardedPacketsAccumulated); + } + + @Test + public void testGetTransmittedDiscardedPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedDiscardedPacketsDelta(); + } + + @Test + public void testSetTransmittedDiscardedPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedDiscardedPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedDiscardedPacketsDelta(transmittedDiscardedPacketsDelta); + } + + @Test + public void testGetTransmittedErrorPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedErrorPacketsAccumulated(); + } + + @Test + public void testSetTransmittedErrorPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedErrorPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedErrorPacketsAccumulated(transmittedErrorPacketsAccumulated); + } + + @Test + public void testGetTransmittedErrorPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedErrorPacketsDelta(); + } + + @Test + public void testSetTransmittedErrorPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedErrorPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedErrorPacketsDelta(transmittedErrorPacketsDelta); + } + + @Test + public void testGetTransmittedMulticastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedMulticastPacketsAccumulated(); + } + + @Test + public void testSetTransmittedMulticastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedMulticastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject + .setTransmittedMulticastPacketsAccumulated(transmittedMulticastPacketsAccumulated); + } + + @Test + public void testGetTransmittedMulticastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedMulticastPacketsDelta(); + } + + @Test + public void testSetTransmittedMulticastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedMulticastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedMulticastPacketsDelta(transmittedMulticastPacketsDelta); + } + + @Test + public void testGetTransmittedOctetsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedOctetsAccumulated(); + } + + @Test + public void testSetTransmittedOctetsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedOctetsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedOctetsAccumulated(transmittedOctetsAccumulated); + } + + @Test + public void testGetTransmittedOctetsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedOctetsDelta(); + } + + @Test + public void testSetTransmittedOctetsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedOctetsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedOctetsDelta(transmittedOctetsDelta); + } + + @Test + public void testGetTransmittedTotalPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedTotalPacketsAccumulated(); + } + + @Test + public void testSetTransmittedTotalPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedTotalPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedTotalPacketsAccumulated(transmittedTotalPacketsAccumulated); + } + + @Test + public void testGetTransmittedTotalPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedTotalPacketsDelta(); + } + + @Test + public void testSetTransmittedTotalPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedTotalPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedTotalPacketsDelta(transmittedTotalPacketsDelta); + } + + @Test + public void testGetTransmittedUnicastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedUnicastPacketsAccumulated(); + } + + @Test + public void testSetTransmittedUnicastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedUnicastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedUnicastPacketsAccumulated(transmittedUnicastPacketsAccumulated); + } + + @Test + public void testGetTransmittedUnicastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedUnicastPacketsDelta(); + } + + @Test + public void testSetTransmittedUnicastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedUnicastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedUnicastPacketsDelta(transmittedUnicastPacketsDelta); + } + + @Test + public void testGetTransmittedPercentDiscard() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedPercentDiscard(); + } + + @Test + public void testSetTransmittedPercentDiscard() throws Exception { + NicPerformanceArray testSubject; + Double transmittedPercentDiscard = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedPercentDiscard(transmittedPercentDiscard); + } + + @Test + public void testGetTransmittedPercentError() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedPercentError(); + } + + @Test + public void testSetTransmittedPercentError() throws Exception { + NicPerformanceArray testSubject; + Double transmittedPercentError = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedPercentError(transmittedPercentError); + } + + @Test + public void testGetTransmittedUtilization() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedUtilization(); + } + + @Test + public void testSetTransmittedUtilization() throws Exception { + NicPerformanceArray testSubject; + Double transmittedUtilization = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedUtilization(transmittedUtilization); + } + + @Test + public void testGetValuesAreSuspect() throws Exception { + NicPerformanceArray testSubject; + ValuesAreSuspect result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getValuesAreSuspect(); + } + + @Test + public void testSetValuesAreSuspect() throws Exception { + NicPerformanceArray testSubject; + ValuesAreSuspect valuesAreSuspect = ValuesAreSuspect.FALSE; + + // default test + testSubject = createTestSubject(); + testSubject.setValuesAreSuspect(valuesAreSuspect); + } + + @Test + public void testToString() throws Exception { + NicPerformanceArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + NicPerformanceArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + NicPerformanceArray testSubject; + NicPerformanceArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFieldsTest.java new file mode 100644 index 0000000..0aa01d7 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFieldsTest.java @@ -0,0 +1,255 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalMeasurement; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.NotificationFields; +import org.onap.dcaegen2.ves.domain.ves70.NotificationFields.NotificationFieldsVersion; + + +public class NotificationFieldsTest { + + private NotificationFields createTestSubject() { + return new NotificationFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + NotificationFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + NotificationFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetArrayOfNamedHashMap() throws Exception { + NotificationFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getArrayOfNamedHashMap(); + } + + @Test + public void testSetArrayOfNamedHashMap() throws Exception { + NotificationFields testSubject; + List arrayOfNamedHashMap = null; + + // default test + testSubject = createTestSubject(); + testSubject.setArrayOfNamedHashMap(arrayOfNamedHashMap); + } + + @Test + public void testGetChangeContact() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getChangeContact(); + } + + @Test + public void testSetChangeContact() throws Exception { + NotificationFields testSubject; + String changeContact = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setChangeContact(changeContact); + } + + @Test + public void testGetChangeIdentifier() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getChangeIdentifier(); + } + + @Test + public void testSetChangeIdentifier() throws Exception { + NotificationFields testSubject; + String changeIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setChangeIdentifier(changeIdentifier); + } + + @Test + public void testGetChangeType() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getChangeType(); + } + + @Test + public void testSetChangeType() throws Exception { + NotificationFields testSubject; + String changeType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setChangeType(changeType); + } + + @Test + public void testGetNewState() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNewState(); + } + + @Test + public void testSetNewState() throws Exception { + NotificationFields testSubject; + String newState = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNewState(newState); + } + + @Test + public void testGetOldState() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOldState(); + } + + @Test + public void testSetOldState() throws Exception { + NotificationFields testSubject; + String oldState = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOldState(oldState); + } + + @Test + public void testGetNotificationFieldsVersion() throws Exception { + NotificationFields testSubject; + NotificationFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNotificationFieldsVersion(); + } + + @Test + public void testSetNotificationFieldsVersion() throws Exception { + NotificationFields testSubject; + NotificationFieldsVersion notificationFieldsVersion = NotificationFieldsVersion._2_0; + + // default test + testSubject = createTestSubject(); + testSubject.setNotificationFieldsVersion(notificationFieldsVersion); + } + + @Test + public void testGetStateInterface() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStateInterface(); + } + + @Test + public void testSetStateInterface() throws Exception { + NotificationFields testSubject; + String stateInterface = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setStateInterface(stateInterface); + } + + @Test + public void testToString() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + NotificationFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + NotificationFields testSubject; + NotificationFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstanceTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstanceTest.java new file mode 100644 index 0000000..7092b17 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstanceTest.java @@ -0,0 +1,154 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalObject; +import org.onap.dcaegen2.ves.domain.ves70.ObjectInstance; +import org.onap.dcaegen2.ves.domain.ves70.ObjectKey; + + +public class ObjectInstanceTest { + + private ObjectInstance createTestSubject() { + return new ObjectInstance(); + } + + @Test + public void testGetJsonObject() throws Exception { + ObjectInstance testSubject; + AdditionalObject result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getJsonObject(); + } + + @Test + public void testSetJsonObject() throws Exception { + ObjectInstance testSubject; + AdditionalObject jsonObject = null; + + // default test + testSubject = createTestSubject(); + testSubject.setJsonObject(jsonObject); + } + + @Test + public void testGetObjectInstance() throws Exception { + ObjectInstance testSubject; + ObjectInstance result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getObjectInstance(); + } + + @Test + public void testSetObjectInstance() throws Exception { + ObjectInstance testSubject; + ObjectInstance objectInstance = null; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectInstance(objectInstance); + } + + @Test + public void testGetObjectInstanceEpochMicrosec() throws Exception { + ObjectInstance testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getObjectInstanceEpochMicrosec(); + } + + @Test + public void testSetObjectInstanceEpochMicrosec() throws Exception { + ObjectInstance testSubject; + Double objectInstanceEpochMicrosec = null; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectInstanceEpochMicrosec(objectInstanceEpochMicrosec); + } + + @Test + public void testGetObjectKeys() throws Exception { + ObjectInstance testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getObjectKeys(); + } + + @Test + public void testSetObjectKeys() throws Exception { + ObjectInstance testSubject; + List objectKeys = null; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectKeys(objectKeys); + } + + @Test + public void testToString() throws Exception { + ObjectInstance testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + ObjectInstance testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + ObjectInstance testSubject; + ObjectInstance testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKeyTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKeyTest.java new file mode 100644 index 0000000..759a748 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKeyTest.java @@ -0,0 +1,130 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.ObjectKey; + + +public class ObjectKeyTest { + + private ObjectKey createTestSubject() { + return new ObjectKey(); + } + + @Test + public void testGetKeyName() throws Exception { + ObjectKey testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyName(); + } + + @Test + public void testSetKeyName() throws Exception { + ObjectKey testSubject; + String keyName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setKeyName(keyName); + } + + @Test + public void testGetKeyOrder() throws Exception { + ObjectKey testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyOrder(); + } + + @Test + public void testSetKeyOrder() throws Exception { + ObjectKey testSubject; + Integer keyOrder = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setKeyOrder(keyOrder); + } + + @Test + public void testGetKeyValue() throws Exception { + ObjectKey testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyValue(); + } + + @Test + public void testSetKeyValue() throws Exception { + ObjectKey testSubject; + String keyValue = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setKeyValue(keyValue); + } + + @Test + public void testToString() throws Exception { + ObjectKey testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + ObjectKey testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + ObjectKey testSubject; + ObjectKey testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/OtherFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/OtherFieldsTest.java new file mode 100644 index 0000000..976cbbb --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/OtherFieldsTest.java @@ -0,0 +1,156 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalMeasurement; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalObject; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.OtherFields; +import org.onap.dcaegen2.ves.domain.ves70.OtherFields.OtherFieldsVersion; + + +public class OtherFieldsTest { + + private OtherFields createTestSubject() { + return new OtherFields(); + } + + @Test + public void testGetArrayOfNamedHashMap() throws Exception { + OtherFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getArrayOfNamedHashMap(); + } + + @Test + public void testSetArrayOfNamedHashMap() throws Exception { + OtherFields testSubject; + List arrayOfNamedHashMap = null; + + // default test + testSubject = createTestSubject(); + testSubject.setArrayOfNamedHashMap(arrayOfNamedHashMap); + } + + @Test + public void testGetHashMap() throws Exception { + OtherFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHashMap(); + } + + @Test + public void testSetHashMap() throws Exception { + OtherFields testSubject; + AlarmAdditionalInformation hashMap = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHashMap(hashMap); + } + + @Test + public void testGetJsonObjects() throws Exception { + OtherFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getJsonObjects(); + } + + @Test + public void testSetJsonObjects() throws Exception { + OtherFields testSubject; + List jsonObjects = null; + + // default test + testSubject = createTestSubject(); + testSubject.setJsonObjects(jsonObjects); + } + + @Test + public void testGetOtherFieldsVersion() throws Exception { + OtherFields testSubject; + OtherFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOtherFieldsVersion(); + } + + @Test + public void testSetOtherFieldsVersion() throws Exception { + OtherFields testSubject; + OtherFieldsVersion otherFieldsVersion = OtherFieldsVersion._3_0; + + // default test + testSubject = createTestSubject(); + testSubject.setOtherFieldsVersion(otherFieldsVersion); + } + + @Test + public void testToString() throws Exception { + OtherFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + OtherFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + OtherFields testSubject; + OtherFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFieldsTest.java new file mode 100644 index 0000000..d1f6f8b --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFieldsTest.java @@ -0,0 +1,333 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields; +import org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion; + + +public class PnfRegistrationFieldsTest { + + private PnfRegistrationFields createTestSubject() { + return new PnfRegistrationFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + PnfRegistrationFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + PnfRegistrationFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetLastServiceDate() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLastServiceDate(); + } + + @Test + public void testSetLastServiceDate() throws Exception { + PnfRegistrationFields testSubject; + String lastServiceDate = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setLastServiceDate(lastServiceDate); + } + + @Test + public void testGetMacAddress() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMacAddress(); + } + + @Test + public void testSetMacAddress() throws Exception { + PnfRegistrationFields testSubject; + String macAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMacAddress(macAddress); + } + + @Test + public void testGetManufactureDate() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getManufactureDate(); + } + + @Test + public void testSetManufactureDate() throws Exception { + PnfRegistrationFields testSubject; + String manufactureDate = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setManufactureDate(manufactureDate); + } + + @Test + public void testGetModelNumber() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModelNumber(); + } + + @Test + public void testSetModelNumber() throws Exception { + PnfRegistrationFields testSubject; + String modelNumber = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setModelNumber(modelNumber); + } + + @Test + public void testGetOamV4IpAddress() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOamV4IpAddress(); + } + + @Test + public void testSetOamV4IpAddress() throws Exception { + PnfRegistrationFields testSubject; + String oamV4IpAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOamV4IpAddress(oamV4IpAddress); + } + + @Test + public void testGetOamV6IpAddress() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOamV6IpAddress(); + } + + @Test + public void testSetOamV6IpAddress() throws Exception { + PnfRegistrationFields testSubject; + String oamV6IpAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOamV6IpAddress(oamV6IpAddress); + } + + @Test + public void testGetPnfRegistrationFieldsVersion() throws Exception { + PnfRegistrationFields testSubject; + PnfRegistrationFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPnfRegistrationFieldsVersion(); + } + + @Test + public void testSetPnfRegistrationFieldsVersion() throws Exception { + PnfRegistrationFields testSubject; + PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion = + PnfRegistrationFieldsVersion._2_0; + + // default test + testSubject = createTestSubject(); + testSubject.setPnfRegistrationFieldsVersion(pnfRegistrationFieldsVersion); + } + + @Test + public void testGetSerialNumber() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSerialNumber(); + } + + @Test + public void testSetSerialNumber() throws Exception { + PnfRegistrationFields testSubject; + String serialNumber = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSerialNumber(serialNumber); + } + + @Test + public void testGetSoftwareVersion() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSoftwareVersion(); + } + + @Test + public void testSetSoftwareVersion() throws Exception { + PnfRegistrationFields testSubject; + String softwareVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSoftwareVersion(softwareVersion); + } + + @Test + public void testGetUnitFamily() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUnitFamily(); + } + + @Test + public void testSetUnitFamily() throws Exception { + PnfRegistrationFields testSubject; + String unitFamily = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setUnitFamily(unitFamily); + } + + @Test + public void testGetUnitType() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUnitType(); + } + + @Test + public void testSetUnitType() throws Exception { + PnfRegistrationFields testSubject; + String unitType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setUnitType(unitType); + } + + @Test + public void testGetVendorName() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVendorName(); + } + + @Test + public void testSetVendorName() throws Exception { + PnfRegistrationFields testSubject; + String vendorName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setVendorName(vendorName); + } + + @Test + public void testToString() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + PnfRegistrationFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + PnfRegistrationFields testSubject; + PnfRegistrationFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArrayTest.java new file mode 100644 index 0000000..a88479e --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArrayTest.java @@ -0,0 +1,230 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.ProcessStatsArray; + + +public class ProcessStatsArrayTest { + + private ProcessStatsArray createTestSubject() { + return new ProcessStatsArray(); + } + + @Test + public void testGetForkRate() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getForkRate(); + } + + @Test + public void testSetForkRate() throws Exception { + ProcessStatsArray testSubject; + Double forkRate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setForkRate(forkRate); + } + + @Test + public void testGetProcessIdentifier() throws Exception { + ProcessStatsArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessIdentifier(); + } + + @Test + public void testSetProcessIdentifier() throws Exception { + ProcessStatsArray testSubject; + String processIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessIdentifier(processIdentifier); + } + + @Test + public void testGetPsStateBlocked() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStateBlocked(); + } + + @Test + public void testSetPsStateBlocked() throws Exception { + ProcessStatsArray testSubject; + Double psStateBlocked = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStateBlocked(psStateBlocked); + } + + @Test + public void testGetPsStatePaging() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStatePaging(); + } + + @Test + public void testSetPsStatePaging() throws Exception { + ProcessStatsArray testSubject; + Double psStatePaging = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStatePaging(psStatePaging); + } + + @Test + public void testGetPsStateRunning() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStateRunning(); + } + + @Test + public void testSetPsStateRunning() throws Exception { + ProcessStatsArray testSubject; + Double psStateRunning = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStateRunning(psStateRunning); + } + + @Test + public void testGetPsStateSleeping() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStateSleeping(); + } + + @Test + public void testSetPsStateSleeping() throws Exception { + ProcessStatsArray testSubject; + Double psStateSleeping = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStateSleeping(psStateSleeping); + } + + @Test + public void testGetPsStateStopped() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStateStopped(); + } + + @Test + public void testSetPsStateStopped() throws Exception { + ProcessStatsArray testSubject; + Double psStateStopped = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStateStopped(psStateStopped); + } + + @Test + public void testGetPsStateZombie() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStateZombie(); + } + + @Test + public void testSetPsStateZombie() throws Exception { + ProcessStatsArray testSubject; + Double psStateZombie = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStateZombie(psStateZombie); + } + + @Test + public void testToString() throws Exception { + ProcessStatsArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + ProcessStatsArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + ProcessStatsArray testSubject; + ProcessStatsArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArrayTest.java new file mode 100644 index 0000000..55c39e4 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArrayTest.java @@ -0,0 +1,111 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.ProcessorDimmAggregateThermalMarginArray; + + +public class ProcessorDimmAggregateThermalMarginArrayTest { + + private ProcessorDimmAggregateThermalMarginArray createTestSubject() { + return new ProcessorDimmAggregateThermalMarginArray(); + } + + @Test + public void testGetProcessorDimmAggregateThermalMarginIdentifier() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessorDimmAggregateThermalMarginIdentifier(); + } + + @Test + public void testSetProcessorDimmAggregateThermalMarginIdentifier() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + String processorDimmAggregateThermalMarginIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessorDimmAggregateThermalMarginIdentifier( + processorDimmAggregateThermalMarginIdentifier); + } + + @Test + public void testGetThermalMargin() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getThermalMargin(); + } + + @Test + public void testSetThermalMargin() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + Double thermalMargin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setThermalMargin(thermalMargin); + } + + @Test + public void testToString() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + ProcessorDimmAggregateThermalMarginArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFieldsTest.java new file mode 100644 index 0000000..a8a0c13 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFieldsTest.java @@ -0,0 +1,271 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.SipSignalingFields.SipSignalingFieldsVersion; + + + +public class SipSignalingFieldsTest { + + private SipSignalingFields createTestSubject() { + return new SipSignalingFields(); + } + + @Test + public void testGetAdditionalInformation() throws Exception { + SipSignalingFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalInformation(); + } + + @Test + public void testSetAdditionalInformation() throws Exception { + SipSignalingFields testSubject; + AlarmAdditionalInformation additionalInformation = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalInformation(additionalInformation); + } + + @Test + public void testGetCompressedSip() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCompressedSip(); + } + + @Test + public void testSetCompressedSip() throws Exception { + SipSignalingFields testSubject; + String compressedSip = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCompressedSip(compressedSip); + } + + @Test + public void testGetCorrelator() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCorrelator(); + } + + @Test + public void testSetCorrelator() throws Exception { + SipSignalingFields testSubject; + String correlator = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCorrelator(correlator); + } + + @Test + public void testGetLocalIpAddress() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalIpAddress(); + } + + @Test + public void testSetLocalIpAddress() throws Exception { + SipSignalingFields testSubject; + String localIpAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalIpAddress(localIpAddress); + } + + @Test + public void testGetLocalPort() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalPort(); + } + + @Test + public void testSetLocalPort() throws Exception { + SipSignalingFields testSubject; + String localPort = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalPort(localPort); + } + + @Test + public void testGetRemoteIpAddress() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRemoteIpAddress(); + } + + @Test + public void testSetRemoteIpAddress() throws Exception { + SipSignalingFields testSubject; + String remoteIpAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRemoteIpAddress(remoteIpAddress); + } + + @Test + public void testGetRemotePort() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRemotePort(); + } + + @Test + public void testSetRemotePort() throws Exception { + SipSignalingFields testSubject; + String remotePort = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRemotePort(remotePort); + } + + @Test + public void testGetSipSignalingFieldsVersion() throws Exception { + SipSignalingFields testSubject; + SipSignalingFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSipSignalingFieldsVersion(); + } + + @Test + public void testSetSipSignalingFieldsVersion() throws Exception { + SipSignalingFields testSubject; + SipSignalingFieldsVersion sipSignalingFieldsVersion = SipSignalingFieldsVersion._3_0; + + // default test + testSubject = createTestSubject(); + testSubject.setSipSignalingFieldsVersion(sipSignalingFieldsVersion); + } + + @Test + public void testGetSummarySip() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSummarySip(); + } + + @Test + public void testSetSummarySip() throws Exception { + SipSignalingFields testSubject; + String summarySip = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSummarySip(summarySip); + } + + @Test + public void testGetVendorNfNameFields() throws Exception { + SipSignalingFields testSubject; + VendorNfNameFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVendorNfNameFields(); + } + + @Test + public void testSetVendorNfNameFields() throws Exception { + SipSignalingFields testSubject; + VendorNfNameFields vendorNfNameFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVendorNfNameFields(vendorNfNameFields); + } + + @Test + public void testToString() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + SipSignalingFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + SipSignalingFields testSubject; + SipSignalingFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFieldsTest.java new file mode 100644 index 0000000..4adb2b1 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFieldsTest.java @@ -0,0 +1,174 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.StateChangeFields; +import org.onap.dcaegen2.ves.domain.ves70.StateChangeFields.NewState; +import org.onap.dcaegen2.ves.domain.ves70.StateChangeFields.OldState; +import org.onap.dcaegen2.ves.domain.ves70.StateChangeFields.StateChangeFieldsVersion; + + +public class StateChangeFieldsTest { + + private StateChangeFields createTestSubject() { + return new StateChangeFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + StateChangeFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + StateChangeFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetNewState() throws Exception { + StateChangeFields testSubject; + NewState result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNewState(); + } + + @Test + public void testSetNewState() throws Exception { + StateChangeFields testSubject; + NewState newState = NewState.IN_SERVICE; + + // default test + testSubject = createTestSubject(); + testSubject.setNewState(newState); + } + + @Test + public void testGetOldState() throws Exception { + StateChangeFields testSubject; + OldState result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOldState(); + } + + @Test + public void testSetOldState() throws Exception { + StateChangeFields testSubject; + OldState oldState = OldState.IN_SERVICE; + + // default test + testSubject = createTestSubject(); + testSubject.setOldState(oldState); + } + + @Test + public void testGetStateChangeFieldsVersion() throws Exception { + StateChangeFields testSubject; + StateChangeFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStateChangeFieldsVersion(); + } + + @Test + public void testSetStateChangeFieldsVersion() throws Exception { + StateChangeFields testSubject; + StateChangeFieldsVersion stateChangeFieldsVersion = StateChangeFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setStateChangeFieldsVersion(stateChangeFieldsVersion); + } + + @Test + public void testGetStateInterface() throws Exception { + StateChangeFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStateInterface(); + } + + @Test + public void testSetStateInterface() throws Exception { + StateChangeFields testSubject; + String stateInterface = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setStateInterface(stateInterface); + } + + @Test + public void testToString() throws Exception { + StateChangeFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + StateChangeFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + StateChangeFields testSubject; + StateChangeFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFieldsTest.java new file mode 100644 index 0000000..c15766f --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFieldsTest.java @@ -0,0 +1,393 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.SyslogFields; +import org.onap.dcaegen2.ves.domain.ves70.SyslogFields.SyslogFieldsVersion; +import org.onap.dcaegen2.ves.domain.ves70.SyslogFields.SyslogSev; + + +public class SyslogFieldsTest { + + private SyslogFields createTestSubject() { + return new SyslogFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + SyslogFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + SyslogFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetEventSourceHost() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventSourceHost(); + } + + @Test + public void testSetEventSourceHost() throws Exception { + SyslogFields testSubject; + String eventSourceHost = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSourceHost(eventSourceHost); + } + + @Test + public void testGetEventSourceType() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventSourceType(); + } + + @Test + public void testSetEventSourceType() throws Exception { + SyslogFields testSubject; + String eventSourceType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSourceType(eventSourceType); + } + + @Test + public void testGetSyslogFacility() throws Exception { + SyslogFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogFacility(); + } + + @Test + public void testSetSyslogFacility() throws Exception { + SyslogFields testSubject; + Integer syslogFacility = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogFacility(syslogFacility); + } + + @Test + public void testGetSyslogFieldsVersion() throws Exception { + SyslogFields testSubject; + SyslogFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogFieldsVersion(); + } + + @Test + public void testSetSyslogFieldsVersion() throws Exception { + SyslogFields testSubject; + SyslogFieldsVersion syslogFieldsVersion = SyslogFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogFieldsVersion(syslogFieldsVersion); + } + + @Test + public void testGetSyslogMsg() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogMsg(); + } + + @Test + public void testSetSyslogMsg() throws Exception { + SyslogFields testSubject; + String syslogMsg = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogMsg(syslogMsg); + } + + @Test + public void testGetSyslogMsgHost() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogMsgHost(); + } + + @Test + public void testSetSyslogMsgHost() throws Exception { + SyslogFields testSubject; + String syslogMsgHost = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogMsgHost(syslogMsgHost); + } + + @Test + public void testGetSyslogPri() throws Exception { + SyslogFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogPri(); + } + + @Test + public void testSetSyslogPri() throws Exception { + SyslogFields testSubject; + Integer syslogPri = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogPri(syslogPri); + } + + @Test + public void testGetSyslogProc() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogProc(); + } + + @Test + public void testSetSyslogProc() throws Exception { + SyslogFields testSubject; + String syslogProc = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogProc(syslogProc); + } + + @Test + public void testGetSyslogProcId() throws Exception { + SyslogFields testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogProcId(); + } + + @Test + public void testSetSyslogProcId() throws Exception { + SyslogFields testSubject; + Double syslogProcId = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogProcId(syslogProcId); + } + + @Test + public void testGetSyslogSData() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogSData(); + } + + @Test + public void testSetSyslogSData() throws Exception { + SyslogFields testSubject; + String syslogSData = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogSData(syslogSData); + } + + @Test + public void testGetSyslogSdId() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogSdId(); + } + + @Test + public void testSetSyslogSdId() throws Exception { + SyslogFields testSubject; + String syslogSdId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogSdId(syslogSdId); + } + + @Test + public void testGetSyslogSev() throws Exception { + SyslogFields testSubject; + SyslogSev result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogSev(); + } + + @Test + public void testSetSyslogSev() throws Exception { + SyslogFields testSubject; + SyslogSev syslogSev = SyslogSev.ALERT; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogSev(syslogSev); + } + + @Test + public void testGetSyslogTag() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogTag(); + } + + @Test + public void testSetSyslogTag() throws Exception { + SyslogFields testSubject; + String syslogTag = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogTag(syslogTag); + } + + @Test + public void testGetSyslogTs() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogTs(); + } + + @Test + public void testSetSyslogTs() throws Exception { + SyslogFields testSubject; + String syslogTs = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogTs(syslogTs); + } + + @Test + public void testGetSyslogVer() throws Exception { + SyslogFields testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogVer(); + } + + @Test + public void testSetSyslogVer() throws Exception { + SyslogFields testSubject; + Double syslogVer = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogVer(syslogVer); + } + + @Test + public void testToString() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + SyslogFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + SyslogFields testSubject; + SyslogFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFieldsTest.java new file mode 100644 index 0000000..279738a --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFieldsTest.java @@ -0,0 +1,403 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalParameter; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.ThresholdCrossingAlertFields; +import org.onap.dcaegen2.ves.domain.ves70.ThresholdCrossingAlertFields.AlertAction; +import org.onap.dcaegen2.ves.domain.ves70.ThresholdCrossingAlertFields.AlertType; +import org.onap.dcaegen2.ves.domain.ves70.ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion; + + +public class ThresholdCrossingAlertFieldsTest { + + private ThresholdCrossingAlertFields createTestSubject() { + return new ThresholdCrossingAlertFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + ThresholdCrossingAlertFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + ThresholdCrossingAlertFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetAdditionalParameters() throws Exception { + ThresholdCrossingAlertFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalParameters(); + } + + @Test + public void testSetAdditionalParameters() throws Exception { + ThresholdCrossingAlertFields testSubject; + List additionalParameters = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalParameters(additionalParameters); + } + + @Test + public void testGetAlertAction() throws Exception { + ThresholdCrossingAlertFields testSubject; + + AlertAction result; + + // default test + testSubject = createTestSubject(); + AlertAction alertAction = AlertAction.CLEAR; + testSubject.setAlertAction(alertAction); + result = testSubject.getAlertAction(); + assertEquals(alertAction, result); + } + + @Test + public void testSetAlertAction() throws Exception { + ThresholdCrossingAlertFields testSubject; + AlertAction alertAction = AlertAction.CLEAR; + + // default test + testSubject = createTestSubject(); + testSubject.setAlertAction(alertAction); + } + + @Test + public void testGetAlertDescription() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlertDescription(); + } + + @Test + public void testSetAlertDescription() throws Exception { + ThresholdCrossingAlertFields testSubject; + String alertDescription = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAlertDescription(alertDescription); + } + + @Test + public void testGetAlertType() throws Exception { + ThresholdCrossingAlertFields testSubject; + AlertType result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlertType(); + } + + @Test + public void testSetAlertType() throws Exception { + ThresholdCrossingAlertFields testSubject; + AlertType alertType = AlertType.CARD_ANOMALY; + + // default test + testSubject = createTestSubject(); + testSubject.setAlertType(alertType); + } + + @Test + public void testGetAlertValue() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlertValue(); + } + + @Test + public void testSetAlertValue() throws Exception { + ThresholdCrossingAlertFields testSubject; + String alertValue = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAlertValue(alertValue); + } + + @Test + public void testGetAssociatedAlertIdList() throws Exception { + ThresholdCrossingAlertFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAssociatedAlertIdList(); + } + + @Test + public void testSetAssociatedAlertIdList() throws Exception { + ThresholdCrossingAlertFields testSubject; + List associatedAlertIdList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAssociatedAlertIdList(associatedAlertIdList); + } + + @Test + public void testGetCollectionTimestamp() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCollectionTimestamp(); + } + + @Test + public void testSetCollectionTimestamp() throws Exception { + ThresholdCrossingAlertFields testSubject; + String collectionTimestamp = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCollectionTimestamp(collectionTimestamp); + } + + @Test + public void testGetDataCollector() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDataCollector(); + } + + @Test + public void testSetDataCollector() throws Exception { + ThresholdCrossingAlertFields testSubject; + String dataCollector = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setDataCollector(dataCollector); + } + + @Test + public void testGetElementType() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getElementType(); + } + + @Test + public void testSetElementType() throws Exception { + ThresholdCrossingAlertFields testSubject; + String elementType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setElementType(elementType); + } + + @Test + public void testGetEventSeverity() throws Exception { + ThresholdCrossingAlertFields testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSeverity(ThresholdCrossingAlertFields.EventSeverity.MINOR); + ThresholdCrossingAlertFields.EventSeverity result = testSubject.getEventSeverity(); + assertEquals(ThresholdCrossingAlertFields.EventSeverity.MINOR, result); + } + + @Test + public void testSetEventSeverity() throws Exception { + ThresholdCrossingAlertFields testSubject; + ThresholdCrossingAlertFields.EventSeverity eventSeverity = + ThresholdCrossingAlertFields.EventSeverity.MINOR; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSeverity(eventSeverity); + } + + @Test + public void testGetEventStartTimestamp() throws Exception { + ThresholdCrossingAlertFields testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getEventStartTimestamp(); + } + + @Test + public void testSetEventStartTimestamp() throws Exception { + ThresholdCrossingAlertFields testSubject; + String eventStartTimestamp = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventStartTimestamp(eventStartTimestamp); + } + + @Test + public void testGetInterfaceName() throws Exception { + ThresholdCrossingAlertFields testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.getInterfaceName(); + } + + @Test + public void testSetInterfaceName() throws Exception { + ThresholdCrossingAlertFields testSubject; + String interfaceName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setInterfaceName(interfaceName); + } + + @Test + public void testGetNetworkService() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNetworkService(); + } + + @Test + public void testSetNetworkService() throws Exception { + ThresholdCrossingAlertFields testSubject; + String networkService = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNetworkService(networkService); + } + + @Test + public void testGetPossibleRootCause() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPossibleRootCause(); + } + + @Test + public void testSetPossibleRootCause() throws Exception { + ThresholdCrossingAlertFields testSubject; + String possibleRootCause = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPossibleRootCause(possibleRootCause); + } + + @Test + public void testGetThresholdCrossingFieldsVersion() throws Exception { + ThresholdCrossingAlertFields testSubject; + ThresholdCrossingFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getThresholdCrossingFieldsVersion(); + } + + @Test + public void testSetThresholdCrossingFieldsVersion() throws Exception { + ThresholdCrossingAlertFields testSubject; + ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion = null; + + // default test + testSubject = createTestSubject(); + testSubject.setThresholdCrossingFieldsVersion(thresholdCrossingFieldsVersion); + } + + @Test + public void testToString() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + ThresholdCrossingAlertFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + ThresholdCrossingAlertFields testSubject; + ThresholdCrossingAlertFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFieldsTest.java new file mode 100644 index 0000000..33ce523 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFieldsTest.java @@ -0,0 +1,130 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.VendorNfNameFields; + + +public class VendorNfNameFieldsTest { + + private VendorNfNameFields createTestSubject() { + return new VendorNfNameFields(); + } + + @Test + public void testGetVendorName() throws Exception { + VendorNfNameFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVendorName(); + } + + @Test + public void testSetVendorName() throws Exception { + VendorNfNameFields testSubject; + String vendorName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setVendorName(vendorName); + } + + @Test + public void testGetNfModuleName() throws Exception { + VendorNfNameFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfModuleName(); + } + + @Test + public void testSetNfModuleName() throws Exception { + VendorNfNameFields testSubject; + String nfModuleName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfModuleName(nfModuleName); + } + + @Test + public void testGetNfName() throws Exception { + VendorNfNameFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfName(); + } + + @Test + public void testSetNfName() throws Exception { + VendorNfNameFields testSubject; + String nfName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfName(nfName); + } + + @Test + public void testToString() throws Exception { + VendorNfNameFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + VendorNfNameFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + VendorNfNameFields testSubject; + VendorNfNameFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VesEventTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VesEventTest.java new file mode 100644 index 0000000..b84a085 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VesEventTest.java @@ -0,0 +1,114 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.Map; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.Event; +import org.onap.dcaegen2.ves.domain.ves70.VesEvent; + + +public class VesEventTest { + + private VesEvent createTestSubject() { + return new VesEvent(); + } + + @Test + public void testGetEvent() throws Exception { + VesEvent testSubject; + Event result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEvent(); + } + + @Test + public void testSetEvent() throws Exception { + VesEvent testSubject; + Event event = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEvent(event); + } + + @Test + public void testToString() throws Exception { + VesEvent testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testGetAdditionalProperties() throws Exception { + VesEvent testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalProperties(); + } + + @Test + public void testSetAdditionalProperty() throws Exception { + VesEvent testSubject; + String name = ""; + Object value = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalProperty(name, value); + } + + @Test + public void testHashCode() throws Exception { + VesEvent testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + VesEvent testSubject; + VesEvent testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFieldsTest.java new file mode 100644 index 0000000..db0ab39 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFieldsTest.java @@ -0,0 +1,254 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.EndOfCallVqmSummaries; +import org.onap.dcaegen2.ves.domain.ves70.VendorNfNameFields; +import org.onap.dcaegen2.ves.domain.ves70.VoiceQualityFields; +import org.onap.dcaegen2.ves.domain.ves70.VoiceQualityFields.VoiceQualityFieldsVersion; + + +public class VoiceQualityFieldsTest { + + private VoiceQualityFields createTestSubject() { + return new VoiceQualityFields(); + } + + @Test + public void testGetAdditionalInformation() throws Exception { + VoiceQualityFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalInformation(); + } + + @Test + public void testSetAdditionalInformation() throws Exception { + VoiceQualityFields testSubject; + AlarmAdditionalInformation additionalInformation = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalInformation(additionalInformation); + } + + @Test + public void testGetCalleeSideCodec() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCalleeSideCodec(); + } + + @Test + public void testSetCalleeSideCodec() throws Exception { + VoiceQualityFields testSubject; + String calleeSideCodec = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCalleeSideCodec(calleeSideCodec); + } + + @Test + public void testGetCallerSideCodec() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCallerSideCodec(); + } + + @Test + public void testSetCallerSideCodec() throws Exception { + VoiceQualityFields testSubject; + String callerSideCodec = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCallerSideCodec(callerSideCodec); + } + + @Test + public void testGetCorrelator() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCorrelator(); + } + + @Test + public void testSetCorrelator() throws Exception { + VoiceQualityFields testSubject; + String correlator = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCorrelator(correlator); + } + + @Test + public void testGetEndOfCallVqmSummaries() throws Exception { + VoiceQualityFields testSubject; + EndOfCallVqmSummaries result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndOfCallVqmSummaries(); + } + + @Test + public void testSetEndOfCallVqmSummaries() throws Exception { + VoiceQualityFields testSubject; + EndOfCallVqmSummaries endOfCallVqmSummaries = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndOfCallVqmSummaries(endOfCallVqmSummaries); + } + + @Test + public void testGetPhoneNumber() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPhoneNumber(); + } + + @Test + public void testSetPhoneNumber() throws Exception { + VoiceQualityFields testSubject; + String phoneNumber = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPhoneNumber(phoneNumber); + } + + @Test + public void testGetMidCallRtcp() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMidCallRtcp(); + } + + @Test + public void testSetMidCallRtcp() throws Exception { + VoiceQualityFields testSubject; + String midCallRtcp = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMidCallRtcp(midCallRtcp); + } + + @Test + public void testGetVendorNfNameFields() throws Exception { + VoiceQualityFields testSubject; + VendorNfNameFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVendorNfNameFields(); + } + + @Test + public void testSetVendorNfNameFields() throws Exception { + VoiceQualityFields testSubject; + VendorNfNameFields vendorNfNameFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVendorNfNameFields(vendorNfNameFields); + } + + @Test + public void testGetVoiceQualityFieldsVersion() throws Exception { + VoiceQualityFields testSubject; + VoiceQualityFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVoiceQualityFieldsVersion(); + } + + @Test + public void testSetVoiceQualityFieldsVersion() throws Exception { + VoiceQualityFields testSubject; + VoiceQualityFieldsVersion voiceQualityFieldsVersion = VoiceQualityFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setVoiceQualityFieldsVersion(voiceQualityFieldsVersion); + } + + @Test + public void testToString() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + VoiceQualityFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + VoiceQualityFields testSubject; + VoiceQualityFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurementTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurementTest.java deleted file mode 100644 index e1cb555..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurementTest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - -public class AdditionalMeasurementTest { - - private AdditionalMeasurement createTestSubject() { - return new AdditionalMeasurement(); - } - - @Test - public void testGetName() throws Exception { - AdditionalMeasurement testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getName(); - } - - @Test - public void testSetName() throws Exception { - AdditionalMeasurement testSubject; - String name = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setName(name); - } - - @Test - public void testGetHashMap() throws Exception { - AdditionalMeasurement testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.getHashMap(); - } - - @Test - public void testSetHashMap() throws Exception { - AdditionalMeasurement testSubject; - AlarmAdditionalInformation hashMap = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHashMap(hashMap); - } - - @Test - public void testToString() throws Exception { - AdditionalMeasurement testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - AdditionalMeasurement testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - AdditionalMeasurement testSubject; - AdditionalMeasurement testSubject2; - Object other = null; - boolean result; - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObjectTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObjectTest.java deleted file mode 100644 index e0dd676..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObjectTest.java +++ /dev/null @@ -1,189 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; - - -public class AdditionalObjectTest { - - private AdditionalObject createTestSubject() { - return new AdditionalObject(); - } - - @Test - public void testGetObjectInstances() throws Exception { - AdditionalObject testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.getObjectInstances(); - } - - @Test - public void testSetObjectInstances() throws Exception { - AdditionalObject testSubject; - List objectInstances = null; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectInstances(objectInstances); - } - - @Test - public void testGetObjectName() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getObjectName(); - } - - @Test - public void testSetObjectName() throws Exception { - AdditionalObject testSubject; - String objectName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectName(objectName); - } - - @Test - public void testGetObjectSchema() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getObjectSchema(); - } - - @Test - public void testSetObjectSchema() throws Exception { - AdditionalObject testSubject; - String objectSchema = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectSchema(objectSchema); - } - - @Test - public void testGetObjectSchemaUrl() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getObjectSchemaUrl(); - } - - @Test - public void testSetObjectSchemaUrl() throws Exception { - AdditionalObject testSubject; - String objectSchemaUrl = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectSchemaUrl(objectSchemaUrl); - } - - @Test - public void testGetNfSubscribedObjectName() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getNfSubscribedObjectName(); - } - - @Test - public void testSetNfSubscribedObjectName() throws Exception { - AdditionalObject testSubject; - String nfSubscribedObjectName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfSubscribedObjectName(nfSubscribedObjectName); - } - - @Test - public void testGetNfSubscriptionId() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getNfSubscriptionId(); - } - - @Test - public void testSetNfSubscriptionId() throws Exception { - AdditionalObject testSubject; - String nfSubscriptionId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfSubscriptionId(nfSubscriptionId); - } - - @Test - public void testToString() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - AdditionalObject testSubject; - AdditionalObject testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameterTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameterTest.java deleted file mode 100644 index 4b911cf..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameterTest.java +++ /dev/null @@ -1,127 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.AdditionalParameter.Criticality; - - -public class AdditionalParameterTest { - - private AdditionalParameter createTestSubject() { - return new AdditionalParameter(); - } - - @Test - public void getCriticalityTest() throws Exception { - AdditionalParameter testSubject; - Criticality result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCriticality(); - } - - @Test - public void setCriticalityTest() throws Exception { - AdditionalParameter testSubject; - Criticality criticality = Criticality.CRIT; - - // default test - testSubject = createTestSubject(); - testSubject.setCriticality(criticality); - } - - @Test - public void getHashMapTest() throws Exception { - AdditionalParameter testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHashMap(); - } - - @Test - public void setHashMapTest() throws Exception { - AdditionalParameter testSubject; - AlarmAdditionalInformation hashMap = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHashMap(hashMap); - } - - @Test - public void getThresholdCrossedTest() throws Exception { - AdditionalParameter testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getThresholdCrossed(); - } - - @Test - public void setThresholdCrossedTest() throws Exception { - AdditionalParameter testSubject; - String thresholdCrossed = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setThresholdCrossed(thresholdCrossed); - } - - @Test - public void toStringTest() throws Exception { - AdditionalParameter testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void hashCodeTest() throws Exception { - AdditionalParameter testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void equalsTest() throws Exception { - AdditionalParameter testSubject; - AdditionalParameter testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformationTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformationTest.java deleted file mode 100644 index 88f6eaa..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformationTest.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.Map; -import org.junit.Test; - - -public class AlarmAdditionalInformationTest { - - private AlarmAdditionalInformation createTestSubject() { - return new AlarmAdditionalInformation(); - } - - @Test - public void testToString() throws Exception { - AlarmAdditionalInformation testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testGetAdditionalProperties() throws Exception { - AlarmAdditionalInformation testSubject; - Map result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - @Test - public void testSetAdditionalProperty() throws Exception { - AlarmAdditionalInformation testSubject; - String name = ""; - String value = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } - - @Test - public void testHashCode() throws Exception { - AlarmAdditionalInformation testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - AlarmAdditionalInformation testSubject; - AlarmAdditionalInformation testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArrayTest.java deleted file mode 100644 index 79741ae..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class CodecUsageArrayTest { - - private CodecUsageArray createTestSubject() { - return new CodecUsageArray(); - } - - @Test - public void testGetCodecIdentifier() throws Exception { - CodecUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCodecIdentifier(); - } - - @Test - public void testSetCodecIdentifier() throws Exception { - CodecUsageArray testSubject; - String codecIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCodecIdentifier(codecIdentifier); - } - - @Test - public void testGetNumberInUse() throws Exception { - CodecUsageArray testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumberInUse(); - } - - @Test - public void testSetNumberInUse() throws Exception { - CodecUsageArray testSubject; - Integer numberInUse = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setNumberInUse(numberInUse); - } - - @Test - public void testToString() throws Exception { - CodecUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - CodecUsageArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - CodecUsageArray testSubject; - CodecUsageArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeaderTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeaderTest.java deleted file mode 100644 index 4eb9166..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeaderTest.java +++ /dev/null @@ -1,471 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Domain; -import org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.VesEventListenerVersion; - - -public class CommonEventHeaderTest { - - private CommonEventHeader createTestSubject() { - return new CommonEventHeader(); - } - - @Test - public void testGetTs1() throws Exception { - CommonEventHeader testSubject; - long result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTs1(); - } - - @Test - public void testSetTs1() throws Exception { - CommonEventHeader testSubject; - long ts1 = 123222; - - // default test - testSubject = createTestSubject(); - testSubject.setTs1(ts1); - } - - @Test - public void testGetDomain() throws Exception { - CommonEventHeader testSubject; - Domain result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDomain(); - } - - @Test - public void testSetDomain() throws Exception { - CommonEventHeader testSubject; - Domain domain = CommonEventHeader.Domain.FAULT; - - // default test - testSubject = createTestSubject(); - testSubject.setDomain(domain); - } - - @Test - public void testGetEventId() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventId(); - } - - @Test - public void testSetEventId() throws Exception { - CommonEventHeader testSubject; - String eventId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventId(eventId); - } - - @Test - public void testGetEventName() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventName(); - } - - @Test - public void testSetEventName() throws Exception { - CommonEventHeader testSubject; - String eventName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventName(eventName); - } - - @Test - public void testGetEventType() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventType(); - } - - @Test - public void testSetEventType() throws Exception { - CommonEventHeader testSubject; - String eventType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventType(eventType); - } - - @Test - public void testGetInternalHeaderFields() throws Exception { - CommonEventHeader testSubject; - InternalHeaderFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getInternalHeaderFields(); - } - - @Test - public void testSetInternalHeaderFields() throws Exception { - CommonEventHeader testSubject; - InternalHeaderFields internalHeaderFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setInternalHeaderFields(internalHeaderFields); - } - - @Test - public void testGetLastEpochMicrosec() throws Exception { - CommonEventHeader testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLastEpochMicrosec(); - } - - @Test - public void testSetLastEpochMicrosec() throws Exception { - CommonEventHeader testSubject; - Double lastEpochMicrosec = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLastEpochMicrosec(lastEpochMicrosec); - } - - @Test - public void testGetNfcNamingCode() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfcNamingCode(); - } - - @Test - public void testSetNfcNamingCode() throws Exception { - CommonEventHeader testSubject; - String nfcNamingCode = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfcNamingCode(nfcNamingCode); - } - - @Test - public void testGetNfNamingCode() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfNamingCode(); - } - - @Test - public void testSetNfNamingCode() throws Exception { - CommonEventHeader testSubject; - String nfNamingCode = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfNamingCode(nfNamingCode); - } - - @Test - public void testGetNfVendorName() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfVendorName(); - } - - @Test - public void testSetNfVendorName() throws Exception { - CommonEventHeader testSubject; - String nfVendorName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfVendorName(nfVendorName); - } - - @Test - public void testGetPriority() throws Exception { - CommonEventHeader testSubject; - CommonEventHeader.Priority result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPriority(); - } - - @Test - public void testSetPriority() throws Exception { - CommonEventHeader testSubject; - CommonEventHeader.Priority priority = CommonEventHeader.Priority.HIGH; - - // default test - testSubject = createTestSubject(); - testSubject.setPriority(priority); - } - - @Test - public void testGetReportingEntityId() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReportingEntityId(); - } - - @Test - public void testSetReportingEntityId() throws Exception { - CommonEventHeader testSubject; - String reportingEntityId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setReportingEntityId(reportingEntityId); - } - - @Test - public void testGetReportingEntityName() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReportingEntityName(); - } - - @Test - public void testSetReportingEntityName() throws Exception { - CommonEventHeader testSubject; - String reportingEntityName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setReportingEntityName(reportingEntityName); - } - - @Test - public void testGetSequence() throws Exception { - CommonEventHeader testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSequence(); - } - - @Test - public void testSetSequence() throws Exception { - CommonEventHeader testSubject; - Integer sequence = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setSequence(sequence); - } - - @Test - public void testGetSourceId() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSourceId(); - } - - @Test - public void testSetSourceId() throws Exception { - CommonEventHeader testSubject; - String sourceId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSourceId(sourceId); - } - - @Test - public void testGetSourceName() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSourceName(); - } - - @Test - public void testSetSourceName() throws Exception { - CommonEventHeader testSubject; - String sourceName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSourceName(sourceName); - } - - @Test - public void testGetStartEpochMicrosec() throws Exception { - CommonEventHeader testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStartEpochMicrosec(); - } - - @Test - public void testSetStartEpochMicrosec() throws Exception { - CommonEventHeader testSubject; - Double startEpochMicrosec = null; - - // default test - testSubject = createTestSubject(); - testSubject.setStartEpochMicrosec(startEpochMicrosec); - } - - @Test - public void testGetTimeZoneOffset() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTimeZoneOffset(); - } - - @Test - public void testSetTimeZoneOffset() throws Exception { - CommonEventHeader testSubject; - String timeZoneOffset = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setTimeZoneOffset(timeZoneOffset); - } - - @Test - public void testGetVersion() throws Exception { - CommonEventHeader testSubject; - CommonEventHeader.Version result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVersion(); - } - - @Test - public void testSetVersion() throws Exception { - CommonEventHeader testSubject; - CommonEventHeader.Version version = CommonEventHeader.Version._4_0_1; - - // default test - testSubject = createTestSubject(); - testSubject.setVersion(version); - } - - @Test - public void testGetVesEventListenerVersion() throws Exception { - CommonEventHeader testSubject; - VesEventListenerVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVesEventListenerVersion(); - } - - @Test - public void testSetVesEventListenerVersion() throws Exception { - CommonEventHeader testSubject; - VesEventListenerVersion vesEventListenerVersion = - CommonEventHeader.VesEventListenerVersion._7_0_1; - - // default test - testSubject = createTestSubject(); - testSubject.setVesEventListenerVersion(vesEventListenerVersion); - } - - @Test - public void testToString() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - CommonEventHeader testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - CommonEventHeader testSubject; - CommonEventHeader testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArrayTest.java deleted file mode 100644 index 91b0fa7..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArrayTest.java +++ /dev/null @@ -1,407 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class CpuUsageArrayTest { - - private CpuUsageArray createTestSubject() { - return new CpuUsageArray(); - } - - @Test - public void testGetCpuCapacityContention() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuCapacityContention(); - } - - @Test - public void testSetCpuCapacityContention() throws Exception { - CpuUsageArray testSubject; - Double cpuCapacityContention = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuCapacityContention(cpuCapacityContention); - } - - @Test - public void testGetCpuDemandAvg() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuDemandAvg(); - } - - @Test - public void testSetCpuDemandAvg() throws Exception { - CpuUsageArray testSubject; - Double cpuDemandAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuDemandAvg(cpuDemandAvg); - } - - @Test - public void testGetCpuDemandMhz() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuDemandMhz(); - } - - @Test - public void testSetCpuDemandMhz() throws Exception { - CpuUsageArray testSubject; - Double cpuDemandMhz = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuDemandMhz(cpuDemandMhz); - } - - @Test - public void testGetCpuDemandPct() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuDemandPct(); - } - - @Test - public void testSetCpuDemandPct() throws Exception { - CpuUsageArray testSubject; - Double cpuDemandPct = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuDemandPct(cpuDemandPct); - } - - @Test - public void testGetCpuIdentifier() throws Exception { - CpuUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuIdentifier(); - } - - @Test - public void testSetCpuIdentifier() throws Exception { - CpuUsageArray testSubject; - String cpuIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuIdentifier(cpuIdentifier); - } - - @Test - public void testGetCpuIdle() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuIdle(); - } - - @Test - public void testSetCpuIdle() throws Exception { - CpuUsageArray testSubject; - Double cpuIdle = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuIdle(cpuIdle); - } - - @Test - public void testGetCpuLatencyAvg() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuLatencyAvg(); - } - - @Test - public void testSetCpuLatencyAvg() throws Exception { - CpuUsageArray testSubject; - Double cpuLatencyAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuLatencyAvg(cpuLatencyAvg); - } - - @Test - public void testGetCpuOverheadAvg() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuOverheadAvg(); - } - - @Test - public void testSetCpuOverheadAvg() throws Exception { - CpuUsageArray testSubject; - Double cpuOverheadAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuOverheadAvg(cpuOverheadAvg); - } - - @Test - public void testGetCpuSwapWaitTime() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuSwapWaitTime(); - } - - @Test - public void testSetCpuSwapWaitTime() throws Exception { - CpuUsageArray testSubject; - Double cpuSwapWaitTime = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuSwapWaitTime(cpuSwapWaitTime); - } - - @Test - public void testGetCpuUsageInterrupt() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageInterrupt(); - } - - @Test - public void testSetCpuUsageInterrupt() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageInterrupt = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageInterrupt(cpuUsageInterrupt); - } - - @Test - public void testGetCpuUsageNice() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageNice(); - } - - @Test - public void testSetCpuUsageNice() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageNice = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageNice(cpuUsageNice); - } - - @Test - public void testGetCpuUsageSoftIrq() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageSoftIrq(); - } - - @Test - public void testSetCpuUsageSoftIrq() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageSoftIrq = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageSoftIrq(cpuUsageSoftIrq); - } - - @Test - public void testGetCpuUsageSteal() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageSteal(); - } - - @Test - public void testSetCpuUsageSteal() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageSteal = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageSteal(cpuUsageSteal); - } - - @Test - public void testGetCpuUsageSystem() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageSystem(); - } - - @Test - public void testSetCpuUsageSystem() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageSystem = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageSystem(cpuUsageSystem); - } - - @Test - public void testGetCpuUsageUser() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageUser(); - } - - @Test - public void testSetCpuUsageUser() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageUser = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageUser(cpuUsageUser); - } - - @Test - public void testGetCpuWait() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuWait(); - } - - @Test - public void testSetCpuWait() throws Exception { - CpuUsageArray testSubject; - Double cpuWait = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuWait(cpuWait); - } - - @Test - public void testGetPercentUsage() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPercentUsage(); - } - - @Test - public void testSetPercentUsage() throws Exception { - CpuUsageArray testSubject; - Double percentUsage = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPercentUsage(percentUsage); - } - - @Test - public void testToString() throws Exception { - CpuUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - CpuUsageArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - CpuUsageArray testSubject; - CpuUsageArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArrayTest.java deleted file mode 100644 index b0fc836..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArrayTest.java +++ /dev/null @@ -1,1167 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class DiskUsageArrayTest { - - private DiskUsageArray createTestSubject() { - return new DiskUsageArray(); - } - - @Test - public void testGetDiskBusResets() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskBusResets(); - } - - @Test - public void testSetDiskBusResets() throws Exception { - DiskUsageArray testSubject; - Double diskBusResets = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskBusResets(diskBusResets); - } - - @Test - public void testGetDiskCommandsAborted() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskCommandsAborted(); - } - - @Test - public void testSetDiskCommandsAborted() throws Exception { - DiskUsageArray testSubject; - Double diskCommandsAborted = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskCommandsAborted(diskCommandsAborted); - } - - @Test - public void testGetDiskCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskCommandsAvg(); - } - - @Test - public void testSetDiskCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double diskCommandsAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskCommandsAvg(diskCommandsAvg); - } - - @Test - public void testGetDiskFlushRequests() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskFlushRequests(); - } - - @Test - public void testSetDiskFlushRequests() throws Exception { - DiskUsageArray testSubject; - Double diskFlushRequests = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskFlushRequests(diskFlushRequests); - } - - @Test - public void testGetDiskFlushTime() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskFlushTime(); - } - - @Test - public void testSetDiskFlushTime() throws Exception { - DiskUsageArray testSubject; - Double diskFlushTime = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskFlushTime(diskFlushTime); - } - - @Test - public void testGetDiskIdentifier() throws Exception { - DiskUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskIdentifier(); - } - - @Test - public void testSetDiskIdentifier() throws Exception { - DiskUsageArray testSubject; - String diskIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskIdentifier(diskIdentifier); - } - - @Test - public void testGetDiskIoTimeAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskIoTimeAvg(); - } - - @Test - public void testSetDiskIoTimeAvg() throws Exception { - DiskUsageArray testSubject; - Double diskIoTimeAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskIoTimeAvg(diskIoTimeAvg); - } - - @Test - public void testGetDiskIoTimeLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskIoTimeLast(); - } - - @Test - public void testSetDiskIoTimeLast() throws Exception { - DiskUsageArray testSubject; - Double diskIoTimeLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskIoTimeLast(diskIoTimeLast); - } - - @Test - public void testGetDiskIoTimeMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskIoTimeMax(); - } - - @Test - public void testSetDiskIoTimeMax() throws Exception { - DiskUsageArray testSubject; - Double diskIoTimeMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskIoTimeMax(diskIoTimeMax); - } - - @Test - public void testGetDiskIoTimeMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskIoTimeMin(); - } - - @Test - public void testSetDiskIoTimeMin() throws Exception { - DiskUsageArray testSubject; - Double diskIoTimeMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskIoTimeMin(diskIoTimeMin); - } - - @Test - public void testGetDiskMergedReadAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedReadAvg(); - } - - @Test - public void testSetDiskMergedReadAvg() throws Exception { - DiskUsageArray testSubject; - Double diskMergedReadAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedReadAvg(diskMergedReadAvg); - } - - @Test - public void testGetDiskMergedReadLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedReadLast(); - } - - @Test - public void testSetDiskMergedReadLast() throws Exception { - DiskUsageArray testSubject; - Double diskMergedReadLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedReadLast(diskMergedReadLast); - } - - @Test - public void testGetDiskMergedReadMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedReadMax(); - } - - @Test - public void testSetDiskMergedReadMax() throws Exception { - DiskUsageArray testSubject; - Double diskMergedReadMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedReadMax(diskMergedReadMax); - } - - @Test - public void testGetDiskMergedReadMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedReadMin(); - } - - @Test - public void testSetDiskMergedReadMin() throws Exception { - DiskUsageArray testSubject; - Double diskMergedReadMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedReadMin(diskMergedReadMin); - } - - @Test - public void testGetDiskMergedWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedWriteAvg(); - } - - @Test - public void testSetDiskMergedWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double diskMergedWriteAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedWriteAvg(diskMergedWriteAvg); - } - - @Test - public void testGetDiskMergedWriteLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedWriteLast(); - } - - @Test - public void testSetDiskMergedWriteLast() throws Exception { - DiskUsageArray testSubject; - Double diskMergedWriteLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedWriteLast(diskMergedWriteLast); - } - - @Test - public void testGetDiskMergedWriteMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedWriteMax(); - } - - @Test - public void testSetDiskMergedWriteMax() throws Exception { - DiskUsageArray testSubject; - Double diskMergedWriteMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedWriteMax(diskMergedWriteMax); - } - - @Test - public void testGetDiskMergedWriteMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedWriteMin(); - } - - @Test - public void testSetDiskMergedWriteMin() throws Exception { - DiskUsageArray testSubject; - Double diskMergedWriteMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedWriteMin(diskMergedWriteMin); - } - - @Test - public void testGetDiskOctetsReadAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsReadAvg(); - } - - @Test - public void testSetDiskOctetsReadAvg() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsReadAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsReadAvg(diskOctetsReadAvg); - } - - @Test - public void testGetDiskOctetsReadLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsReadLast(); - } - - @Test - public void testSetDiskOctetsReadLast() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsReadLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsReadLast(diskOctetsReadLast); - } - - @Test - public void testGetDiskOctetsReadMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsReadMax(); - } - - @Test - public void testSetDiskOctetsReadMax() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsReadMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsReadMax(diskOctetsReadMax); - } - - @Test - public void testGetDiskOctetsReadMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsReadMin(); - } - - @Test - public void testSetDiskOctetsReadMin() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsReadMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsReadMin(diskOctetsReadMin); - } - - @Test - public void testGetDiskOctetsWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsWriteAvg(); - } - - @Test - public void testSetDiskOctetsWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsWriteAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsWriteAvg(diskOctetsWriteAvg); - } - - @Test - public void testGetDiskOctetsWriteLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsWriteLast(); - } - - @Test - public void testSetDiskOctetsWriteLast() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsWriteLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsWriteLast(diskOctetsWriteLast); - } - - @Test - public void testGetDiskOctetsWriteMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsWriteMax(); - } - - @Test - public void testSetDiskOctetsWriteMax() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsWriteMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsWriteMax(diskOctetsWriteMax); - } - - @Test - public void testGetDiskOctetsWriteMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsWriteMin(); - } - - @Test - public void testSetDiskOctetsWriteMin() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsWriteMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsWriteMin(diskOctetsWriteMin); - } - - @Test - public void testGetDiskOpsReadAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsReadAvg(); - } - - @Test - public void testSetDiskOpsReadAvg() throws Exception { - DiskUsageArray testSubject; - Double diskOpsReadAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsReadAvg(diskOpsReadAvg); - } - - @Test - public void testGetDiskOpsReadLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsReadLast(); - } - - @Test - public void testSetDiskOpsReadLast() throws Exception { - DiskUsageArray testSubject; - Double diskOpsReadLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsReadLast(diskOpsReadLast); - } - - @Test - public void testGetDiskOpsReadMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsReadMax(); - } - - @Test - public void testSetDiskOpsReadMax() throws Exception { - DiskUsageArray testSubject; - Double diskOpsReadMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsReadMax(diskOpsReadMax); - } - - @Test - public void testGetDiskOpsReadMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsReadMin(); - } - - @Test - public void testSetDiskOpsReadMin() throws Exception { - DiskUsageArray testSubject; - Double diskOpsReadMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsReadMin(diskOpsReadMin); - } - - @Test - public void testGetDiskOpsWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsWriteAvg(); - } - - @Test - public void testSetDiskOpsWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double diskOpsWriteAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsWriteAvg(diskOpsWriteAvg); - } - - @Test - public void testGetDiskOpsWriteLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsWriteLast(); - } - - @Test - public void testSetDiskOpsWriteLast() throws Exception { - DiskUsageArray testSubject; - Double diskOpsWriteLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsWriteLast(diskOpsWriteLast); - } - - @Test - public void testGetDiskOpsWriteMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsWriteMax(); - } - - @Test - public void testSetDiskOpsWriteMax() throws Exception { - DiskUsageArray testSubject; - Double diskOpsWriteMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsWriteMax(diskOpsWriteMax); - } - - @Test - public void testGetDiskOpsWriteMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsWriteMin(); - } - - @Test - public void testSetDiskOpsWriteMin() throws Exception { - DiskUsageArray testSubject; - Double diskOpsWriteMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsWriteMin(diskOpsWriteMin); - } - - @Test - public void testGetDiskPendingOperationsAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskPendingOperationsAvg(); - } - - @Test - public void testSetDiskPendingOperationsAvg() throws Exception { - DiskUsageArray testSubject; - Double diskPendingOperationsAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskPendingOperationsAvg(diskPendingOperationsAvg); - } - - @Test - public void testGetDiskPendingOperationsLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskPendingOperationsLast(); - } - - @Test - public void testSetDiskPendingOperationsLast() throws Exception { - DiskUsageArray testSubject; - Double diskPendingOperationsLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskPendingOperationsLast(diskPendingOperationsLast); - } - - @Test - public void testGetDiskPendingOperationsMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskPendingOperationsMax(); - } - - @Test - public void testSetDiskPendingOperationsMax() throws Exception { - DiskUsageArray testSubject; - Double diskPendingOperationsMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskPendingOperationsMax(diskPendingOperationsMax); - } - - @Test - public void testGetDiskPendingOperationsMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskPendingOperationsMin(); - } - - @Test - public void testSetDiskPendingOperationsMin() throws Exception { - DiskUsageArray testSubject; - Double diskPendingOperationsMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskPendingOperationsMin(diskPendingOperationsMin); - } - - @Test - public void testGetDiskReadCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskReadCommandsAvg(); - } - - @Test - public void testSetDiskReadCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double diskReadCommandsAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskReadCommandsAvg(diskReadCommandsAvg); - } - - @Test - public void testGetDiskTime() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTime(); - } - - @Test - public void testSetDiskTime() throws Exception { - DiskUsageArray testSubject; - Double diskTime = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTime(diskTime); - } - - @Test - public void testGetDiskTimeReadAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeReadAvg(); - } - - @Test - public void testSetDiskTimeReadAvg() throws Exception { - DiskUsageArray testSubject; - Double diskTimeReadAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeReadAvg(diskTimeReadAvg); - } - - @Test - public void testGetDiskTimeReadLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeReadLast(); - } - - @Test - public void testSetDiskTimeReadLast() throws Exception { - DiskUsageArray testSubject; - Double diskTimeReadLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeReadLast(diskTimeReadLast); - } - - @Test - public void testGetDiskTimeReadMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeReadMax(); - } - - @Test - public void testSetDiskTimeReadMax() throws Exception { - DiskUsageArray testSubject; - Double diskTimeReadMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeReadMax(diskTimeReadMax); - } - - @Test - public void testGetDiskTimeReadMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeReadMin(); - } - - @Test - public void testSetDiskTimeReadMin() throws Exception { - DiskUsageArray testSubject; - Double diskTimeReadMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeReadMin(diskTimeReadMin); - } - - @Test - public void testGetDiskTimeWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeWriteAvg(); - } - - @Test - public void testSetDiskTimeWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double diskTimeWriteAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeWriteAvg(diskTimeWriteAvg); - } - - @Test - public void testGetDiskTimeWriteLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeWriteLast(); - } - - @Test - public void testSetDiskTimeWriteLast() throws Exception { - DiskUsageArray testSubject; - Double diskTimeWriteLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeWriteLast(diskTimeWriteLast); - } - - @Test - public void testGetDiskTimeWriteMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeWriteMax(); - } - - @Test - public void testSetDiskTimeWriteMax() throws Exception { - DiskUsageArray testSubject; - Double diskTimeWriteMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeWriteMax(diskTimeWriteMax); - } - - @Test - public void testGetDiskTimeWriteMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeWriteMin(); - } - - @Test - public void testSetDiskTimeWriteMin() throws Exception { - DiskUsageArray testSubject; - Double diskTimeWriteMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeWriteMin(diskTimeWriteMin); - } - - @Test - public void testGetDiskTotalReadLatencyAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTotalReadLatencyAvg(); - } - - @Test - public void testSetDiskTotalReadLatencyAvg() throws Exception { - DiskUsageArray testSubject; - Double diskTotalReadLatencyAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTotalReadLatencyAvg(diskTotalReadLatencyAvg); - } - - @Test - public void testGetDiskTotalWriteLatencyAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTotalWriteLatencyAvg(); - } - - @Test - public void testSetDiskTotalWriteLatencyAvg() throws Exception { - DiskUsageArray testSubject; - Double diskTotalWriteLatencyAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTotalWriteLatencyAvg(diskTotalWriteLatencyAvg); - } - - @Test - public void testGetDiskWeightedIoTimeAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskWeightedIoTimeAvg(); - } - - @Test - public void testSetDiskWeightedIoTimeAvg() throws Exception { - DiskUsageArray testSubject; - Double diskWeightedIoTimeAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskWeightedIoTimeAvg(diskWeightedIoTimeAvg); - } - - @Test - public void testGetDiskWeightedIoTimeLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskWeightedIoTimeLast(); - } - - @Test - public void testSetDiskWeightedIoTimeLast() throws Exception { - DiskUsageArray testSubject; - Double diskWeightedIoTimeLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskWeightedIoTimeLast(diskWeightedIoTimeLast); - } - - @Test - public void testGetDiskWeightedIoTimeMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskWeightedIoTimeMax(); - } - - @Test - public void testSetDiskWeightedIoTimeMax() throws Exception { - DiskUsageArray testSubject; - Double diskWeightedIoTimeMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskWeightedIoTimeMax(diskWeightedIoTimeMax); - } - - @Test - public void testGetDiskWeightedIoTimeMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskWeightedIoTimeMin(); - } - - @Test - public void testSetDiskWeightedIoTimeMin() throws Exception { - DiskUsageArray testSubject; - Double diskWeightedIoTimeMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskWeightedIoTimeMin(diskWeightedIoTimeMin); - } - - @Test - public void testGetDiskWriteCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskWriteCommandsAvg(); - } - - @Test - public void testSetDiskWriteCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double diskWriteCommandsAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskWriteCommandsAvg(diskWriteCommandsAvg); - } - - @Test - public void testToString() throws Exception { - DiskUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - DiskUsageArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - DiskUsageArray testSubject; - DiskUsageArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummariesTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummariesTest.java deleted file mode 100644 index 91e18e5..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummariesTest.java +++ /dev/null @@ -1,648 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.EndOfCallVqmSummaries.EndpointDescription; - - -public class EndOfCallVqmSummariesTest { - - private EndOfCallVqmSummaries createTestSubject() { - return new EndOfCallVqmSummaries(); - } - - @Test - public void testGetAdjacencyName() throws Exception { - EndOfCallVqmSummaries testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdjacencyName(); - } - - @Test - public void testSetAdjacencyName() throws Exception { - EndOfCallVqmSummaries testSubject; - String adjacencyName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAdjacencyName(adjacencyName); - } - - @Test - public void testGetEndpointAverageJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointAverageJitter(); - } - - @Test - public void testSetEndpointAverageJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointAverageJitter = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointAverageJitter(endpointAverageJitter); - } - - @Test - public void testGetEndpointDescription() throws Exception { - EndOfCallVqmSummaries testSubject; - EndpointDescription result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointDescription(); - } - - @Test - public void testSetEndpointDescription() throws Exception { - EndOfCallVqmSummaries testSubject; - EndpointDescription endpointDescription = EndpointDescription.CALLEE; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointDescription(endpointDescription); - } - - @Test - public void testGetEndpointMaxJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointMaxJitter(); - } - - @Test - public void testSetEndpointMaxJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointMaxJitter = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointMaxJitter(endpointMaxJitter); - } - - @Test - public void testGetEndpointRtpOctetsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpOctetsDiscarded(); - } - - @Test - public void testSetEndpointRtpOctetsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpOctetsDiscarded = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpOctetsDiscarded(endpointRtpOctetsDiscarded); - } - - @Test - public void testGetEndpointRtpOctetsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpOctetsLost(); - } - - @Test - public void testSetEndpointRtpOctetsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpOctetsLost = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpOctetsLost(endpointRtpOctetsLost); - } - - @Test - public void testGetEndpointRtpOctetsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpOctetsReceived(); - } - - @Test - public void testSetEndpointRtpOctetsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpOctetsReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpOctetsReceived(endpointRtpOctetsReceived); - } - - @Test - public void testGetEndpointRtpOctetsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpOctetsSent(); - } - - @Test - public void testSetEndpointRtpOctetsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpOctetsSent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpOctetsSent(endpointRtpOctetsSent); - } - - @Test - public void testGetEndpointRtpPacketsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpPacketsDiscarded(); - } - - @Test - public void testSetEndpointRtpPacketsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpPacketsDiscarded = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpPacketsDiscarded(endpointRtpPacketsDiscarded); - } - - @Test - public void testGetEndpointRtpPacketsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpPacketsLost(); - } - - @Test - public void testSetEndpointRtpPacketsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpPacketsLost = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpPacketsLost(endpointRtpPacketsLost); - } - - @Test - public void testGetEndpointRtpPacketsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpPacketsReceived(); - } - - @Test - public void testSetEndpointRtpPacketsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpPacketsReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpPacketsReceived(endpointRtpPacketsReceived); - } - - @Test - public void testGetEndpointRtpPacketsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpPacketsSent(); - } - - @Test - public void testSetEndpointRtpPacketsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpPacketsSent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpPacketsSent(endpointRtpPacketsSent); - } - - @Test - public void testGetLocalAverageJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalAverageJitter(); - } - - @Test - public void testSetLocalAverageJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localAverageJitter = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalAverageJitter(localAverageJitter); - } - - @Test - public void testGetLocalAverageJitterBufferDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalAverageJitterBufferDelay(); - } - - @Test - public void testSetLocalAverageJitterBufferDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localAverageJitterBufferDelay = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalAverageJitterBufferDelay(localAverageJitterBufferDelay); - } - - @Test - public void testGetLocalMaxJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalMaxJitter(); - } - - @Test - public void testSetLocalMaxJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localMaxJitter = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalMaxJitter(localMaxJitter); - } - - @Test - public void testGetLocalMaxJitterBufferDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalMaxJitterBufferDelay(); - } - - @Test - public void testSetLocalMaxJitterBufferDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localMaxJitterBufferDelay = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalMaxJitterBufferDelay(localMaxJitterBufferDelay); - } - - @Test - public void testGetLocalRtpOctetsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpOctetsDiscarded(); - } - - @Test - public void testSetLocalRtpOctetsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpOctetsDiscarded = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpOctetsDiscarded(localRtpOctetsDiscarded); - } - - @Test - public void testGetLocalRtpOctetsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpOctetsLost(); - } - - @Test - public void testSetLocalRtpOctetsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpOctetsLost = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpOctetsLost(localRtpOctetsLost); - } - - @Test - public void testGetLocalRtpOctetsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpOctetsReceived(); - } - - @Test - public void testSetLocalRtpOctetsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpOctetsReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpOctetsReceived(localRtpOctetsReceived); - } - - @Test - public void testGetLocalRtpOctetsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpOctetsSent(); - } - - @Test - public void testSetLocalRtpOctetsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpOctetsSent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpOctetsSent(localRtpOctetsSent); - } - - @Test - public void testGetLocalRtpPacketsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpPacketsDiscarded(); - } - - @Test - public void testSetLocalRtpPacketsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpPacketsDiscarded = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpPacketsDiscarded(localRtpPacketsDiscarded); - } - - @Test - public void testGetLocalRtpPacketsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpPacketsLost(); - } - - @Test - public void testSetLocalRtpPacketsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpPacketsLost = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpPacketsLost(localRtpPacketsLost); - } - - @Test - public void testGetLocalRtpPacketsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpPacketsReceived(); - } - - @Test - public void testSetLocalRtpPacketsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpPacketsReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpPacketsReceived(localRtpPacketsReceived); - } - - @Test - public void testGetLocalRtpPacketsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpPacketsSent(); - } - - @Test - public void testSetLocalRtpPacketsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpPacketsSent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpPacketsSent(localRtpPacketsSent); - } - - @Test - public void testGetMosCqe() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMosCqe(); - } - - @Test - public void testSetMosCqe() throws Exception { - EndOfCallVqmSummaries testSubject; - Double mosCqe = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMosCqe(mosCqe); - } - - @Test - public void testGetOneWayDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOneWayDelay(); - } - - @Test - public void testSetOneWayDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double oneWayDelay = null; - - // default test - testSubject = createTestSubject(); - testSubject.setOneWayDelay(oneWayDelay); - } - - @Test - public void testGetPacketLossPercent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPacketLossPercent(); - } - - @Test - public void testSetPacketLossPercent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double packetLossPercent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPacketLossPercent(packetLossPercent); - } - - @Test - public void testGetRFactor() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRFactor(); - } - - @Test - public void testSetRFactor() throws Exception { - EndOfCallVqmSummaries testSubject; - Double rFactor = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRFactor(rFactor); - } - - @Test - public void testGetRoundTripDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRoundTripDelay(); - } - - @Test - public void testSetRoundTripDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double roundTripDelay = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRoundTripDelay(roundTripDelay); - } - - @Test - public void testToString() throws Exception { - EndOfCallVqmSummaries testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - EndOfCallVqmSummaries testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - EndOfCallVqmSummaries testSubject; - EndOfCallVqmSummaries testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EventTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EventTest.java deleted file mode 100644 index eb7e472..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EventTest.java +++ /dev/null @@ -1,327 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class EventTest { - - private Event createTestSubject() { - return new Event(); - } - - @Test - public void testGetCommonEventHeader() throws Exception { - Event testSubject; - CommonEventHeader result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCommonEventHeader(); - } - - @Test - public void testSetCommonEventHeader() throws Exception { - Event testSubject; - CommonEventHeader commonEventHeader = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCommonEventHeader(commonEventHeader); - } - - @Test - public void testGetFaultFields() throws Exception { - Event testSubject; - FaultFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFaultFields(); - } - - @Test - public void testSetFaultFields() throws Exception { - Event testSubject; - FaultFields faultFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFaultFields(faultFields); - } - - @Test - public void testGetHeartbeatFields() throws Exception { - Event testSubject; - HeartbeatFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHeartbeatFields(); - } - - @Test - public void testSetHeartbeatFields() throws Exception { - Event testSubject; - HeartbeatFields heartbeatFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHeartbeatFields(heartbeatFields); - } - - @Test - public void testGetMeasurementFields() throws Exception { - Event testSubject; - MeasurementFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMeasurementFields(); - } - - @Test - public void testSetMeasurementFields() throws Exception { - Event testSubject; - MeasurementFields measurementFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMeasurementFields(measurementFields); - } - - @Test - public void testGetMobileFlowFields() throws Exception { - Event testSubject; - MobileFlowFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMobileFlowFields(); - } - - @Test - public void testSetMobileFlowFields() throws Exception { - Event testSubject; - MobileFlowFields mobileFlowFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMobileFlowFields(mobileFlowFields); - } - - @Test - public void testGetNotificationFields() throws Exception { - Event testSubject; - NotificationFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNotificationFields(); - } - - @Test - public void testSetNotificationFields() throws Exception { - Event testSubject; - NotificationFields notificationFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNotificationFields(notificationFields); - } - - @Test - public void testGetOtherFields() throws Exception { - Event testSubject; - OtherFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOtherFields(); - } - - @Test - public void testSetOtherFields() throws Exception { - Event testSubject; - OtherFields otherFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setOtherFields(otherFields); - } - - @Test - public void testGetPnfRegistrationFields() throws Exception { - Event testSubject; - PnfRegistrationFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPnfRegistrationFields(); - } - - @Test - public void testSetPnfRegistrationFields() throws Exception { - Event testSubject; - PnfRegistrationFields pnfRegistrationFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPnfRegistrationFields(pnfRegistrationFields); - } - - @Test - public void testGetSipSignalingFields() throws Exception { - Event testSubject; - SipSignalingFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSipSignalingFields(); - } - - @Test - public void testSetSipSignalingFields() throws Exception { - Event testSubject; - SipSignalingFields sipSignalingFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSipSignalingFields(sipSignalingFields); - } - - @Test - public void testGetStateChangeFields() throws Exception { - Event testSubject; - StateChangeFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStateChangeFields(); - } - - @Test - public void testSetStateChangeFields() throws Exception { - Event testSubject; - StateChangeFields stateChangeFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setStateChangeFields(stateChangeFields); - } - - @Test - public void testGetSyslogFields() throws Exception { - Event testSubject; - SyslogFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogFields(); - } - - @Test - public void testSetSyslogFields() throws Exception { - Event testSubject; - SyslogFields syslogFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogFields(syslogFields); - } - - @Test - public void testGetThresholdCrossingAlertFields() throws Exception { - Event testSubject; - ThresholdCrossingAlertFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getThresholdCrossingAlertFields(); - } - - @Test - public void testSetThresholdCrossingAlertFields() throws Exception { - Event testSubject; - ThresholdCrossingAlertFields thresholdCrossingAlertFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setThresholdCrossingAlertFields(thresholdCrossingAlertFields); - } - - @Test - public void testGetVoiceQualityFields() throws Exception { - Event testSubject; - VoiceQualityFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVoiceQualityFields(); - } - - @Test - public void testSetVoiceQualityFields() throws Exception { - Event testSubject; - VoiceQualityFields voiceQualityFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVoiceQualityFields(voiceQualityFields); - } - - @Test - public void testToString() throws Exception { - Event testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - Event testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - Event testSubject; - Event testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFieldsTest.java deleted file mode 100644 index c26cd03..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFieldsTest.java +++ /dev/null @@ -1,250 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.FaultFields.FaultFieldsVersion; -import org.onap.dcaegen2.ves.domain.ves7_0.FaultFields.VfStatus; - - -public class FaultFieldsTest { - - private FaultFields createTestSubject() { - return new FaultFields(); - } - - @Test - public void testGetAlarmAdditionalInformation() throws Exception { - FaultFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlarmAdditionalInformation(); - } - - @Test - public void testSetAlarmAdditionalInformation() throws Exception { - FaultFields testSubject; - AlarmAdditionalInformation alarmAdditionalInformation = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAlarmAdditionalInformation(alarmAdditionalInformation); - } - - @Test - public void testGetAlarmCondition() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlarmCondition(); - } - - @Test - public void testSetAlarmCondition() throws Exception { - FaultFields testSubject; - String alarmCondition = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAlarmCondition(alarmCondition); - } - - @Test - public void testGetAlarmInterfaceA() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlarmInterfaceA(); - } - - @Test - public void testSetAlarmInterfaceA() throws Exception { - FaultFields testSubject; - String alarmInterfaceA = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAlarmInterfaceA(alarmInterfaceA); - } - - @Test - public void testGetEventCategory() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventCategory(); - } - - @Test - public void testSetEventCategory() throws Exception { - FaultFields testSubject; - String eventCategory = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventCategory(eventCategory); - } - - @Test - public void testGetEventSeverity() throws Exception { - FaultFields testSubject; - FaultFields.EventSeverity result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventSeverity(); - } - - @Test - public void testSetEventSeverity() throws Exception { - FaultFields testSubject; - FaultFields.EventSeverity eventSeverity = FaultFields.EventSeverity.CRITICAL; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSeverity(eventSeverity); - } - - @Test - public void testGetEventSourceType() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventSourceType(); - } - - @Test - public void testSetEventSourceType() throws Exception { - FaultFields testSubject; - String eventSourceType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSourceType(eventSourceType); - } - - @Test - public void testGetFaultFieldsVersion() throws Exception { - FaultFields testSubject; - FaultFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFaultFieldsVersion(); - } - - @Test - public void testSetFaultFieldsVersion() throws Exception { - FaultFields testSubject; - FaultFieldsVersion faultFieldsVersion = FaultFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setFaultFieldsVersion(faultFieldsVersion); - } - - @Test - public void testGetSpecificProblem() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSpecificProblem(); - } - - @Test - public void testSetSpecificProblem() throws Exception { - FaultFields testSubject; - String specificProblem = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSpecificProblem(specificProblem); - } - - @Test - public void testGetVfStatus() throws Exception { - FaultFields testSubject; - VfStatus result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVfStatus(); - } - - @Test - public void testSetVfStatus() throws Exception { - FaultFields testSubject; - VfStatus vfStatus = VfStatus.ACTIVE; - - // default test - testSubject = createTestSubject(); - testSubject.setVfStatus(vfStatus); - } - - @Test - public void testToString() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - FaultFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - FaultFields testSubject; - FaultFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArrayTest.java deleted file mode 100644 index 24ea16d..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArrayTest.java +++ /dev/null @@ -1,208 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class FilesystemUsageArrayTest { - - private FilesystemUsageArray createTestSubject() { - return new FilesystemUsageArray(); - } - - @Test - public void testGetBlockConfigured() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBlockConfigured(); - } - - @Test - public void testSetBlockConfigured() throws Exception { - FilesystemUsageArray testSubject; - Double blockConfigured = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBlockConfigured(blockConfigured); - } - - @Test - public void testGetBlockIops() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBlockIops(); - } - - @Test - public void testSetBlockIops() throws Exception { - FilesystemUsageArray testSubject; - Double blockIops = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBlockIops(blockIops); - } - - @Test - public void testGetBlockUsed() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBlockUsed(); - } - - @Test - public void testSetBlockUsed() throws Exception { - FilesystemUsageArray testSubject; - Double blockUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBlockUsed(blockUsed); - } - - @Test - public void testGetEphemeralConfigured() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEphemeralConfigured(); - } - - @Test - public void testSetEphemeralConfigured() throws Exception { - FilesystemUsageArray testSubject; - Double ephemeralConfigured = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEphemeralConfigured(ephemeralConfigured); - } - - @Test - public void testGetEphemeralIops() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEphemeralIops(); - } - - @Test - public void testSetEphemeralIops() throws Exception { - FilesystemUsageArray testSubject; - Double ephemeralIops = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEphemeralIops(ephemeralIops); - } - - @Test - public void testGetEphemeralUsed() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEphemeralUsed(); - } - - @Test - public void testSetEphemeralUsed() throws Exception { - FilesystemUsageArray testSubject; - Double ephemeralUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEphemeralUsed(ephemeralUsed); - } - - @Test - public void testGetFilesystemName() throws Exception { - FilesystemUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFilesystemName(); - } - - @Test - public void testSetFilesystemName() throws Exception { - FilesystemUsageArray testSubject; - String filesystemName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFilesystemName(filesystemName); - } - - @Test - public void testToString() throws Exception { - FilesystemUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - FilesystemUsageArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - FilesystemUsageArray testSubject; - FilesystemUsageArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetricsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetricsTest.java deleted file mode 100644 index 6738fad..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetricsTest.java +++ /dev/null @@ -1,1069 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; - - -public class GtpPerFlowMetricsTest { - - private GtpPerFlowMetrics createTestSubject() { - return new GtpPerFlowMetrics(); - } - - @Test - public void testGetAvgBitErrorRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAvgBitErrorRate(); - } - - @Test - public void testSetAvgBitErrorRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double avgBitErrorRate = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAvgBitErrorRate(avgBitErrorRate); - } - - @Test - public void testGetAvgPacketDelayVariation() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAvgPacketDelayVariation(); - } - - @Test - public void testSetAvgPacketDelayVariation() throws Exception { - GtpPerFlowMetrics testSubject; - Double avgPacketDelayVariation = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAvgPacketDelayVariation(avgPacketDelayVariation); - } - - @Test - public void testGetAvgPacketLatency() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAvgPacketLatency(); - } - - @Test - public void testSetAvgPacketLatency() throws Exception { - GtpPerFlowMetrics testSubject; - Double avgPacketLatency = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAvgPacketLatency(avgPacketLatency); - } - - @Test - public void testGetAvgReceiveThroughput() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAvgReceiveThroughput(); - } - - @Test - public void testSetAvgReceiveThroughput() throws Exception { - GtpPerFlowMetrics testSubject; - Double avgReceiveThroughput = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAvgReceiveThroughput(avgReceiveThroughput); - } - - @Test - public void testGetAvgTransmitThroughput() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAvgTransmitThroughput(); - } - - @Test - public void testSetAvgTransmitThroughput() throws Exception { - GtpPerFlowMetrics testSubject; - Double avgTransmitThroughput = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAvgTransmitThroughput(avgTransmitThroughput); - } - - @Test - public void testGetDurConnectionFailedStatus() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDurConnectionFailedStatus(); - } - - @Test - public void testSetDurConnectionFailedStatus() throws Exception { - GtpPerFlowMetrics testSubject; - Double durConnectionFailedStatus = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDurConnectionFailedStatus(durConnectionFailedStatus); - } - - @Test - public void testGetDurTunnelFailedStatus() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDurTunnelFailedStatus(); - } - - @Test - public void testSetDurTunnelFailedStatus() throws Exception { - GtpPerFlowMetrics testSubject; - Double durTunnelFailedStatus = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDurTunnelFailedStatus(durTunnelFailedStatus); - } - - @Test - public void testGetFlowActivatedBy() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowActivatedBy(); - } - - @Test - public void testSetFlowActivatedBy() throws Exception { - GtpPerFlowMetrics testSubject; - String flowActivatedBy = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowActivatedBy(flowActivatedBy); - } - - @Test - public void testGetFlowActivationEpoch() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowActivationEpoch(); - } - - @Test - public void testSetFlowActivationEpoch() throws Exception { - GtpPerFlowMetrics testSubject; - Double flowActivationEpoch = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowActivationEpoch(flowActivationEpoch); - } - - @Test - public void testGetFlowActivationMicrosec() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowActivationMicrosec(); - } - - @Test - public void testSetFlowActivationMicrosec() throws Exception { - GtpPerFlowMetrics testSubject; - Double flowActivationMicrosec = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowActivationMicrosec(flowActivationMicrosec); - } - - @Test - public void testGetFlowActivationTime() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowActivationTime(); - } - - @Test - public void testSetFlowActivationTime() throws Exception { - GtpPerFlowMetrics testSubject; - String flowActivationTime = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowActivationTime(flowActivationTime); - } - - @Test - public void testGetFlowDeactivatedBy() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowDeactivatedBy(); - } - - @Test - public void testSetFlowDeactivatedBy() throws Exception { - GtpPerFlowMetrics testSubject; - String flowDeactivatedBy = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowDeactivatedBy(flowDeactivatedBy); - } - - @Test - public void testGetFlowDeactivationEpoch() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowDeactivationEpoch(); - } - - @Test - public void testSetFlowDeactivationEpoch() throws Exception { - GtpPerFlowMetrics testSubject; - Double flowDeactivationEpoch = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowDeactivationEpoch(flowDeactivationEpoch); - } - - @Test - public void testGetFlowDeactivationMicrosec() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowDeactivationMicrosec(); - } - - @Test - public void testSetFlowDeactivationMicrosec() throws Exception { - GtpPerFlowMetrics testSubject; - Double flowDeactivationMicrosec = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowDeactivationMicrosec(flowDeactivationMicrosec); - } - - @Test - public void testGetFlowDeactivationTime() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowDeactivationTime(); - } - - @Test - public void testSetFlowDeactivationTime() throws Exception { - GtpPerFlowMetrics testSubject; - String flowDeactivationTime = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowDeactivationTime(flowDeactivationTime); - } - - @Test - public void testGetFlowStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowStatus(); - } - - @Test - public void testSetFlowStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String flowStatus = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowStatus(flowStatus); - } - - @Test - public void testGetGtpConnectionStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGtpConnectionStatus(); - } - - @Test - public void testSetGtpConnectionStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String gtpConnectionStatus = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setGtpConnectionStatus(gtpConnectionStatus); - } - - @Test - public void testGetGtpTunnelStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGtpTunnelStatus(); - } - - @Test - public void testSetGtpTunnelStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String gtpTunnelStatus = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setGtpTunnelStatus(gtpTunnelStatus); - } - - @Test - public void testGetIpTosCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpTosCountList(); - } - - @Test - public void testSetIpTosCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation ipTosCountList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpTosCountList(ipTosCountList); - } - - @Test - public void testGetIpTosList() throws Exception { - GtpPerFlowMetrics testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpTosList(); - } - - @Test - public void testSetIpTosList() throws Exception { - GtpPerFlowMetrics testSubject; - List ipTosList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpTosList(ipTosList); - } - - @Test - public void testGetLargePacketRtt() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLargePacketRtt(); - } - - @Test - public void testSetLargePacketRtt() throws Exception { - GtpPerFlowMetrics testSubject; - Double largePacketRtt = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLargePacketRtt(largePacketRtt); - } - - @Test - public void testGetLargePacketThreshold() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLargePacketThreshold(); - } - - @Test - public void testSetLargePacketThreshold() throws Exception { - GtpPerFlowMetrics testSubject; - Double largePacketThreshold = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLargePacketThreshold(largePacketThreshold); - } - - @Test - public void testGetMaxPacketDelayVariation() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMaxPacketDelayVariation(); - } - - @Test - public void testSetMaxPacketDelayVariation() throws Exception { - GtpPerFlowMetrics testSubject; - Double maxPacketDelayVariation = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMaxPacketDelayVariation(maxPacketDelayVariation); - } - - @Test - public void testGetMaxReceiveBitRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMaxReceiveBitRate(); - } - - @Test - public void testSetMaxReceiveBitRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double maxReceiveBitRate = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMaxReceiveBitRate(maxReceiveBitRate); - } - - @Test - public void testGetMaxTransmitBitRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMaxTransmitBitRate(); - } - - @Test - public void testSetMaxTransmitBitRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double maxTransmitBitRate = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMaxTransmitBitRate(maxTransmitBitRate); - } - - @Test - public void testGetMobileQciCosCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMobileQciCosCountList(); - } - - @Test - public void testSetMobileQciCosCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation mobileQciCosCountList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMobileQciCosCountList(mobileQciCosCountList); - } - - @Test - public void testGetMobileQciCosList() throws Exception { - GtpPerFlowMetrics testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMobileQciCosList(); - } - - @Test - public void testSetMobileQciCosList() throws Exception { - GtpPerFlowMetrics testSubject; - List mobileQciCosList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMobileQciCosList(mobileQciCosList); - } - - @Test - public void testGetNumActivationFailures() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumActivationFailures(); - } - - @Test - public void testSetNumActivationFailures() throws Exception { - GtpPerFlowMetrics testSubject; - Double numActivationFailures = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumActivationFailures(numActivationFailures); - } - - @Test - public void testGetNumBitErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumBitErrors(); - } - - @Test - public void testSetNumBitErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double numBitErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumBitErrors(numBitErrors); - } - - @Test - public void testGetNumBytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumBytesReceived(); - } - - @Test - public void testSetNumBytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double numBytesReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumBytesReceived(numBytesReceived); - } - - @Test - public void testGetNumBytesTransmitted() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumBytesTransmitted(); - } - - @Test - public void testSetNumBytesTransmitted() throws Exception { - GtpPerFlowMetrics testSubject; - Double numBytesTransmitted = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumBytesTransmitted(numBytesTransmitted); - } - - @Test - public void testGetNumDroppedPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumDroppedPackets(); - } - - @Test - public void testSetNumDroppedPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double numDroppedPackets = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumDroppedPackets(numDroppedPackets); - } - - @Test - public void testGetNumGtpEchoFailures() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumGtpEchoFailures(); - } - - @Test - public void testSetNumGtpEchoFailures() throws Exception { - GtpPerFlowMetrics testSubject; - Double numGtpEchoFailures = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumGtpEchoFailures(numGtpEchoFailures); - } - - @Test - public void testGetNumGtpTunnelErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumGtpTunnelErrors(); - } - - @Test - public void testSetNumGtpTunnelErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double numGtpTunnelErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumGtpTunnelErrors(numGtpTunnelErrors); - } - - @Test - public void testGetNumHttpErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumHttpErrors(); - } - - @Test - public void testSetNumHttpErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double numHttpErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumHttpErrors(numHttpErrors); - } - - @Test - public void testGetNumL7BytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumL7BytesReceived(); - } - - @Test - public void testSetNumL7BytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double numL7BytesReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumL7BytesReceived(numL7BytesReceived); - } - - @Test - public void testGetNumL7BytesTransmitted() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumL7BytesTransmitted(); - } - - @Test - public void testSetNumL7BytesTransmitted() throws Exception { - GtpPerFlowMetrics testSubject; - Double numL7BytesTransmitted = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumL7BytesTransmitted(numL7BytesTransmitted); - } - - @Test - public void testGetNumLostPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumLostPackets(); - } - - @Test - public void testSetNumLostPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double numLostPackets = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumLostPackets(numLostPackets); - } - - @Test - public void testGetNumOutOfOrderPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumOutOfOrderPackets(); - } - - @Test - public void testSetNumOutOfOrderPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double numOutOfOrderPackets = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumOutOfOrderPackets(numOutOfOrderPackets); - } - - @Test - public void testGetNumPacketErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumPacketErrors(); - } - - @Test - public void testSetNumPacketErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double numPacketErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumPacketErrors(numPacketErrors); - } - - @Test - public void testGetNumPacketsReceivedExclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumPacketsReceivedExclRetrans(); - } - - @Test - public void testSetNumPacketsReceivedExclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double numPacketsReceivedExclRetrans = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumPacketsReceivedExclRetrans(numPacketsReceivedExclRetrans); - } - - @Test - public void testGetNumPacketsReceivedInclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumPacketsReceivedInclRetrans(); - } - - @Test - public void testSetNumPacketsReceivedInclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double numPacketsReceivedInclRetrans = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumPacketsReceivedInclRetrans(numPacketsReceivedInclRetrans); - } - - @Test - public void testGetNumPacketsTransmittedInclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumPacketsTransmittedInclRetrans(); - } - - @Test - public void testSetNumPacketsTransmittedInclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double numPacketsTransmittedInclRetrans = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumPacketsTransmittedInclRetrans(numPacketsTransmittedInclRetrans); - } - - @Test - public void testGetNumRetries() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumRetries(); - } - - @Test - public void testSetNumRetries() throws Exception { - GtpPerFlowMetrics testSubject; - Double numRetries = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumRetries(numRetries); - } - - @Test - public void testGetNumTimeouts() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumTimeouts(); - } - - @Test - public void testSetNumTimeouts() throws Exception { - GtpPerFlowMetrics testSubject; - Double numTimeouts = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumTimeouts(numTimeouts); - } - - @Test - public void testGetNumTunneledL7BytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumTunneledL7BytesReceived(); - } - - @Test - public void testSetNumTunneledL7BytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double numTunneledL7BytesReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumTunneledL7BytesReceived(numTunneledL7BytesReceived); - } - - @Test - public void testGetRoundTripTime() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRoundTripTime(); - } - - @Test - public void testSetRoundTripTime() throws Exception { - GtpPerFlowMetrics testSubject; - Double roundTripTime = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRoundTripTime(roundTripTime); - } - - @Test - public void testGetTcpFlagCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTcpFlagCountList(); - } - - @Test - public void testSetTcpFlagCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation tcpFlagCountList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTcpFlagCountList(tcpFlagCountList); - } - - @Test - public void testGetTcpFlagList() throws Exception { - GtpPerFlowMetrics testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTcpFlagList(); - } - - @Test - public void testSetTcpFlagList() throws Exception { - GtpPerFlowMetrics testSubject; - List tcpFlagList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTcpFlagList(tcpFlagList); - } - - @Test - public void testGetTimeToFirstByte() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTimeToFirstByte(); - } - - @Test - public void testSetTimeToFirstByte() throws Exception { - GtpPerFlowMetrics testSubject; - Double timeToFirstByte = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTimeToFirstByte(timeToFirstByte); - } - - @Test - public void testToString() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - GtpPerFlowMetrics testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - GtpPerFlowMetrics testSubject; - GtpPerFlowMetrics testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFieldsTest.java deleted file mode 100644 index 8983785..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFieldsTest.java +++ /dev/null @@ -1,129 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.HeartbeatFields.HeartbeatFieldsVersion; - - -public class HeartbeatFieldsTest { - - private HeartbeatFields createTestSubject() { - return new HeartbeatFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - HeartbeatFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - HeartbeatFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetHeartbeatFieldsVersion() throws Exception { - HeartbeatFields testSubject; - HeartbeatFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHeartbeatFieldsVersion(); - } - - @Test - public void testSetHeartbeatFieldsVersion() throws Exception { - HeartbeatFields testSubject; - HeartbeatFieldsVersion heartbeatFieldsVersion = HeartbeatFieldsVersion._3_0; - - // default test - testSubject = createTestSubject(); - testSubject.setHeartbeatFieldsVersion(heartbeatFieldsVersion); - } - - @Test - public void testGetHeartbeatInterval() throws Exception { - HeartbeatFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHeartbeatInterval(); - } - - @Test - public void testSetHeartbeatInterval() throws Exception { - HeartbeatFields testSubject; - Integer heartbeatInterval = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setHeartbeatInterval(heartbeatInterval); - } - - @Test - public void testToString() throws Exception { - HeartbeatFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - HeartbeatFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - HeartbeatFields testSubject; - HeartbeatFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArrayTest.java deleted file mode 100644 index 83aa2b3..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArrayTest.java +++ /dev/null @@ -1,209 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class HugePagesArrayTest { - - private HugePagesArray createTestSubject() { - return new HugePagesArray(); - } - - @Test - public void testGetBytesFree() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBytesFree(); - } - - @Test - public void testSetBytesFree() throws Exception { - HugePagesArray testSubject; - Double bytesFree = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBytesFree(bytesFree); - } - - @Test - public void testGetBytesUsed() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBytesUsed(); - } - - @Test - public void testSetBytesUsed() throws Exception { - HugePagesArray testSubject; - Double bytesUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBytesUsed(bytesUsed); - } - - @Test - public void testGetHugePagesIdentifier() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHugePagesIdentifier(); - } - - @Test - public void testSetHugePagesIdentifier() throws Exception { - HugePagesArray testSubject; - Double hugePagesIdentifier = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHugePagesIdentifier(hugePagesIdentifier); - } - - @Test - public void testGetPercentFree() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPercentFree(); - } - - @Test - public void testSetPercentFree() throws Exception { - HugePagesArray testSubject; - Double percentFree = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPercentFree(percentFree); - } - - @Test - public void testGetPercentUsed() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPercentUsed(); - } - - @Test - public void testSetPercentUsed() throws Exception { - HugePagesArray testSubject; - Double percentUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPercentUsed(percentUsed); - } - - @Test - public void testGetVmPageNumberFree() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVmPageNumberFree(); - } - - @Test - public void testSetVmPageNumberFree() throws Exception { - HugePagesArray testSubject; - Double vmPageNumberFree = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVmPageNumberFree(vmPageNumberFree); - } - - @Test - public void testGetVmPageNumberUsed() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVmPageNumberUsed(); - } - - @Test - public void testSetVmPageNumberUsed() throws Exception { - HugePagesArray testSubject; - Double vmPageNumberUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVmPageNumberUsed(vmPageNumberUsed); - } - - @Test - public void testToString() throws Exception { - HugePagesArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - HugePagesArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - - HugePagesArray testSubject; - HugePagesArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFieldsTest.java deleted file mode 100644 index 2f223b8..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFieldsTest.java +++ /dev/null @@ -1,90 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.Map; -import org.junit.Test; - - -public class InternalHeaderFieldsTest { - - private InternalHeaderFields createTestSubject() { - return new InternalHeaderFields(); - } - - @Test - public void testToString() throws Exception { - InternalHeaderFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testGetAdditionalProperties() throws Exception { - InternalHeaderFields testSubject; - Map result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - @Test - public void testSetAdditionalProperty() throws Exception { - InternalHeaderFields testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } - - @Test - public void testHashCode() throws Exception { - InternalHeaderFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - InternalHeaderFields testSubject; - InternalHeaderFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArrayTest.java deleted file mode 100644 index a2d74fd..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiBaseboardTemperatureArrayTest { - - private IpmiBaseboardTemperatureArray createTestSubject() { - return new IpmiBaseboardTemperatureArray(); - } - - @Test - public void testGetBaseboardTemperatureIdentifier() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBaseboardTemperatureIdentifier(); - } - - @Test - public void testSetBaseboardTemperatureIdentifier() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - String baseboardTemperatureIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setBaseboardTemperatureIdentifier(baseboardTemperatureIdentifier); - } - - @Test - public void testGetBaseboardTemperature() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBaseboardTemperature(); - } - - @Test - public void testSetBaseboardTemperature() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - Double baseboardTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBaseboardTemperature(baseboardTemperature); - } - - @Test - public void testToString() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - IpmiBaseboardTemperatureArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArrayTest.java deleted file mode 100644 index e1e015d..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiBaseboardVoltageRegulatorArrayTest { - - private IpmiBaseboardVoltageRegulatorArray createTestSubject() { - return new IpmiBaseboardVoltageRegulatorArray(); - } - - @Test - public void testGetBaseboardVoltageRegulatorIdentifier() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBaseboardVoltageRegulatorIdentifier(); - } - - @Test - public void testSetBaseboardVoltageRegulatorIdentifier() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - String baseboardVoltageRegulatorIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setBaseboardVoltageRegulatorIdentifier(baseboardVoltageRegulatorIdentifier); - } - - @Test - public void testGetVoltageRegulatorTemperature() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVoltageRegulatorTemperature(); - } - - @Test - public void testSetVoltageRegulatorTemperature() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - Double voltageRegulatorTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVoltageRegulatorTemperature(voltageRegulatorTemperature); - } - - @Test - public void testToString() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - IpmiBaseboardVoltageRegulatorArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArrayTest.java deleted file mode 100644 index a97169e..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArrayTest.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiBatteryArrayTest { - - private IpmiBatteryArray createTestSubject() { - return new IpmiBatteryArray(); - } - - @Test - public void testGetBatteryIdentifier() throws Exception { - IpmiBatteryArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBatteryIdentifier(); - } - - @Test - public void testSetBatteryIdentifier() throws Exception { - IpmiBatteryArray testSubject; - String batteryIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setBatteryIdentifier(batteryIdentifier); - } - - @Test - public void testGetBatteryType() throws Exception { - IpmiBatteryArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBatteryType(); - } - - @Test - public void testSetBatteryType() throws Exception { - IpmiBatteryArray testSubject; - String batteryType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setBatteryType(batteryType); - } - - @Test - public void testGetBatteryVoltageLevel() throws Exception { - IpmiBatteryArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBatteryVoltageLevel(); - } - - @Test - public void testSetBatteryVoltageLevel() throws Exception { - IpmiBatteryArray testSubject; - Double batteryVoltageLevel = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBatteryVoltageLevel(batteryVoltageLevel); - } - - @Test - public void testToString() throws Exception { - IpmiBatteryArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiBatteryArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiBatteryArray testSubject; - IpmiBatteryArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArrayTest.java deleted file mode 100644 index c782aaf..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiFanArrayTest { - - private IpmiFanArray createTestSubject() { - return new IpmiFanArray(); - } - - @Test - public void testGetFanIdentifier() throws Exception { - IpmiFanArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFanIdentifier(); - } - - @Test - public void testSetFanIdentifier() throws Exception { - IpmiFanArray testSubject; - String fanIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFanIdentifier(fanIdentifier); - } - - @Test - public void testGetFanSpeed() throws Exception { - IpmiFanArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFanSpeed(); - } - - @Test - public void testSetFanSpeed() throws Exception { - IpmiFanArray testSubject; - Double fanSpeed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFanSpeed(fanSpeed); - } - - @Test - public void testToString() throws Exception { - IpmiFanArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiFanArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiFanArray testSubject; - IpmiFanArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArrayTest.java deleted file mode 100644 index 120d054..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiGlobalAggregateTemperatureMarginArrayTest { - - private IpmiGlobalAggregateTemperatureMarginArray createTestSubject() { - return new IpmiGlobalAggregateTemperatureMarginArray(); - } - - @Test - public void testGetIpmiGlobalAggregateTemperatureMarginIdentifier() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiGlobalAggregateTemperatureMarginIdentifier(); - } - - @Test - public void testSetIpmiGlobalAggregateTemperatureMarginIdentifier() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - String ipmiGlobalAggregateTemperatureMarginIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiGlobalAggregateTemperatureMarginIdentifier( - ipmiGlobalAggregateTemperatureMarginIdentifier); - } - - @Test - public void testGetGlobalAggregateTemperatureMargin() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGlobalAggregateTemperatureMargin(); - } - - @Test - public void testSetGlobalAggregateTemperatureMargin() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - Double globalAggregateTemperatureMargin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setGlobalAggregateTemperatureMargin(globalAggregateTemperatureMargin); - } - - @Test - public void testToString() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - IpmiGlobalAggregateTemperatureMarginArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArrayTest.java deleted file mode 100644 index deaf91f..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiHsbpArrayTest { - - private IpmiHsbpArray createTestSubject() { - return new IpmiHsbpArray(); - } - - @Test - public void testGetHsbpIdentifier() throws Exception { - IpmiHsbpArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHsbpIdentifier(); - } - - @Test - public void testSetHsbpIdentifier() throws Exception { - IpmiHsbpArray testSubject; - String hsbpIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setHsbpIdentifier(hsbpIdentifier); - } - - @Test - public void testGetHsbpTemperature() throws Exception { - IpmiHsbpArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHsbpTemperature(); - } - - @Test - public void testSetHsbpTemperature() throws Exception { - IpmiHsbpArray testSubject; - Double hsbpTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHsbpTemperature(hsbpTemperature); - } - - @Test - public void testToString() throws Exception { - IpmiHsbpArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiHsbpArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiHsbpArray testSubject; - IpmiHsbpArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArrayTest.java deleted file mode 100644 index 0a3e33f..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiNicArrayTest { - - private IpmiNicArray createTestSubject() { - return new IpmiNicArray(); - } - - @Test - public void testGetNicIdentifier() throws Exception { - IpmiNicArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNicIdentifier(); - } - - @Test - public void testSetNicIdentifier() throws Exception { - IpmiNicArray testSubject; - String nicIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNicIdentifier(nicIdentifier); - } - - @Test - public void testGetNicTemperature() throws Exception { - IpmiNicArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNicTemperature(); - } - - @Test - public void testSetNicTemperature() throws Exception { - IpmiNicArray testSubject; - Double nicTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNicTemperature(nicTemperature); - } - - @Test - public void testToString() throws Exception { - IpmiNicArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiNicArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiNicArray testSubject; - IpmiNicArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArrayTest.java deleted file mode 100644 index 8c96746..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArrayTest.java +++ /dev/null @@ -1,148 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiPowerSupplyArrayTest { - - private IpmiPowerSupplyArray createTestSubject() { - return new IpmiPowerSupplyArray(); - } - - @Test - public void testGetPowerSupplyIdentifier() throws Exception { - IpmiPowerSupplyArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPowerSupplyIdentifier(); - } - - @Test - public void testSetPowerSupplyIdentifier() throws Exception { - IpmiPowerSupplyArray testSubject; - String powerSupplyIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setPowerSupplyIdentifier(powerSupplyIdentifier); - } - - @Test - public void testGetPowerSupplyInputPower() throws Exception { - IpmiPowerSupplyArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPowerSupplyInputPower(); - } - - @Test - public void testSetPowerSupplyInputPower() throws Exception { - IpmiPowerSupplyArray testSubject; - Double powerSupplyInputPower = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPowerSupplyInputPower(powerSupplyInputPower); - } - - @Test - public void testGetPowerSupplyCurrentOutputPercent() throws Exception { - IpmiPowerSupplyArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPowerSupplyCurrentOutputPercent(); - } - - @Test - public void testSetPowerSupplyCurrentOutputPercent() throws Exception { - IpmiPowerSupplyArray testSubject; - Double powerSupplyCurrentOutputPercent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPowerSupplyCurrentOutputPercent(powerSupplyCurrentOutputPercent); - } - - @Test - public void testGetPowerSupplyTemperature() throws Exception { - IpmiPowerSupplyArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPowerSupplyTemperature(); - } - - @Test - public void testSetPowerSupplyTemperature() throws Exception { - IpmiPowerSupplyArray testSubject; - Double powerSupplyTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPowerSupplyTemperature(powerSupplyTemperature); - } - - @Test - public void testToString() throws Exception { - IpmiPowerSupplyArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiPowerSupplyArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiPowerSupplyArray testSubject; - IpmiPowerSupplyArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArrayTest.java deleted file mode 100644 index 23c51d2..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArrayTest.java +++ /dev/null @@ -1,150 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; - - -public class IpmiProcessorArrayTest { - - private IpmiProcessorArray createTestSubject() { - return new IpmiProcessorArray(); - } - - @Test - public void testGetProcessorIdentifier() throws Exception { - IpmiProcessorArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessorIdentifier(); - } - - @Test - public void testSetProcessorIdentifier() throws Exception { - IpmiProcessorArray testSubject; - String processorIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessorIdentifier(processorIdentifier); - } - - @Test - public void testGetProcessorThermalControlPercent() throws Exception { - IpmiProcessorArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessorThermalControlPercent(); - } - - @Test - public void testSetProcessorThermalControlPercent() throws Exception { - IpmiProcessorArray testSubject; - Double processorThermalControlPercent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessorThermalControlPercent(processorThermalControlPercent); - } - - @Test - public void testGetProcessorDtsThermalMargin() throws Exception { - IpmiProcessorArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessorDtsThermalMargin(); - } - - @Test - public void testSetProcessorDtsThermalMargin() throws Exception { - IpmiProcessorArray testSubject; - Double processorDtsThermalMargin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessorDtsThermalMargin(processorDtsThermalMargin); - } - - @Test - public void testGetProcessorDimmAggregateThermalMarginArray() throws Exception { - IpmiProcessorArray testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessorDimmAggregateThermalMarginArray(); - } - - @Test - public void testSetProcessorDimmAggregateThermalMarginArray() throws Exception { - IpmiProcessorArray testSubject; - List processorDimmAggregateThermalMarginArray = null; - - // default test - testSubject = createTestSubject(); - testSubject - .setProcessorDimmAggregateThermalMarginArray(processorDimmAggregateThermalMarginArray); - } - - @Test - public void testToString() throws Exception { - IpmiProcessorArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiProcessorArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiProcessorArray testSubject; - IpmiProcessorArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiTest.java deleted file mode 100644 index 4cb0224..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiTest.java +++ /dev/null @@ -1,331 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; - - -public class IpmiTest { - - private Ipmi createTestSubject() { - return new Ipmi(); - } - - @Test - public void testGetExitAirTemperature() throws Exception { - Ipmi testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getExitAirTemperature(); - } - - @Test - public void testSetExitAirTemperature() throws Exception { - Ipmi testSubject; - Double exitAirTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setExitAirTemperature(exitAirTemperature); - } - - @Test - public void testGetFrontPanelTemperature() throws Exception { - Ipmi testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFrontPanelTemperature(); - } - - @Test - public void testSetFrontPanelTemperature() throws Exception { - Ipmi testSubject; - Double frontPanelTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFrontPanelTemperature(frontPanelTemperature); - } - - @Test - public void testGetIoModuleTemperature() throws Exception { - Ipmi testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIoModuleTemperature(); - } - - @Test - public void testSetIoModuleTemperature() throws Exception { - Ipmi testSubject; - Double ioModuleTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIoModuleTemperature(ioModuleTemperature); - } - - @Test - public void testGetIpmiBaseboardTemperatureArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiBaseboardTemperatureArray(); - } - - @Test - public void testSetIpmiBaseboardTemperatureArray() throws Exception { - Ipmi testSubject; - List ipmiBaseboardTemperatureArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiBaseboardTemperatureArray(ipmiBaseboardTemperatureArray); - } - - @Test - public void testGetIpmiBaseboardVoltageRegulatorArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiBaseboardVoltageRegulatorArray(); - } - - @Test - public void testSetIpmiBaseboardVoltageRegulatorArray() throws Exception { - Ipmi testSubject; - List ipmiBaseboardVoltageRegulatorArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiBaseboardVoltageRegulatorArray(ipmiBaseboardVoltageRegulatorArray); - } - - @Test - public void testGetIpmiBatteryArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiBatteryArray(); - } - - @Test - public void testSetIpmiBatteryArray() throws Exception { - Ipmi testSubject; - List ipmiBatteryArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiBatteryArray(ipmiBatteryArray); - } - - @Test - public void testGetIpmiFanArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiFanArray(); - } - - @Test - public void testSetIpmiFanArray() throws Exception { - Ipmi testSubject; - List ipmiFanArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiFanArray(ipmiFanArray); - } - - @Test - public void testGetIpmiHsbpArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiHsbpArray(); - } - - @Test - public void testSetIpmiHsbpArray() throws Exception { - Ipmi testSubject; - List ipmiHsbpArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiHsbpArray(ipmiHsbpArray); - } - - @Test - public void testGetIpmiGlobalAggregateTemperatureMarginArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiGlobalAggregateTemperatureMarginArray(); - } - - @Test - public void testSetIpmiGlobalAggregateTemperatureMarginArray() throws Exception { - Ipmi testSubject; - List ipmiGlobalAggregateTemperatureMarginArray = - null; - - // default test - testSubject = createTestSubject(); - testSubject - .setIpmiGlobalAggregateTemperatureMarginArray(ipmiGlobalAggregateTemperatureMarginArray); - } - - @Test - public void testGetIpmiNicArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiNicArray(); - } - - @Test - public void testSetIpmiNicArray() throws Exception { - Ipmi testSubject; - List ipmiNicArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiNicArray(ipmiNicArray); - } - - @Test - public void testGetIpmiPowerSupplyArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiPowerSupplyArray(); - } - - @Test - public void testSetIpmiPowerSupplyArray() throws Exception { - Ipmi testSubject; - List ipmiPowerSupplyArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiPowerSupplyArray(ipmiPowerSupplyArray); - } - - @Test - public void testGetIpmiProcessorArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiProcessorArray(); - } - - @Test - public void testSetIpmiProcessorArray() throws Exception { - Ipmi testSubject; - List ipmiProcessorArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiProcessorArray(ipmiProcessorArray); - } - - @Test - public void testGetSystemAirflow() throws Exception { - Ipmi testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSystemAirflow(); - } - - @Test - public void testSetSystemAirflow() throws Exception { - Ipmi testSubject; - Double systemAirflow = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSystemAirflow(systemAirflow); - } - - @Test - public void testToString() throws Exception { - Ipmi testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - Ipmi testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - Ipmi testSubject; - Ipmi testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistributionTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistributionTest.java deleted file mode 100644 index e1b74d9..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistributionTest.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class LatencyDistributionTest { - - private LatencyDistribution createTestSubject() { - return new LatencyDistribution(); - } - - @Test - public void testGetCountsInTheBucket() throws Exception { - LatencyDistribution testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCountsInTheBucket(); - } - - @Test - public void testSetCountsInTheBucket() throws Exception { - LatencyDistribution testSubject; - Double countsInTheBucket = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCountsInTheBucket(countsInTheBucket); - } - - @Test - public void testGetHighEndOfLatencyBucket() throws Exception { - LatencyDistribution testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHighEndOfLatencyBucket(); - } - - @Test - public void testSetHighEndOfLatencyBucket() throws Exception { - LatencyDistribution testSubject; - Double highEndOfLatencyBucket = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHighEndOfLatencyBucket(highEndOfLatencyBucket); - } - - @Test - public void testGetLowEndOfLatencyBucket() throws Exception { - LatencyDistribution testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLowEndOfLatencyBucket(); - } - - @Test - public void testSetLowEndOfLatencyBucket() throws Exception { - LatencyDistribution testSubject; - Double lowEndOfLatencyBucket = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLowEndOfLatencyBucket(lowEndOfLatencyBucket); - } - - @Test - public void testToString() throws Exception { - LatencyDistribution testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - LatencyDistribution testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - LatencyDistribution testSubject; - LatencyDistribution testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArrayTest.java deleted file mode 100644 index 515c9e1..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArrayTest.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class LoadArrayTest { - - private LoadArray createTestSubject() { - return new LoadArray(); - } - - @Test - public void testGetLongTerm() throws Exception { - LoadArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLongTerm(); - } - - @Test - public void testSetLongTerm() throws Exception { - LoadArray testSubject; - Double longTerm = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLongTerm(longTerm); - } - - @Test - public void testGetMidTerm() throws Exception { - LoadArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMidTerm(); - } - - @Test - public void testSetMidTerm() throws Exception { - LoadArray testSubject; - Double midTerm = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMidTerm(midTerm); - } - - @Test - public void testGetShortTerm() throws Exception { - LoadArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getShortTerm(); - } - - @Test - public void testSetShortTerm() throws Exception { - LoadArray testSubject; - Double shortTerm = null; - - // default test - testSubject = createTestSubject(); - testSubject.setShortTerm(shortTerm); - } - - @Test - public void testToString() throws Exception { - LoadArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - LoadArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - LoadArray testSubject; - LoadArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArrayTest.java deleted file mode 100644 index 247c680..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArrayTest.java +++ /dev/null @@ -1,168 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class MachineCheckExceptionArrayTest { - - private MachineCheckExceptionArray createTestSubject() { - return new MachineCheckExceptionArray(); - } - - @Test - public void testGetCorrectedMemoryErrors() throws Exception { - MachineCheckExceptionArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCorrectedMemoryErrors(); - } - - @Test - public void testSetCorrectedMemoryErrors() throws Exception { - MachineCheckExceptionArray testSubject; - Double correctedMemoryErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCorrectedMemoryErrors(correctedMemoryErrors); - } - - @Test - public void testGetCorrectedMemoryErrorsIn1Hr() throws Exception { - MachineCheckExceptionArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCorrectedMemoryErrorsIn1Hr(); - } - - @Test - public void testSetCorrectedMemoryErrorsIn1Hr() throws Exception { - MachineCheckExceptionArray testSubject; - Double correctedMemoryErrorsIn1Hr = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCorrectedMemoryErrorsIn1Hr(correctedMemoryErrorsIn1Hr); - } - - @Test - public void testGetUncorrectedMemoryErrors() throws Exception { - MachineCheckExceptionArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUncorrectedMemoryErrors(); - } - - @Test - public void testSetUncorrectedMemoryErrors() throws Exception { - MachineCheckExceptionArray testSubject; - Double uncorrectedMemoryErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setUncorrectedMemoryErrors(uncorrectedMemoryErrors); - } - - @Test - public void testGetUncorrectedMemoryErrorsIn1Hr() throws Exception { - MachineCheckExceptionArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUncorrectedMemoryErrorsIn1Hr(); - } - - @Test - public void testSetUncorrectedMemoryErrorsIn1Hr() throws Exception { - MachineCheckExceptionArray testSubject; - Double uncorrectedMemoryErrorsIn1Hr = null; - - // default test - testSubject = createTestSubject(); - testSubject.setUncorrectedMemoryErrorsIn1Hr(uncorrectedMemoryErrorsIn1Hr); - } - - @Test - public void testGetVmIdentifier() throws Exception { - MachineCheckExceptionArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVmIdentifier(); - } - - @Test - public void testSetVmIdentifier() throws Exception { - MachineCheckExceptionArray testSubject; - String vmIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVmIdentifier(vmIdentifier); - } - - @Test - public void testToString() throws Exception { - MachineCheckExceptionArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - MachineCheckExceptionArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - MachineCheckExceptionArray testSubject; - MachineCheckExceptionArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFieldsTest.java deleted file mode 100644 index df24c3f..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFieldsTest.java +++ /dev/null @@ -1,550 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.MeasurementFields.MeasurementFieldsVersion; - - -public class MeasurementFieldsTest { - - private MeasurementFields createTestSubject() { - return new MeasurementFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - MeasurementFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - MeasurementFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetAdditionalMeasurements() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalMeasurements(); - } - - @Test - public void testSetAdditionalMeasurements() throws Exception { - MeasurementFields testSubject; - List additionalMeasurements = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalMeasurements(additionalMeasurements); - } - - @Test - public void testGetAdditionalObjects() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalObjects(); - } - - @Test - public void testSetAdditionalObjects() throws Exception { - MeasurementFields testSubject; - List additionalObjects = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalObjects(additionalObjects); - } - - @Test - public void testGetCodecUsageArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCodecUsageArray(); - } - - @Test - public void testSetCodecUsageArray() throws Exception { - MeasurementFields testSubject; - List codecUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCodecUsageArray(codecUsageArray); - } - - @Test - public void testGetConcurrentSessions() throws Exception { - MeasurementFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getConcurrentSessions(); - } - - @Test - public void testSetConcurrentSessions() throws Exception { - MeasurementFields testSubject; - Integer concurrentSessions = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setConcurrentSessions(concurrentSessions); - } - - @Test - public void testGetConfiguredEntities() throws Exception { - MeasurementFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getConfiguredEntities(); - } - - @Test - public void testSetConfiguredEntities() throws Exception { - MeasurementFields testSubject; - Integer configuredEntities = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setConfiguredEntities(configuredEntities); - } - - @Test - public void testGetCpuUsageArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageArray(); - } - - @Test - public void testSetCpuUsageArray() throws Exception { - MeasurementFields testSubject; - List cpuUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageArray(cpuUsageArray); - } - - @Test - public void testGetDiskUsageArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskUsageArray(); - } - - @Test - public void testSetDiskUsageArray() throws Exception { - MeasurementFields testSubject; - List diskUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskUsageArray(diskUsageArray); - } - - @Test - public void testGetFeatureUsageArray() throws Exception { - MeasurementFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFeatureUsageArray(); - } - - @Test - public void testSetFeatureUsageArray() throws Exception { - MeasurementFields testSubject; - AlarmAdditionalInformation featureUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFeatureUsageArray(featureUsageArray); - } - - @Test - public void testGetFilesystemUsageArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFilesystemUsageArray(); - } - - @Test - public void testSetFilesystemUsageArray() throws Exception { - MeasurementFields testSubject; - List filesystemUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFilesystemUsageArray(filesystemUsageArray); - } - - @Test - public void testGetHugePagesArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHugePagesArray(); - } - - @Test - public void testSetHugePagesArray() throws Exception { - MeasurementFields testSubject; - List hugePagesArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHugePagesArray(hugePagesArray); - } - - @Test - public void testGetIpmi() throws Exception { - MeasurementFields testSubject; - Ipmi result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmi(); - } - - @Test - public void testSetIpmi() throws Exception { - MeasurementFields testSubject; - Ipmi ipmi = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmi(ipmi); - } - - @Test - public void testGetLatencyDistribution() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLatencyDistribution(); - } - - @Test - public void testSetLatencyDistribution() throws Exception { - MeasurementFields testSubject; - List latencyDistribution = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLatencyDistribution(latencyDistribution); - } - - @Test - public void testGetLoadArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLoadArray(); - } - - @Test - public void testSetLoadArray() throws Exception { - MeasurementFields testSubject; - List loadArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLoadArray(loadArray); - } - - @Test - public void testGetMachineCheckExceptionArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMachineCheckExceptionArray(); - } - - @Test - public void testSetMachineCheckExceptionArray() throws Exception { - MeasurementFields testSubject; - List machineCheckExceptionArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMachineCheckExceptionArray(machineCheckExceptionArray); - } - - @Test - public void testGetMeanRequestLatency() throws Exception { - MeasurementFields testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMeanRequestLatency(); - } - - @Test - public void testSetMeanRequestLatency() throws Exception { - MeasurementFields testSubject; - Double meanRequestLatency = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMeanRequestLatency(meanRequestLatency); - } - - @Test - public void testGetMeasurementInterval() throws Exception { - MeasurementFields testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMeasurementInterval(); - } - - @Test - public void testSetMeasurementInterval() throws Exception { - MeasurementFields testSubject; - Double measurementInterval = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMeasurementInterval(measurementInterval); - } - - @Test - public void testGetMeasurementFieldsVersion() throws Exception { - MeasurementFields testSubject; - MeasurementFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMeasurementFieldsVersion(); - } - - @Test - public void testSetMeasurementFieldsVersion() throws Exception { - MeasurementFields testSubject; - MeasurementFieldsVersion measurementFieldsVersion = MeasurementFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setMeasurementFieldsVersion(measurementFieldsVersion); - } - - @Test - public void testGetMemoryUsageArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryUsageArray(); - } - - @Test - public void testSetMemoryUsageArray() throws Exception { - MeasurementFields testSubject; - List memoryUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryUsageArray(memoryUsageArray); - } - - @Test - public void testGetNumberOfMediaPortsInUse() throws Exception { - MeasurementFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumberOfMediaPortsInUse(); - } - - @Test - public void testSetNumberOfMediaPortsInUse() throws Exception { - MeasurementFields testSubject; - Integer numberOfMediaPortsInUse = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setNumberOfMediaPortsInUse(numberOfMediaPortsInUse); - } - - @Test - public void testGetRequestRate() throws Exception { - MeasurementFields testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRequestRate(); - } - - @Test - public void testSetRequestRate() throws Exception { - MeasurementFields testSubject; - Double requestRate = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRequestRate(requestRate); - } - - @Test - public void testGetNfcScalingMetric() throws Exception { - MeasurementFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfcScalingMetric(); - } - - @Test - public void testSetNfcScalingMetric() throws Exception { - MeasurementFields testSubject; - Integer nfcScalingMetric = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setNfcScalingMetric(nfcScalingMetric); - } - - @Test - public void testGetNicPerformanceArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNicPerformanceArray(); - } - - @Test - public void testSetNicPerformanceArray() throws Exception { - MeasurementFields testSubject; - List nicPerformanceArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNicPerformanceArray(nicPerformanceArray); - } - - @Test - public void testGetProcessStatsArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessStatsArray(); - } - - @Test - public void testSetProcessStatsArray() throws Exception { - MeasurementFields testSubject; - List processStatsArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessStatsArray(processStatsArray); - } - - @Test - public void testToString() throws Exception { - MeasurementFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - MeasurementFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - MeasurementFields testSubject; - MeasurementFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArrayTest.java deleted file mode 100644 index 533864a..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArrayTest.java +++ /dev/null @@ -1,408 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class MemoryUsageArrayTest { - - private MemoryUsageArray createTestSubject() { - return new MemoryUsageArray(); - } - - @Test - public void testGetMemoryBuffered() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryBuffered(); - } - - @Test - public void testSetMemoryBuffered() throws Exception { - MemoryUsageArray testSubject; - Double memoryBuffered = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryBuffered(memoryBuffered); - } - - @Test - public void testGetMemoryCached() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryCached(); - } - - @Test - public void testSetMemoryCached() throws Exception { - MemoryUsageArray testSubject; - Double memoryCached = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryCached(memoryCached); - } - - @Test - public void testGetMemoryConfigured() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryConfigured(); - } - - @Test - public void testSetMemoryConfigured() throws Exception { - MemoryUsageArray testSubject; - Double memoryConfigured = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryConfigured(memoryConfigured); - } - - @Test - public void testGetMemoryDemand() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryDemand(); - } - - @Test - public void testSetMemoryDemand() throws Exception { - MemoryUsageArray testSubject; - Double memoryDemand = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryDemand(memoryDemand); - } - - @Test - public void testGetMemoryFree() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryFree(); - } - - @Test - public void testSetMemoryFree() throws Exception { - MemoryUsageArray testSubject; - Double memoryFree = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryFree(memoryFree); - } - - @Test - public void testGetMemoryLatencyAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryLatencyAvg(); - } - - @Test - public void testSetMemoryLatencyAvg() throws Exception { - MemoryUsageArray testSubject; - Double memoryLatencyAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryLatencyAvg(memoryLatencyAvg); - } - - @Test - public void testGetMemorySharedAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySharedAvg(); - } - - @Test - public void testSetMemorySharedAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySharedAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySharedAvg(memorySharedAvg); - } - - @Test - public void testGetMemorySlabRecl() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySlabRecl(); - } - - @Test - public void testSetMemorySlabRecl() throws Exception { - MemoryUsageArray testSubject; - Double memorySlabRecl = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySlabRecl(memorySlabRecl); - } - - @Test - public void testGetMemorySlabUnrecl() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySlabUnrecl(); - } - - @Test - public void testSetMemorySlabUnrecl() throws Exception { - MemoryUsageArray testSubject; - Double memorySlabUnrecl = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySlabUnrecl(memorySlabUnrecl); - } - - @Test - public void testGetMemorySwapInAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySwapInAvg(); - } - - @Test - public void testSetMemorySwapInAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySwapInAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySwapInAvg(memorySwapInAvg); - } - - @Test - public void testGetMemorySwapInRateAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySwapInRateAvg(); - } - - @Test - public void testSetMemorySwapInRateAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySwapInRateAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySwapInRateAvg(memorySwapInRateAvg); - } - - @Test - public void testGetMemorySwapOutAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySwapOutAvg(); - } - - @Test - public void testSetMemorySwapOutAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySwapOutAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySwapOutAvg(memorySwapOutAvg); - } - - @Test - public void testGetMemorySwapOutRateAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySwapOutRateAvg(); - } - - @Test - public void testSetMemorySwapOutRateAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySwapOutRateAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySwapOutRateAvg(memorySwapOutRateAvg); - } - - @Test - public void testGetMemorySwapUsedAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySwapUsedAvg(); - } - - @Test - public void testSetMemorySwapUsedAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySwapUsedAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySwapUsedAvg(memorySwapUsedAvg); - } - - @Test - public void testGetMemoryUsed() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryUsed(); - } - - @Test - public void testSetMemoryUsed() throws Exception { - MemoryUsageArray testSubject; - Double memoryUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryUsed(memoryUsed); - } - - @Test - public void testGetPercentMemoryUsage() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPercentMemoryUsage(); - } - - @Test - public void testSetPercentMemoryUsage() throws Exception { - MemoryUsageArray testSubject; - Double percentMemoryUsage = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPercentMemoryUsage(percentMemoryUsage); - } - - @Test - public void testGetVmIdentifier() throws Exception { - MemoryUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVmIdentifier(); - } - - @Test - public void testSetVmIdentifier() throws Exception { - MemoryUsageArray testSubject; - String vmIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVmIdentifier(vmIdentifier); - } - - @Test - public void testToString() throws Exception { - MemoryUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - MemoryUsageArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - MemoryUsageArray testSubject; - MemoryUsageArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFieldsTest.java deleted file mode 100644 index 966666f..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFieldsTest.java +++ /dev/null @@ -1,729 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.MobileFlowFields.MobileFlowFieldsVersion; - - -public class MobileFlowFieldsTest { - - private MobileFlowFields createTestSubject() { - return new MobileFlowFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - MobileFlowFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - MobileFlowFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetApplicationType() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getApplicationType(); - } - - @Test - public void testSetApplicationType() throws Exception { - MobileFlowFields testSubject; - String applicationType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setApplicationType(applicationType); - } - - @Test - public void testGetAppProtocolType() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAppProtocolType(); - } - - @Test - public void testSetAppProtocolType() throws Exception { - MobileFlowFields testSubject; - String appProtocolType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAppProtocolType(appProtocolType); - } - - @Test - public void testGetAppProtocolVersion() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAppProtocolVersion(); - } - - @Test - public void testSetAppProtocolVersion() throws Exception { - MobileFlowFields testSubject; - String appProtocolVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAppProtocolVersion(appProtocolVersion); - } - - @Test - public void testGetCid() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCid(); - } - - @Test - public void testSetCid() throws Exception { - MobileFlowFields testSubject; - String cid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCid(cid); - } - - @Test - public void testGetConnectionType() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getConnectionType(); - } - - @Test - public void testSetConnectionType() throws Exception { - MobileFlowFields testSubject; - String connectionType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setConnectionType(connectionType); - } - - @Test - public void testGetEcgi() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEcgi(); - } - - @Test - public void testSetEcgi() throws Exception { - MobileFlowFields testSubject; - String ecgi = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEcgi(ecgi); - } - - @Test - public void testGetFlowDirection() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowDirection(); - } - - @Test - public void testSetFlowDirection() throws Exception { - MobileFlowFields testSubject; - String flowDirection = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowDirection(flowDirection); - } - - @Test - public void testGetGtpPerFlowMetrics() throws Exception { - MobileFlowFields testSubject; - GtpPerFlowMetrics result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGtpPerFlowMetrics(); - } - - @Test - public void testSetGtpPerFlowMetrics() throws Exception { - MobileFlowFields testSubject; - GtpPerFlowMetrics gtpPerFlowMetrics = null; - - // default test - testSubject = createTestSubject(); - testSubject.setGtpPerFlowMetrics(gtpPerFlowMetrics); - } - - @Test - public void testGetGtpProtocolType() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGtpProtocolType(); - } - - @Test - public void testSetGtpProtocolType() throws Exception { - MobileFlowFields testSubject; - String gtpProtocolType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setGtpProtocolType(gtpProtocolType); - } - - @Test - public void testGetGtpVersion() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGtpVersion(); - } - - @Test - public void testSetGtpVersion() throws Exception { - MobileFlowFields testSubject; - String gtpVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setGtpVersion(gtpVersion); - } - - @Test - public void testGetHttpHeader() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHttpHeader(); - } - - @Test - public void testSetHttpHeader() throws Exception { - MobileFlowFields testSubject; - String httpHeader = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setHttpHeader(httpHeader); - } - - @Test - public void testGetImei() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getImei(); - } - - @Test - public void testSetImei() throws Exception { - MobileFlowFields testSubject; - String imei = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setImei(imei); - } - - @Test - public void testGetImsi() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getImsi(); - } - - @Test - public void testSetImsi() throws Exception { - MobileFlowFields testSubject; - String imsi = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setImsi(imsi); - } - - @Test - public void testGetIpProtocolType() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpProtocolType(); - } - - @Test - public void testSetIpProtocolType() throws Exception { - MobileFlowFields testSubject; - String ipProtocolType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setIpProtocolType(ipProtocolType); - } - - @Test - public void testGetIpVersion() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpVersion(); - } - - @Test - public void testSetIpVersion() throws Exception { - MobileFlowFields testSubject; - String ipVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setIpVersion(ipVersion); - } - - @Test - public void testGetLac() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLac(); - } - - @Test - public void testSetLac() throws Exception { - MobileFlowFields testSubject; - String lac = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setLac(lac); - } - - @Test - public void testGetMcc() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMcc(); - } - - @Test - public void testSetMcc() throws Exception { - MobileFlowFields testSubject; - String mcc = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setMcc(mcc); - } - - @Test - public void testGetMnc() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMnc(); - } - - @Test - public void testSetMnc() throws Exception { - MobileFlowFields testSubject; - String mnc = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setMnc(mnc); - } - - @Test - public void testGetMobileFlowFieldsVersion() throws Exception { - MobileFlowFields testSubject; - MobileFlowFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMobileFlowFieldsVersion(); - } - - @Test - public void testSetMobileFlowFieldsVersion() throws Exception { - MobileFlowFields testSubject; - MobileFlowFieldsVersion mobileFlowFieldsVersion = MobileFlowFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setMobileFlowFieldsVersion(mobileFlowFieldsVersion); - } - - @Test - public void testGetMsisdn() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMsisdn(); - } - - @Test - public void testSetMsisdn() throws Exception { - MobileFlowFields testSubject; - String msisdn = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setMsisdn(msisdn); - } - - @Test - public void testGetOtherEndpointIpAddress() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOtherEndpointIpAddress(); - } - - @Test - public void testSetOtherEndpointIpAddress() throws Exception { - MobileFlowFields testSubject; - String otherEndpointIpAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setOtherEndpointIpAddress(otherEndpointIpAddress); - } - - @Test - public void testGetOtherEndpointPort() throws Exception { - MobileFlowFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOtherEndpointPort(); - } - - @Test - public void testSetOtherEndpointPort() throws Exception { - MobileFlowFields testSubject; - Integer otherEndpointPort = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setOtherEndpointPort(otherEndpointPort); - } - - @Test - public void testGetOtherFunctionalRole() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOtherFunctionalRole(); - } - - @Test - public void testSetOtherFunctionalRole() throws Exception { - MobileFlowFields testSubject; - String otherFunctionalRole = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setOtherFunctionalRole(otherFunctionalRole); - } - - @Test - public void testGetRac() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRac(); - } - - @Test - public void testSetRac() throws Exception { - MobileFlowFields testSubject; - String rac = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRac(rac); - } - - @Test - public void testGetRadioAccessTechnology() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRadioAccessTechnology(); - } - - @Test - public void testSetRadioAccessTechnology() throws Exception { - MobileFlowFields testSubject; - String radioAccessTechnology = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRadioAccessTechnology(radioAccessTechnology); - } - - @Test - public void testGetReportingEndpointIpAddr() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReportingEndpointIpAddr(); - } - - @Test - public void testSetReportingEndpointIpAddr() throws Exception { - MobileFlowFields testSubject; - String reportingEndpointIpAddr = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setReportingEndpointIpAddr(reportingEndpointIpAddr); - } - - @Test - public void testGetReportingEndpointPort() throws Exception { - MobileFlowFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReportingEndpointPort(); - } - - @Test - public void testSetReportingEndpointPort() throws Exception { - MobileFlowFields testSubject; - Integer reportingEndpointPort = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setReportingEndpointPort(reportingEndpointPort); - } - - @Test - public void testGetSac() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSac(); - } - - @Test - public void testSetSac() throws Exception { - MobileFlowFields testSubject; - String sac = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSac(sac); - } - - @Test - public void testGetSamplingAlgorithm() throws Exception { - MobileFlowFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSamplingAlgorithm(); - } - - @Test - public void testSetSamplingAlgorithm() throws Exception { - MobileFlowFields testSubject; - Integer samplingAlgorithm = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setSamplingAlgorithm(samplingAlgorithm); - } - - @Test - public void testGetTac() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTac(); - } - - @Test - public void testSetTac() throws Exception { - MobileFlowFields testSubject; - String tac = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setTac(tac); - } - - @Test - public void testGetTunnelId() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTunnelId(); - } - - @Test - public void testSetTunnelId() throws Exception { - MobileFlowFields testSubject; - String tunnelId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setTunnelId(tunnelId); - } - - @Test - public void testGetVlanId() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVlanId(); - } - - @Test - public void testSetVlanId() throws Exception { - MobileFlowFields testSubject; - String vlanId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVlanId(vlanId); - } - - @Test - public void testToString() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - MobileFlowFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - MobileFlowFields testSubject; - MobileFlowFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArrayTest.java deleted file mode 100644 index cc6781d..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArrayTest.java +++ /dev/null @@ -1,851 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.NicPerformanceArray.AdministrativeState; -import org.onap.dcaegen2.ves.domain.ves7_0.NicPerformanceArray.OperationalState; -import org.onap.dcaegen2.ves.domain.ves7_0.NicPerformanceArray.ValuesAreSuspect; - - -public class NicPerformanceArrayTest { - - private NicPerformanceArray createTestSubject() { - return new NicPerformanceArray(); - } - - @Test - public void testGetAdministrativeState() throws Exception { - NicPerformanceArray testSubject; - AdministrativeState result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdministrativeState(); - } - - @Test - public void testSetAdministrativeState() throws Exception { - NicPerformanceArray testSubject; - AdministrativeState administrativeState = AdministrativeState.IN_SERVICE; - - // default test - testSubject = createTestSubject(); - testSubject.setAdministrativeState(administrativeState); - } - - @Test - public void testGetNicIdentifier() throws Exception { - NicPerformanceArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNicIdentifier(); - } - - @Test - public void testSetNicIdentifier() throws Exception { - NicPerformanceArray testSubject; - String nicIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNicIdentifier(nicIdentifier); - } - - @Test - public void testGetOperationalState() throws Exception { - NicPerformanceArray testSubject; - OperationalState result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOperationalState(); - } - - @Test - public void testSetOperationalState() throws Exception { - NicPerformanceArray testSubject; - OperationalState operationalState = OperationalState.IN_SERVICE; - - // default test - testSubject = createTestSubject(); - testSubject.setOperationalState(operationalState); - } - - @Test - public void testGetReceivedBroadcastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedBroadcastPacketsAccumulated(); - } - - @Test - public void testSetReceivedBroadcastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedBroadcastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedBroadcastPacketsAccumulated(receivedBroadcastPacketsAccumulated); - } - - @Test - public void testGetReceivedBroadcastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedBroadcastPacketsDelta(); - } - - @Test - public void testSetReceivedBroadcastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedBroadcastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedBroadcastPacketsDelta(receivedBroadcastPacketsDelta); - } - - @Test - public void testGetReceivedDiscardedPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedDiscardedPacketsAccumulated(); - } - - @Test - public void testSetReceivedDiscardedPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedDiscardedPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedDiscardedPacketsAccumulated(receivedDiscardedPacketsAccumulated); - } - - @Test - public void testGetReceivedDiscardedPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedDiscardedPacketsDelta(); - } - - @Test - public void testSetReceivedDiscardedPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedDiscardedPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedDiscardedPacketsDelta(receivedDiscardedPacketsDelta); - } - - @Test - public void testGetReceivedErrorPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedErrorPacketsAccumulated(); - } - - @Test - public void testSetReceivedErrorPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedErrorPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedErrorPacketsAccumulated(receivedErrorPacketsAccumulated); - } - - @Test - public void testGetReceivedErrorPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedErrorPacketsDelta(); - } - - @Test - public void testSetReceivedErrorPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedErrorPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedErrorPacketsDelta(receivedErrorPacketsDelta); - } - - @Test - public void testGetReceivedMulticastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedMulticastPacketsAccumulated(); - } - - @Test - public void testSetReceivedMulticastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedMulticastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedMulticastPacketsAccumulated(receivedMulticastPacketsAccumulated); - } - - @Test - public void testGetReceivedMulticastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedMulticastPacketsDelta(); - } - - @Test - public void testSetReceivedMulticastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedMulticastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedMulticastPacketsDelta(receivedMulticastPacketsDelta); - } - - @Test - public void testGetReceivedOctetsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedOctetsAccumulated(); - } - - @Test - public void testSetReceivedOctetsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedOctetsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedOctetsAccumulated(receivedOctetsAccumulated); - } - - @Test - public void testGetReceivedOctetsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedOctetsDelta(); - } - - @Test - public void testSetReceivedOctetsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedOctetsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedOctetsDelta(receivedOctetsDelta); - } - - @Test - public void testGetReceivedTotalPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedTotalPacketsAccumulated(); - } - - @Test - public void testSetReceivedTotalPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedTotalPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedTotalPacketsAccumulated(receivedTotalPacketsAccumulated); - } - - @Test - public void testGetReceivedPercentDiscard() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedPercentDiscard(); - } - - @Test - public void testSetReceivedPercentDiscard() throws Exception { - NicPerformanceArray testSubject; - Double receivedPercentDiscard = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedPercentDiscard(receivedPercentDiscard); - } - - @Test - public void testGetReceivedPercentError() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedPercentError(); - } - - @Test - public void testSetReceivedPercentError() throws Exception { - NicPerformanceArray testSubject; - Double receivedPercentError = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedPercentError(receivedPercentError); - } - - @Test - public void testGetReceivedTotalPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedTotalPacketsDelta(); - } - - @Test - public void testSetReceivedTotalPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedTotalPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedTotalPacketsDelta(receivedTotalPacketsDelta); - } - - @Test - public void testGetReceivedUnicastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedUnicastPacketsAccumulated(); - } - - @Test - public void testSetReceivedUnicastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedUnicastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedUnicastPacketsAccumulated(receivedUnicastPacketsAccumulated); - } - - @Test - public void testGetReceivedUnicastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedUnicastPacketsDelta(); - } - - @Test - public void testSetReceivedUnicastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedUnicastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedUnicastPacketsDelta(receivedUnicastPacketsDelta); - } - - @Test - public void testGetReceivedUtilization() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedUtilization(); - } - - @Test - public void testSetReceivedUtilization() throws Exception { - NicPerformanceArray testSubject; - Double receivedUtilization = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedUtilization(receivedUtilization); - } - - @Test - public void testGetSpeed() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSpeed(); - } - - @Test - public void testSetSpeed() throws Exception { - NicPerformanceArray testSubject; - Double speed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSpeed(speed); - } - - @Test - public void testGetTransmittedBroadcastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedBroadcastPacketsAccumulated(); - } - - @Test - public void testSetTransmittedBroadcastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedBroadcastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedBroadcastPacketsAccumulated(transmittedBroadcastPacketsAccumulated); - } - - @Test - public void testGetTransmittedBroadcastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedBroadcastPacketsDelta(); - } - - @Test - public void testSetTransmittedBroadcastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedBroadcastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedBroadcastPacketsDelta(transmittedBroadcastPacketsDelta); - } - - @Test - public void testGetTransmittedDiscardedPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedDiscardedPacketsAccumulated(); - } - - @Test - public void testSetTransmittedDiscardedPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedDiscardedPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedDiscardedPacketsAccumulated(transmittedDiscardedPacketsAccumulated); - } - - @Test - public void testGetTransmittedDiscardedPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedDiscardedPacketsDelta(); - } - - @Test - public void testSetTransmittedDiscardedPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedDiscardedPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedDiscardedPacketsDelta(transmittedDiscardedPacketsDelta); - } - - @Test - public void testGetTransmittedErrorPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedErrorPacketsAccumulated(); - } - - @Test - public void testSetTransmittedErrorPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedErrorPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedErrorPacketsAccumulated(transmittedErrorPacketsAccumulated); - } - - @Test - public void testGetTransmittedErrorPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedErrorPacketsDelta(); - } - - @Test - public void testSetTransmittedErrorPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedErrorPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedErrorPacketsDelta(transmittedErrorPacketsDelta); - } - - @Test - public void testGetTransmittedMulticastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedMulticastPacketsAccumulated(); - } - - @Test - public void testSetTransmittedMulticastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedMulticastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedMulticastPacketsAccumulated(transmittedMulticastPacketsAccumulated); - } - - @Test - public void testGetTransmittedMulticastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedMulticastPacketsDelta(); - } - - @Test - public void testSetTransmittedMulticastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedMulticastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedMulticastPacketsDelta(transmittedMulticastPacketsDelta); - } - - @Test - public void testGetTransmittedOctetsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedOctetsAccumulated(); - } - - @Test - public void testSetTransmittedOctetsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedOctetsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedOctetsAccumulated(transmittedOctetsAccumulated); - } - - @Test - public void testGetTransmittedOctetsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedOctetsDelta(); - } - - @Test - public void testSetTransmittedOctetsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedOctetsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedOctetsDelta(transmittedOctetsDelta); - } - - @Test - public void testGetTransmittedTotalPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedTotalPacketsAccumulated(); - } - - @Test - public void testSetTransmittedTotalPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedTotalPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedTotalPacketsAccumulated(transmittedTotalPacketsAccumulated); - } - - @Test - public void testGetTransmittedTotalPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedTotalPacketsDelta(); - } - - @Test - public void testSetTransmittedTotalPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedTotalPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedTotalPacketsDelta(transmittedTotalPacketsDelta); - } - - @Test - public void testGetTransmittedUnicastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedUnicastPacketsAccumulated(); - } - - @Test - public void testSetTransmittedUnicastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedUnicastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedUnicastPacketsAccumulated(transmittedUnicastPacketsAccumulated); - } - - @Test - public void testGetTransmittedUnicastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedUnicastPacketsDelta(); - } - - @Test - public void testSetTransmittedUnicastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedUnicastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedUnicastPacketsDelta(transmittedUnicastPacketsDelta); - } - - @Test - public void testGetTransmittedPercentDiscard() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedPercentDiscard(); - } - - @Test - public void testSetTransmittedPercentDiscard() throws Exception { - NicPerformanceArray testSubject; - Double transmittedPercentDiscard = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedPercentDiscard(transmittedPercentDiscard); - } - - @Test - public void testGetTransmittedPercentError() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedPercentError(); - } - - @Test - public void testSetTransmittedPercentError() throws Exception { - NicPerformanceArray testSubject; - Double transmittedPercentError = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedPercentError(transmittedPercentError); - } - - @Test - public void testGetTransmittedUtilization() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedUtilization(); - } - - @Test - public void testSetTransmittedUtilization() throws Exception { - NicPerformanceArray testSubject; - Double transmittedUtilization = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedUtilization(transmittedUtilization); - } - - @Test - public void testGetValuesAreSuspect() throws Exception { - NicPerformanceArray testSubject; - ValuesAreSuspect result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getValuesAreSuspect(); - } - - @Test - public void testSetValuesAreSuspect() throws Exception { - NicPerformanceArray testSubject; - ValuesAreSuspect valuesAreSuspect = ValuesAreSuspect.FALSE; - - // default test - testSubject = createTestSubject(); - testSubject.setValuesAreSuspect(valuesAreSuspect); - } - - @Test - public void testToString() throws Exception { - NicPerformanceArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - NicPerformanceArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - NicPerformanceArray testSubject; - NicPerformanceArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFieldsTest.java deleted file mode 100644 index ddce424..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFieldsTest.java +++ /dev/null @@ -1,250 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.NotificationFields.NotificationFieldsVersion; - - -public class NotificationFieldsTest { - - private NotificationFields createTestSubject() { - return new NotificationFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - NotificationFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - NotificationFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetArrayOfNamedHashMap() throws Exception { - NotificationFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArrayOfNamedHashMap(); - } - - @Test - public void testSetArrayOfNamedHashMap() throws Exception { - NotificationFields testSubject; - List arrayOfNamedHashMap = null; - - // default test - testSubject = createTestSubject(); - testSubject.setArrayOfNamedHashMap(arrayOfNamedHashMap); - } - - @Test - public void testGetChangeContact() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getChangeContact(); - } - - @Test - public void testSetChangeContact() throws Exception { - NotificationFields testSubject; - String changeContact = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setChangeContact(changeContact); - } - - @Test - public void testGetChangeIdentifier() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getChangeIdentifier(); - } - - @Test - public void testSetChangeIdentifier() throws Exception { - NotificationFields testSubject; - String changeIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setChangeIdentifier(changeIdentifier); - } - - @Test - public void testGetChangeType() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getChangeType(); - } - - @Test - public void testSetChangeType() throws Exception { - NotificationFields testSubject; - String changeType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setChangeType(changeType); - } - - @Test - public void testGetNewState() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNewState(); - } - - @Test - public void testSetNewState() throws Exception { - NotificationFields testSubject; - String newState = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNewState(newState); - } - - @Test - public void testGetOldState() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOldState(); - } - - @Test - public void testSetOldState() throws Exception { - NotificationFields testSubject; - String oldState = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setOldState(oldState); - } - - @Test - public void testGetNotificationFieldsVersion() throws Exception { - NotificationFields testSubject; - NotificationFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNotificationFieldsVersion(); - } - - @Test - public void testSetNotificationFieldsVersion() throws Exception { - NotificationFields testSubject; - NotificationFieldsVersion notificationFieldsVersion = NotificationFieldsVersion._2_0; - - // default test - testSubject = createTestSubject(); - testSubject.setNotificationFieldsVersion(notificationFieldsVersion); - } - - @Test - public void testGetStateInterface() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStateInterface(); - } - - @Test - public void testSetStateInterface() throws Exception { - NotificationFields testSubject; - String stateInterface = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setStateInterface(stateInterface); - } - - @Test - public void testToString() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - NotificationFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - NotificationFields testSubject; - NotificationFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstanceTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstanceTest.java deleted file mode 100644 index 9895561..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstanceTest.java +++ /dev/null @@ -1,149 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; - - -public class ObjectInstanceTest { - - private ObjectInstance createTestSubject() { - return new ObjectInstance(); - } - - @Test - public void testGetJsonObject() throws Exception { - ObjectInstance testSubject; - AdditionalObject result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getJsonObject(); - } - - @Test - public void testSetJsonObject() throws Exception { - ObjectInstance testSubject; - AdditionalObject jsonObject = null; - - // default test - testSubject = createTestSubject(); - testSubject.setJsonObject(jsonObject); - } - - @Test - public void testGetObjectInstance() throws Exception { - ObjectInstance testSubject; - ObjectInstance result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getObjectInstance(); - } - - @Test - public void testSetObjectInstance() throws Exception { - ObjectInstance testSubject; - ObjectInstance objectInstance = null; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectInstance(objectInstance); - } - - @Test - public void testGetObjectInstanceEpochMicrosec() throws Exception { - ObjectInstance testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getObjectInstanceEpochMicrosec(); - } - - @Test - public void testSetObjectInstanceEpochMicrosec() throws Exception { - ObjectInstance testSubject; - Double objectInstanceEpochMicrosec = null; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectInstanceEpochMicrosec(objectInstanceEpochMicrosec); - } - - @Test - public void testGetObjectKeys() throws Exception { - ObjectInstance testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getObjectKeys(); - } - - @Test - public void testSetObjectKeys() throws Exception { - ObjectInstance testSubject; - List objectKeys = null; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectKeys(objectKeys); - } - - @Test - public void testToString() throws Exception { - ObjectInstance testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - ObjectInstance testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - ObjectInstance testSubject; - ObjectInstance testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKeyTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKeyTest.java deleted file mode 100644 index 09e67d6..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKeyTest.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class ObjectKeyTest { - - private ObjectKey createTestSubject() { - return new ObjectKey(); - } - - @Test - public void testGetKeyName() throws Exception { - ObjectKey testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getKeyName(); - } - - @Test - public void testSetKeyName() throws Exception { - ObjectKey testSubject; - String keyName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setKeyName(keyName); - } - - @Test - public void testGetKeyOrder() throws Exception { - ObjectKey testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getKeyOrder(); - } - - @Test - public void testSetKeyOrder() throws Exception { - ObjectKey testSubject; - Integer keyOrder = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setKeyOrder(keyOrder); - } - - @Test - public void testGetKeyValue() throws Exception { - ObjectKey testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getKeyValue(); - } - - @Test - public void testSetKeyValue() throws Exception { - ObjectKey testSubject; - String keyValue = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setKeyValue(keyValue); - } - - @Test - public void testToString() throws Exception { - ObjectKey testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - ObjectKey testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - ObjectKey testSubject; - ObjectKey testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFieldsTest.java deleted file mode 100644 index 8096fc8..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFieldsTest.java +++ /dev/null @@ -1,150 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.OtherFields.OtherFieldsVersion; - - -public class OtherFieldsTest { - - private OtherFields createTestSubject() { - return new OtherFields(); - } - - @Test - public void testGetArrayOfNamedHashMap() throws Exception { - OtherFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArrayOfNamedHashMap(); - } - - @Test - public void testSetArrayOfNamedHashMap() throws Exception { - OtherFields testSubject; - List arrayOfNamedHashMap = null; - - // default test - testSubject = createTestSubject(); - testSubject.setArrayOfNamedHashMap(arrayOfNamedHashMap); - } - - @Test - public void testGetHashMap() throws Exception { - OtherFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHashMap(); - } - - @Test - public void testSetHashMap() throws Exception { - OtherFields testSubject; - AlarmAdditionalInformation hashMap = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHashMap(hashMap); - } - - @Test - public void testGetJsonObjects() throws Exception { - OtherFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getJsonObjects(); - } - - @Test - public void testSetJsonObjects() throws Exception { - OtherFields testSubject; - List jsonObjects = null; - - // default test - testSubject = createTestSubject(); - testSubject.setJsonObjects(jsonObjects); - } - - @Test - public void testGetOtherFieldsVersion() throws Exception { - OtherFields testSubject; - OtherFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOtherFieldsVersion(); - } - - @Test - public void testSetOtherFieldsVersion() throws Exception { - OtherFields testSubject; - OtherFieldsVersion otherFieldsVersion = OtherFieldsVersion._3_0; - - // default test - testSubject = createTestSubject(); - testSubject.setOtherFieldsVersion(otherFieldsVersion); - } - - @Test - public void testToString() throws Exception { - OtherFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - OtherFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - OtherFields testSubject; - OtherFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFieldsTest.java deleted file mode 100644 index f3ca56f..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFieldsTest.java +++ /dev/null @@ -1,329 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.PnfRegistrationFields.PnfRegistrationFieldsVersion; - - -public class PnfRegistrationFieldsTest { - - private PnfRegistrationFields createTestSubject() { - return new PnfRegistrationFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - PnfRegistrationFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - PnfRegistrationFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetLastServiceDate() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLastServiceDate(); - } - - @Test - public void testSetLastServiceDate() throws Exception { - PnfRegistrationFields testSubject; - String lastServiceDate = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setLastServiceDate(lastServiceDate); - } - - @Test - public void testGetMacAddress() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMacAddress(); - } - - @Test - public void testSetMacAddress() throws Exception { - PnfRegistrationFields testSubject; - String macAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setMacAddress(macAddress); - } - - @Test - public void testGetManufactureDate() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getManufactureDate(); - } - - @Test - public void testSetManufactureDate() throws Exception { - PnfRegistrationFields testSubject; - String manufactureDate = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setManufactureDate(manufactureDate); - } - - @Test - public void testGetModelNumber() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getModelNumber(); - } - - @Test - public void testSetModelNumber() throws Exception { - PnfRegistrationFields testSubject; - String modelNumber = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setModelNumber(modelNumber); - } - - @Test - public void testGetOamV4IpAddress() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOamV4IpAddress(); - } - - @Test - public void testSetOamV4IpAddress() throws Exception { - PnfRegistrationFields testSubject; - String oamV4IpAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setOamV4IpAddress(oamV4IpAddress); - } - - @Test - public void testGetOamV6IpAddress() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOamV6IpAddress(); - } - - @Test - public void testSetOamV6IpAddress() throws Exception { - PnfRegistrationFields testSubject; - String oamV6IpAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setOamV6IpAddress(oamV6IpAddress); - } - - @Test - public void testGetPnfRegistrationFieldsVersion() throws Exception { - PnfRegistrationFields testSubject; - PnfRegistrationFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPnfRegistrationFieldsVersion(); - } - - @Test - public void testSetPnfRegistrationFieldsVersion() throws Exception { - PnfRegistrationFields testSubject; - PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion = PnfRegistrationFieldsVersion._2_0; - - // default test - testSubject = createTestSubject(); - testSubject.setPnfRegistrationFieldsVersion(pnfRegistrationFieldsVersion); - } - - @Test - public void testGetSerialNumber() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSerialNumber(); - } - - @Test - public void testSetSerialNumber() throws Exception { - PnfRegistrationFields testSubject; - String serialNumber = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSerialNumber(serialNumber); - } - - @Test - public void testGetSoftwareVersion() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSoftwareVersion(); - } - - @Test - public void testSetSoftwareVersion() throws Exception { - PnfRegistrationFields testSubject; - String softwareVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSoftwareVersion(softwareVersion); - } - - @Test - public void testGetUnitFamily() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUnitFamily(); - } - - @Test - public void testSetUnitFamily() throws Exception { - PnfRegistrationFields testSubject; - String unitFamily = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUnitFamily(unitFamily); - } - - @Test - public void testGetUnitType() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUnitType(); - } - - @Test - public void testSetUnitType() throws Exception { - PnfRegistrationFields testSubject; - String unitType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUnitType(unitType); - } - - @Test - public void testGetVendorName() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVendorName(); - } - - @Test - public void testSetVendorName() throws Exception { - PnfRegistrationFields testSubject; - String vendorName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVendorName(vendorName); - } - - @Test - public void testToString() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - PnfRegistrationFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - PnfRegistrationFields testSubject; - PnfRegistrationFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArrayTest.java deleted file mode 100644 index a3cb152..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArrayTest.java +++ /dev/null @@ -1,228 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class ProcessStatsArrayTest { - - private ProcessStatsArray createTestSubject() { - return new ProcessStatsArray(); - } - - @Test - public void testGetForkRate() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getForkRate(); - } - - @Test - public void testSetForkRate() throws Exception { - ProcessStatsArray testSubject; - Double forkRate = null; - - // default test - testSubject = createTestSubject(); - testSubject.setForkRate(forkRate); - } - - @Test - public void testGetProcessIdentifier() throws Exception { - ProcessStatsArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessIdentifier(); - } - - @Test - public void testSetProcessIdentifier() throws Exception { - ProcessStatsArray testSubject; - String processIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessIdentifier(processIdentifier); - } - - @Test - public void testGetPsStateBlocked() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStateBlocked(); - } - - @Test - public void testSetPsStateBlocked() throws Exception { - ProcessStatsArray testSubject; - Double psStateBlocked = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStateBlocked(psStateBlocked); - } - - @Test - public void testGetPsStatePaging() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStatePaging(); - } - - @Test - public void testSetPsStatePaging() throws Exception { - ProcessStatsArray testSubject; - Double psStatePaging = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStatePaging(psStatePaging); - } - - @Test - public void testGetPsStateRunning() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStateRunning(); - } - - @Test - public void testSetPsStateRunning() throws Exception { - ProcessStatsArray testSubject; - Double psStateRunning = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStateRunning(psStateRunning); - } - - @Test - public void testGetPsStateSleeping() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStateSleeping(); - } - - @Test - public void testSetPsStateSleeping() throws Exception { - ProcessStatsArray testSubject; - Double psStateSleeping = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStateSleeping(psStateSleeping); - } - - @Test - public void testGetPsStateStopped() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStateStopped(); - } - - @Test - public void testSetPsStateStopped() throws Exception { - ProcessStatsArray testSubject; - Double psStateStopped = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStateStopped(psStateStopped); - } - - @Test - public void testGetPsStateZombie() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStateZombie(); - } - - @Test - public void testSetPsStateZombie() throws Exception { - ProcessStatsArray testSubject; - Double psStateZombie = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStateZombie(psStateZombie); - } - - @Test - public void testToString() throws Exception { - ProcessStatsArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - ProcessStatsArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - ProcessStatsArray testSubject; - ProcessStatsArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArrayTest.java deleted file mode 100644 index e08487c..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArrayTest.java +++ /dev/null @@ -1,109 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class ProcessorDimmAggregateThermalMarginArrayTest { - - private ProcessorDimmAggregateThermalMarginArray createTestSubject() { - return new ProcessorDimmAggregateThermalMarginArray(); - } - - @Test - public void testGetProcessorDimmAggregateThermalMarginIdentifier() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessorDimmAggregateThermalMarginIdentifier(); - } - - @Test - public void testSetProcessorDimmAggregateThermalMarginIdentifier() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - String processorDimmAggregateThermalMarginIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessorDimmAggregateThermalMarginIdentifier( - processorDimmAggregateThermalMarginIdentifier); - } - - @Test - public void testGetThermalMargin() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getThermalMargin(); - } - - @Test - public void testSetThermalMargin() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - Double thermalMargin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setThermalMargin(thermalMargin); - } - - @Test - public void testToString() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - ProcessorDimmAggregateThermalMarginArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFieldsTest.java deleted file mode 100644 index 1168d05..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFieldsTest.java +++ /dev/null @@ -1,269 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.SipSignalingFields.SipSignalingFieldsVersion; - - -public class SipSignalingFieldsTest { - - private SipSignalingFields createTestSubject() { - return new SipSignalingFields(); - } - - @Test - public void testGetAdditionalInformation() throws Exception { - SipSignalingFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalInformation(); - } - - @Test - public void testSetAdditionalInformation() throws Exception { - SipSignalingFields testSubject; - AlarmAdditionalInformation additionalInformation = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalInformation(additionalInformation); - } - - @Test - public void testGetCompressedSip() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCompressedSip(); - } - - @Test - public void testSetCompressedSip() throws Exception { - SipSignalingFields testSubject; - String compressedSip = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCompressedSip(compressedSip); - } - - @Test - public void testGetCorrelator() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCorrelator(); - } - - @Test - public void testSetCorrelator() throws Exception { - SipSignalingFields testSubject; - String correlator = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCorrelator(correlator); - } - - @Test - public void testGetLocalIpAddress() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalIpAddress(); - } - - @Test - public void testSetLocalIpAddress() throws Exception { - SipSignalingFields testSubject; - String localIpAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalIpAddress(localIpAddress); - } - - @Test - public void testGetLocalPort() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalPort(); - } - - @Test - public void testSetLocalPort() throws Exception { - SipSignalingFields testSubject; - String localPort = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalPort(localPort); - } - - @Test - public void testGetRemoteIpAddress() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRemoteIpAddress(); - } - - @Test - public void testSetRemoteIpAddress() throws Exception { - SipSignalingFields testSubject; - String remoteIpAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRemoteIpAddress(remoteIpAddress); - } - - @Test - public void testGetRemotePort() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRemotePort(); - } - - @Test - public void testSetRemotePort() throws Exception { - SipSignalingFields testSubject; - String remotePort = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRemotePort(remotePort); - } - - @Test - public void testGetSipSignalingFieldsVersion() throws Exception { - SipSignalingFields testSubject; - SipSignalingFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSipSignalingFieldsVersion(); - } - - @Test - public void testSetSipSignalingFieldsVersion() throws Exception { - SipSignalingFields testSubject; - SipSignalingFieldsVersion sipSignalingFieldsVersion = SipSignalingFieldsVersion._3_0; - - // default test - testSubject = createTestSubject(); - testSubject.setSipSignalingFieldsVersion(sipSignalingFieldsVersion); - } - - @Test - public void testGetSummarySip() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSummarySip(); - } - - @Test - public void testSetSummarySip() throws Exception { - SipSignalingFields testSubject; - String summarySip = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSummarySip(summarySip); - } - - @Test - public void testGetVendorNfNameFields() throws Exception { - SipSignalingFields testSubject; - VendorNfNameFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVendorNfNameFields(); - } - - @Test - public void testSetVendorNfNameFields() throws Exception { - SipSignalingFields testSubject; - VendorNfNameFields vendorNfNameFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVendorNfNameFields(vendorNfNameFields); - } - - @Test - public void testToString() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - SipSignalingFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - SipSignalingFields testSubject; - SipSignalingFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFieldsTest.java deleted file mode 100644 index 45fe2e1..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFieldsTest.java +++ /dev/null @@ -1,171 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.StateChangeFields.NewState; -import org.onap.dcaegen2.ves.domain.ves7_0.StateChangeFields.OldState; -import org.onap.dcaegen2.ves.domain.ves7_0.StateChangeFields.StateChangeFieldsVersion; - - -public class StateChangeFieldsTest { - - private StateChangeFields createTestSubject() { - return new StateChangeFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - StateChangeFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - StateChangeFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetNewState() throws Exception { - StateChangeFields testSubject; - NewState result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNewState(); - } - - @Test - public void testSetNewState() throws Exception { - StateChangeFields testSubject; - NewState newState = NewState.IN_SERVICE; - - // default test - testSubject = createTestSubject(); - testSubject.setNewState(newState); - } - - @Test - public void testGetOldState() throws Exception { - StateChangeFields testSubject; - OldState result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOldState(); - } - - @Test - public void testSetOldState() throws Exception { - StateChangeFields testSubject; - OldState oldState = OldState.IN_SERVICE; - - // default test - testSubject = createTestSubject(); - testSubject.setOldState(oldState); - } - - @Test - public void testGetStateChangeFieldsVersion() throws Exception { - StateChangeFields testSubject; - StateChangeFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStateChangeFieldsVersion(); - } - - @Test - public void testSetStateChangeFieldsVersion() throws Exception { - StateChangeFields testSubject; - StateChangeFieldsVersion stateChangeFieldsVersion = StateChangeFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setStateChangeFieldsVersion(stateChangeFieldsVersion); - } - - @Test - public void testGetStateInterface() throws Exception { - StateChangeFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStateInterface(); - } - - @Test - public void testSetStateInterface() throws Exception { - StateChangeFields testSubject; - String stateInterface = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setStateInterface(stateInterface); - } - - @Test - public void testToString() throws Exception { - StateChangeFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - StateChangeFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - StateChangeFields testSubject; - StateChangeFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFieldsTest.java deleted file mode 100644 index ac6663e..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFieldsTest.java +++ /dev/null @@ -1,390 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.SyslogFields.SyslogFieldsVersion; -import org.onap.dcaegen2.ves.domain.ves7_0.SyslogFields.SyslogSev; - - -public class SyslogFieldsTest { - - private SyslogFields createTestSubject() { - return new SyslogFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - SyslogFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - SyslogFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetEventSourceHost() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventSourceHost(); - } - - @Test - public void testSetEventSourceHost() throws Exception { - SyslogFields testSubject; - String eventSourceHost = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSourceHost(eventSourceHost); - } - - @Test - public void testGetEventSourceType() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventSourceType(); - } - - @Test - public void testSetEventSourceType() throws Exception { - SyslogFields testSubject; - String eventSourceType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSourceType(eventSourceType); - } - - @Test - public void testGetSyslogFacility() throws Exception { - SyslogFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogFacility(); - } - - @Test - public void testSetSyslogFacility() throws Exception { - SyslogFields testSubject; - Integer syslogFacility = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogFacility(syslogFacility); - } - - @Test - public void testGetSyslogFieldsVersion() throws Exception { - SyslogFields testSubject; - SyslogFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogFieldsVersion(); - } - - @Test - public void testSetSyslogFieldsVersion() throws Exception { - SyslogFields testSubject; - SyslogFieldsVersion syslogFieldsVersion = SyslogFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogFieldsVersion(syslogFieldsVersion); - } - - @Test - public void testGetSyslogMsg() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogMsg(); - } - - @Test - public void testSetSyslogMsg() throws Exception { - SyslogFields testSubject; - String syslogMsg = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogMsg(syslogMsg); - } - - @Test - public void testGetSyslogMsgHost() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogMsgHost(); - } - - @Test - public void testSetSyslogMsgHost() throws Exception { - SyslogFields testSubject; - String syslogMsgHost = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogMsgHost(syslogMsgHost); - } - - @Test - public void testGetSyslogPri() throws Exception { - SyslogFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogPri(); - } - - @Test - public void testSetSyslogPri() throws Exception { - SyslogFields testSubject; - Integer syslogPri = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogPri(syslogPri); - } - - @Test - public void testGetSyslogProc() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogProc(); - } - - @Test - public void testSetSyslogProc() throws Exception { - SyslogFields testSubject; - String syslogProc = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogProc(syslogProc); - } - - @Test - public void testGetSyslogProcId() throws Exception { - SyslogFields testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogProcId(); - } - - @Test - public void testSetSyslogProcId() throws Exception { - SyslogFields testSubject; - Double syslogProcId = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogProcId(syslogProcId); - } - - @Test - public void testGetSyslogSData() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogSData(); - } - - @Test - public void testSetSyslogSData() throws Exception { - SyslogFields testSubject; - String syslogSData = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogSData(syslogSData); - } - - @Test - public void testGetSyslogSdId() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogSdId(); - } - - @Test - public void testSetSyslogSdId() throws Exception { - SyslogFields testSubject; - String syslogSdId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogSdId(syslogSdId); - } - - @Test - public void testGetSyslogSev() throws Exception { - SyslogFields testSubject; - SyslogSev result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogSev(); - } - - @Test - public void testSetSyslogSev() throws Exception { - SyslogFields testSubject; - SyslogSev syslogSev = SyslogSev.ALERT; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogSev(syslogSev); - } - - @Test - public void testGetSyslogTag() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogTag(); - } - - @Test - public void testSetSyslogTag() throws Exception { - SyslogFields testSubject; - String syslogTag = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogTag(syslogTag); - } - - @Test - public void testGetSyslogTs() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogTs(); - } - - @Test - public void testSetSyslogTs() throws Exception { - SyslogFields testSubject; - String syslogTs = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogTs(syslogTs); - } - - @Test - public void testGetSyslogVer() throws Exception { - SyslogFields testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogVer(); - } - - @Test - public void testSetSyslogVer() throws Exception { - SyslogFields testSubject; - Double syslogVer = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogVer(syslogVer); - } - - @Test - public void testToString() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - SyslogFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - SyslogFields testSubject; - SyslogFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFieldsTest.java deleted file mode 100644 index 3502fb0..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFieldsTest.java +++ /dev/null @@ -1,398 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.ThresholdCrossingAlertFields.AlertAction; -import org.onap.dcaegen2.ves.domain.ves7_0.ThresholdCrossingAlertFields.AlertType; -import org.onap.dcaegen2.ves.domain.ves7_0.ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion; - - -public class ThresholdCrossingAlertFieldsTest { - - private ThresholdCrossingAlertFields createTestSubject() { - return new ThresholdCrossingAlertFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - ThresholdCrossingAlertFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - ThresholdCrossingAlertFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetAdditionalParameters() throws Exception { - ThresholdCrossingAlertFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalParameters(); - } - - @Test - public void testSetAdditionalParameters() throws Exception { - ThresholdCrossingAlertFields testSubject; - List additionalParameters = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalParameters(additionalParameters); - } - - @Test - public void testGetAlertAction() throws Exception { - ThresholdCrossingAlertFields testSubject; - - AlertAction result; - - // default test - testSubject = createTestSubject(); - AlertAction alertAction = AlertAction.CLEAR; - testSubject.setAlertAction(alertAction); - result = testSubject.getAlertAction(); - assertEquals(alertAction, result); - } - - @Test - public void testSetAlertAction() throws Exception { - ThresholdCrossingAlertFields testSubject; - AlertAction alertAction = AlertAction.CLEAR; - - // default test - testSubject = createTestSubject(); - testSubject.setAlertAction(alertAction); - } - - @Test - public void testGetAlertDescription() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlertDescription(); - } - - @Test - public void testSetAlertDescription() throws Exception { - ThresholdCrossingAlertFields testSubject; - String alertDescription = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAlertDescription(alertDescription); - } - - @Test - public void testGetAlertType() throws Exception { - ThresholdCrossingAlertFields testSubject; - AlertType result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlertType(); - } - - @Test - public void testSetAlertType() throws Exception { - ThresholdCrossingAlertFields testSubject; - AlertType alertType = AlertType.CARD_ANOMALY; - - // default test - testSubject = createTestSubject(); - testSubject.setAlertType(alertType); - } - - @Test - public void testGetAlertValue() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlertValue(); - } - - @Test - public void testSetAlertValue() throws Exception { - ThresholdCrossingAlertFields testSubject; - String alertValue = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAlertValue(alertValue); - } - - @Test - public void testGetAssociatedAlertIdList() throws Exception { - ThresholdCrossingAlertFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAssociatedAlertIdList(); - } - - @Test - public void testSetAssociatedAlertIdList() throws Exception { - ThresholdCrossingAlertFields testSubject; - List associatedAlertIdList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAssociatedAlertIdList(associatedAlertIdList); - } - - @Test - public void testGetCollectionTimestamp() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCollectionTimestamp(); - } - - @Test - public void testSetCollectionTimestamp() throws Exception { - ThresholdCrossingAlertFields testSubject; - String collectionTimestamp = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCollectionTimestamp(collectionTimestamp); - } - - @Test - public void testGetDataCollector() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDataCollector(); - } - - @Test - public void testSetDataCollector() throws Exception { - ThresholdCrossingAlertFields testSubject; - String dataCollector = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDataCollector(dataCollector); - } - - @Test - public void testGetElementType() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getElementType(); - } - - @Test - public void testSetElementType() throws Exception { - ThresholdCrossingAlertFields testSubject; - String elementType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setElementType(elementType); - } - - @Test - public void testGetEventSeverity() throws Exception { - ThresholdCrossingAlertFields testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSeverity(ThresholdCrossingAlertFields.EventSeverity.MINOR); - ThresholdCrossingAlertFields.EventSeverity result = testSubject.getEventSeverity(); - assertEquals(ThresholdCrossingAlertFields.EventSeverity.MINOR, result); - } - - @Test - public void testSetEventSeverity() throws Exception { - ThresholdCrossingAlertFields testSubject; - ThresholdCrossingAlertFields.EventSeverity eventSeverity = - ThresholdCrossingAlertFields.EventSeverity.MINOR; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSeverity(eventSeverity); - } - - @Test - public void testGetEventStartTimestamp() throws Exception { - ThresholdCrossingAlertFields testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getEventStartTimestamp(); - } - - @Test - public void testSetEventStartTimestamp() throws Exception { - ThresholdCrossingAlertFields testSubject; - String eventStartTimestamp = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventStartTimestamp(eventStartTimestamp); - } - - @Test - public void testGetInterfaceName() throws Exception { - ThresholdCrossingAlertFields testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.getInterfaceName(); - } - - @Test - public void testSetInterfaceName() throws Exception { - ThresholdCrossingAlertFields testSubject; - String interfaceName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setInterfaceName(interfaceName); - } - - @Test - public void testGetNetworkService() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNetworkService(); - } - - @Test - public void testSetNetworkService() throws Exception { - ThresholdCrossingAlertFields testSubject; - String networkService = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNetworkService(networkService); - } - - @Test - public void testGetPossibleRootCause() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPossibleRootCause(); - } - - @Test - public void testSetPossibleRootCause() throws Exception { - ThresholdCrossingAlertFields testSubject; - String possibleRootCause = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setPossibleRootCause(possibleRootCause); - } - - @Test - public void testGetThresholdCrossingFieldsVersion() throws Exception { - ThresholdCrossingAlertFields testSubject; - ThresholdCrossingFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getThresholdCrossingFieldsVersion(); - } - - @Test - public void testSetThresholdCrossingFieldsVersion() throws Exception { - ThresholdCrossingAlertFields testSubject; - ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion = null; - - // default test - testSubject = createTestSubject(); - testSubject.setThresholdCrossingFieldsVersion(thresholdCrossingFieldsVersion); - } - - @Test - public void testToString() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - ThresholdCrossingAlertFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - ThresholdCrossingAlertFields testSubject; - ThresholdCrossingAlertFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFieldsTest.java deleted file mode 100644 index 8bab095..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFieldsTest.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class VendorNfNameFieldsTest { - - private VendorNfNameFields createTestSubject() { - return new VendorNfNameFields(); - } - - @Test - public void testGetVendorName() throws Exception { - VendorNfNameFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVendorName(); - } - - @Test - public void testSetVendorName() throws Exception { - VendorNfNameFields testSubject; - String vendorName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVendorName(vendorName); - } - - @Test - public void testGetNfModuleName() throws Exception { - VendorNfNameFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfModuleName(); - } - - @Test - public void testSetNfModuleName() throws Exception { - VendorNfNameFields testSubject; - String nfModuleName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfModuleName(nfModuleName); - } - - @Test - public void testGetNfName() throws Exception { - VendorNfNameFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfName(); - } - - @Test - public void testSetNfName() throws Exception { - VendorNfNameFields testSubject; - String nfName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfName(nfName); - } - - @Test - public void testToString() throws Exception { - VendorNfNameFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - VendorNfNameFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - VendorNfNameFields testSubject; - VendorNfNameFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEventTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEventTest.java deleted file mode 100644 index 732c416..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEventTest.java +++ /dev/null @@ -1,110 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.Map; -import org.junit.Test; - - -public class VesEventTest { - - private VesEvent createTestSubject() { - return new VesEvent(); - } - - @Test - public void testGetEvent() throws Exception { - VesEvent testSubject; - Event result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEvent(); - } - - @Test - public void testSetEvent() throws Exception { - VesEvent testSubject; - Event event = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEvent(event); - } - - @Test - public void testToString() throws Exception { - VesEvent testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testGetAdditionalProperties() throws Exception { - VesEvent testSubject; - Map result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - @Test - public void testSetAdditionalProperty() throws Exception { - VesEvent testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } - - @Test - public void testHashCode() throws Exception { - VesEvent testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - VesEvent testSubject; - VesEvent testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFieldsTest.java deleted file mode 100644 index 8c51ae4..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFieldsTest.java +++ /dev/null @@ -1,249 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.VoiceQualityFields.VoiceQualityFieldsVersion; - - -public class VoiceQualityFieldsTest { - - private VoiceQualityFields createTestSubject() { - return new VoiceQualityFields(); - } - - @Test - public void testGetAdditionalInformation() throws Exception { - VoiceQualityFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalInformation(); - } - - @Test - public void testSetAdditionalInformation() throws Exception { - VoiceQualityFields testSubject; - AlarmAdditionalInformation additionalInformation = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalInformation(additionalInformation); - } - - @Test - public void testGetCalleeSideCodec() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCalleeSideCodec(); - } - - @Test - public void testSetCalleeSideCodec() throws Exception { - VoiceQualityFields testSubject; - String calleeSideCodec = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCalleeSideCodec(calleeSideCodec); - } - - @Test - public void testGetCallerSideCodec() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCallerSideCodec(); - } - - @Test - public void testSetCallerSideCodec() throws Exception { - VoiceQualityFields testSubject; - String callerSideCodec = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCallerSideCodec(callerSideCodec); - } - - @Test - public void testGetCorrelator() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCorrelator(); - } - - @Test - public void testSetCorrelator() throws Exception { - VoiceQualityFields testSubject; - String correlator = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCorrelator(correlator); - } - - @Test - public void testGetEndOfCallVqmSummaries() throws Exception { - VoiceQualityFields testSubject; - EndOfCallVqmSummaries result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndOfCallVqmSummaries(); - } - - @Test - public void testSetEndOfCallVqmSummaries() throws Exception { - VoiceQualityFields testSubject; - EndOfCallVqmSummaries endOfCallVqmSummaries = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndOfCallVqmSummaries(endOfCallVqmSummaries); - } - - @Test - public void testGetPhoneNumber() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPhoneNumber(); - } - - @Test - public void testSetPhoneNumber() throws Exception { - VoiceQualityFields testSubject; - String phoneNumber = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setPhoneNumber(phoneNumber); - } - - @Test - public void testGetMidCallRtcp() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMidCallRtcp(); - } - - @Test - public void testSetMidCallRtcp() throws Exception { - VoiceQualityFields testSubject; - String midCallRtcp = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setMidCallRtcp(midCallRtcp); - } - - @Test - public void testGetVendorNfNameFields() throws Exception { - VoiceQualityFields testSubject; - VendorNfNameFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVendorNfNameFields(); - } - - @Test - public void testSetVendorNfNameFields() throws Exception { - VoiceQualityFields testSubject; - VendorNfNameFields vendorNfNameFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVendorNfNameFields(vendorNfNameFields); - } - - @Test - public void testGetVoiceQualityFieldsVersion() throws Exception { - VoiceQualityFields testSubject; - VoiceQualityFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVoiceQualityFieldsVersion(); - } - - @Test - public void testSetVoiceQualityFieldsVersion() throws Exception { - VoiceQualityFields testSubject; - VoiceQualityFieldsVersion voiceQualityFieldsVersion = VoiceQualityFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setVoiceQualityFieldsVersion(voiceQualityFieldsVersion); - } - - @Test - public void testToString() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - VoiceQualityFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - VoiceQualityFields testSubject; - VoiceQualityFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java index c866235..b016cc7 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java @@ -1,22 +1,22 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ package org.onap.universalvesadapter.adapter; @@ -25,6 +25,7 @@ import static org.junit.Assert.assertNotNull; import java.util.HashMap; import java.util.Map; + import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -45,97 +46,108 @@ import org.springframework.boot.test.context.SpringBootTest; @RunWith(PowerMockRunner.class) @SpringBootTest(classes = Application.class) public class UniversalEventAdapterTest { - - private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); - - @Mock - private VESAdapterInitializer vesAdapterInitializer; - - @InjectMocks - private UniversalEventAdapter universalVesAdapter; - - @Before - public void init() { - MockitoAnnotations.initMocks(this); - } - - @PrepareForTest({ CollectorConfigPropertyRetrival.class }) - @Test - public void testtransform() { - - StringBuffer incomingJsonString = new StringBuffer("{\n" + " \"rule-id\": \"12121\",\n" - + " \"notification\": {\n" + " \"event-time\": \"2018-03-15T08:15:32.000Z\",\n" - + " \"notification-id\": \"2541256\",\n" + " \"message\": {\n" - + " \"topic\":\"resource\",\n" + " \"object-type\":\"onu\", \n" - + " \"version\": \"v1\", \n" + " \"operation\": \"create\", \n" - + " \"target\": \"ont/ont=23hk1231231232\", \n" + " \"content\": {\n" - + " \"onu\": {\n" + " \"sn\": \"48575443FA637D1A\",\n" - + " \"refParentNE\": \"550e8400-e29b-41d4-a716-446655440000\",\n" - + " \"refParentNeNativeId\": \"FDN\",\n" - + " \"refParentLTP\": \"8c0db89e-218c-4e18-b0de-7a6788b3dda4\",\n" - + " \"refParentLTPNativeId\": \"FDN\",\n" - + " \"onuId\": \"213\",\n" + " \"accessID\": \"HG65875420001\"\n" - + " }\n" + " }\n" + " }\n" + " }\n" + "}"); - Map testMap = new HashMap(); - testMap.put("defaultMappingFile-" + Thread.currentThread().getName(), - "\n" - + "\n" - + " \n" - + " \n" - + " \n" - + " \n" + " \n" - + " \n" - + " \n" + " \n" - + " \n" - + " \n" - + " \n" - + " \n" - + " \n" - + "" - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Version._4_0_1 \n" - + "\"pnfRegistration\"\n" - + "" - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.VesEventListenerVersion._7_0_1\n" - + " " - + "\"registration_\"+commonEventHeader.ts1\n" - + "\"VESMapper\"\n" - + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Domain.PNF_REGISTRATION\n" - + " " - + "commonEventHeader.domain\n" - + "\n" - + "" - + "commonEventHeader.ts1\n" - + " " - + "commonEventHeader.ts1\n" + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Priority.NORMAL\n" - + " \n" - + " \n" - + " \n" + " \n" - + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0" - + "\n" - + " \n" - + " \n" + " \n" + ""); - - try { - vesAdapterInitializer.setMappingFiles(testMap); - - String identifiertest[] = CollectorConfigPropertyRetrival.getProperyArray("identifier", "kvTest.json"); - PowerMockito.mockStatic(CollectorConfigPropertyRetrival.class); - PowerMockito.when(CollectorConfigPropertyRetrival.getProperyArray("identifier", null)) - .thenReturn(identifiertest); - - String actualResult = universalVesAdapter.transform(incomingJsonString.toString()); - assertNotNull(actualResult); - assertNotEquals("", actualResult); - } catch (VesException exception) { - errorLogger.error("Error occurred : {}", exception); - } - } - + + private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); + + @Mock + private VESAdapterInitializer vesAdapterInitializer; + + @InjectMocks + private UniversalEventAdapter universalVesAdapter; + + @Before + public void init() { + MockitoAnnotations.initMocks(this); + } + + @PrepareForTest({CollectorConfigPropertyRetrival.class}) + @Test + public void testtransform() { + + StringBuffer incomingJsonString = new StringBuffer("{\n" + " \"rule-id\": \"12121\",\n" + + " \"notification\": {\n" + + " \"event-time\": \"2018-03-15T08:15:32.000Z\",\n" + + " \"notification-id\": \"2541256\",\n" + " \"message\": {\n" + + " \"topic\":\"resource\",\n" + + " \"object-type\":\"onu\", \n" + + " \"version\": \"v1\", \n" + + " \"operation\": \"create\", \n" + + " \"target\": \"ont/ont=23hk1231231232\", \n" + + " \"content\": {\n" + " \"onu\": {\n" + + " \"sn\": \"48575443FA637D1A\",\n" + + " \"refParentNE\": \"550e8400-e29b-41d4-a716-446655440000\",\n" + + " \"refParentNeNativeId\": \"FDN\",\n" + + " \"refParentLTP\": \"8c0db89e-218c-4e18-b0de-7a6788b3dda4\",\n" + + " \"refParentLTPNativeId\": \"FDN\",\n" + + " \"onuId\": \"213\",\n" + + " \"accessID\": \"HG65875420001\"\n" + " }\n" + + " }\n" + " }\n" + " }\n" + "}"); + Map testMap = new HashMap(); + testMap.put("defaultMappingFile-" + Thread.currentThread().getName(), + "\n" + + "\n" + + " \n" + + " \n" + + " \n" + + " \n" + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "" + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1 \n" + + "\"pnfRegistration\"\n" + + "" + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1" + + "\n" + + " " + + "\"registration_\"+commonEventHeader.ts1\n" + + "\"VESMapper\"\n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION" + + "\n" + + " " + + "commonEventHeader.domain\n" + + "\n" + + "" + + "commonEventHeader.ts1\n" + + " " + + "commonEventHeader.ts1\n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0" + + "\n" + + " \n" + + " \n" + " \n" + ""); + + try { + vesAdapterInitializer.setMappingFiles(testMap); + + String [] identifiertest = + CollectorConfigPropertyRetrival.getProperyArray("identifier", "kvTest.json"); + PowerMockito.mockStatic(CollectorConfigPropertyRetrival.class); + PowerMockito.when(CollectorConfigPropertyRetrival.getProperyArray("identifier", null)) + .thenReturn(identifiertest); + + String actualResult = universalVesAdapter.transform(incomingJsonString.toString()); + assertNotNull(actualResult); + assertNotEquals("", actualResult); + } catch (VesException exception) { + errorLogger.error("Error occurred : {}", exception); + } + } + } diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DMaaPMRBaseConfigTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DMaaPMRBaseConfigTest.java deleted file mode 100644 index 0ec9557..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DMaaPMRBaseConfigTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Copyright (C) 2019 Samsung. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * ============LICENSE_END========================================================= - */ -package org.onap.universalvesadapter.configs; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mockito; -import org.onap.universalvesadapter.exception.DMaapException; - -public class DMaaPMRBaseConfigTest { - DMaaPMRBaseConfig dmaapMRBaseConfig = null; - public static final String JSON_APPLICATION_TYPE = "application/json"; - - @Before - public void setUp() throws Exception { - dmaapMRBaseConfig = Mockito.mock(DMaaPMRBaseConfig.class, Mockito.CALLS_REAL_METHODS); - } - - @Test - public void testDMaaPMRBaseConfigGetMethods() { - assertNotNull(dmaapMRBaseConfig); - assertNull(dmaapMRBaseConfig.getHostName()); - assertNull(dmaapMRBaseConfig.getPortNumber()); - assertNull(dmaapMRBaseConfig.getTopicName()); - assertNull(dmaapMRBaseConfig.getProtocol()); - assertNull(dmaapMRBaseConfig.getContentType()); - assertNull(dmaapMRBaseConfig.getUserName()); - assertNull(dmaapMRBaseConfig.getUserPassword()); - } - - @Test(expected = DMaapException.class) - public void testNormalizeValidateProtocol() { - DMaaPMRBaseConfig.normalizeValidateProtocol(""); - } - - @Test(expected = DMaapException.class) - public void testNormalizeValidateProtocolWithDifferentProtocol() { - DMaaPMRBaseConfig.normalizeValidateProtocol("FTP"); - } - - @Test - public void testNormalizeValidateProtocolWithProperValue() { - assertEquals("https", DMaaPMRBaseConfig.normalizeValidateProtocol("HTTPS")); - assertEquals("http", DMaaPMRBaseConfig.normalizeValidateProtocol("HTTP")); - } - - @Test(expected = DMaapException.class) - public void testNormalizeValidateContentType() { - DMaaPMRBaseConfig.normalizeValidateContentType(""); - } - - @Test - public void testNormalizeValidateContentTypeWithProperValue() { - assertEquals(JSON_APPLICATION_TYPE, DMaaPMRBaseConfig.normalizeValidateContentType("application/json")); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DmaapMrBaseConfigTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DmaapMrBaseConfigTest.java new file mode 100644 index 0000000..495722f --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DmaapMrBaseConfigTest.java @@ -0,0 +1,78 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2019 Samsung. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * ============LICENSE_END========================================================= + */ + +package org.onap.universalvesadapter.configs; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; + +import org.junit.Before; +import org.junit.Test; +import org.mockito.Mockito; +import org.onap.universalvesadapter.exception.DMaapException; + +public class DmaapMrBaseConfigTest { + DMaaPMRBaseConfig dmaapMrBaseConfig = null; + public static final String JSON_APPLICATION_TYPE = "application/json"; + + @Before + public void setUp() throws Exception { + dmaapMrBaseConfig = Mockito.mock(DMaaPMRBaseConfig.class, Mockito.CALLS_REAL_METHODS); + } + + @Test + public void testDmaapMrBaseConfigGetMethods() { + assertNotNull(dmaapMrBaseConfig); + assertNull(dmaapMrBaseConfig.getHostName()); + assertNull(dmaapMrBaseConfig.getPortNumber()); + assertNull(dmaapMrBaseConfig.getTopicName()); + assertNull(dmaapMrBaseConfig.getProtocol()); + assertNull(dmaapMrBaseConfig.getContentType()); + assertNull(dmaapMrBaseConfig.getUserName()); + assertNull(dmaapMrBaseConfig.getUserPassword()); + } + + @Test(expected = DMaapException.class) + public void testNormalizeValidateProtocol() { + DMaaPMRBaseConfig.normalizeValidateProtocol(""); + } + + @Test(expected = DMaapException.class) + public void testNormalizeValidateProtocolWithDifferentProtocol() { + DMaaPMRBaseConfig.normalizeValidateProtocol("FTP"); + } + + @Test + public void testNormalizeValidateProtocolWithProperValue() { + assertEquals("https", DMaaPMRBaseConfig.normalizeValidateProtocol("HTTPS")); + assertEquals("http", DMaaPMRBaseConfig.normalizeValidateProtocol("HTTP")); + } + + @Test(expected = DMaapException.class) + public void testNormalizeValidateContentType() { + DMaaPMRBaseConfig.normalizeValidateContentType(""); + } + + @Test + public void testNormalizeValidateContentTypeWithProperValue() { + assertEquals(JSON_APPLICATION_TYPE, + DMaaPMRBaseConfig.normalizeValidateContentType("application/json")); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/controller/VesControllerTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/controller/VesControllerTest.java index cbacc61..829ae0d 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/controller/VesControllerTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/controller/VesControllerTest.java @@ -1,65 +1,69 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.universalvesadapter.controller; - -import static org.junit.Assert.assertEquals; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; -import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; - -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.onap.universalvesadapter.Application; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; -import org.springframework.test.web.servlet.MockMvc; -import org.springframework.test.web.servlet.MvcResult; - -@RunWith(SpringRunner.class) -@SpringBootTest(classes=Application.class) -@AutoConfigureMockMvc -@Ignore -public class VesControllerTest { - - @Autowired - private MockMvc mockMvc; - - @Test - public void startShouldReturnApplicationStartedMessage() throws Exception { - - MvcResult mvcResult = this.mockMvc.perform(get("/start")).andDo(print()).andExpect(status().isOk()) - .andReturn();//Expect(jsonPath("$.content").value("Application started")); - assertEquals("Application started", mvcResult.getResponse().getContentAsString()); - } - - @Test - public void stopShouldReturnApplicationStoppingMessage() throws Exception { - - MvcResult mvcResult = this.mockMvc.perform(get("/stop")).andDo(print()).andExpect(status().isOk()) - .andReturn();//.andExpect(jsonPath("$.content").value("Application will be stopped soon")); - assertEquals("Application will be stopped soon", mvcResult.getResponse().getContentAsString()); - } - - - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.universalvesadapter.controller; + +import static org.junit.Assert.assertEquals; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; + +import org.junit.Ignore; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.onap.universalvesadapter.Application; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; +import org.springframework.test.web.servlet.MockMvc; +import org.springframework.test.web.servlet.MvcResult; + +@RunWith(SpringRunner.class) +@SpringBootTest(classes = Application.class) +@AutoConfigureMockMvc +@Ignore +public class VesControllerTest { + + @Autowired + private MockMvc mockMvc; + + @Test + public void startShouldReturnApplicationStartedMessage() throws Exception { + + MvcResult mvcResult = this.mockMvc.perform(get("/start")).andDo(print()) + .andExpect(status().isOk()).andReturn(); + // Expect(jsonPath("$.content").value("Application started")); + assertEquals("Application started", mvcResult.getResponse().getContentAsString()); + } + + @Test + public void stopShouldReturnApplicationStoppingMessage() throws Exception { + + MvcResult mvcResult = this.mockMvc.perform(get("/stop")).andDo(print()) + .andExpect(status().isOk()).andReturn(); + // .andExpect(jsonPath("$.content").value("Application will be stopped soon")); + assertEquals("Application will be stopped soon", + mvcResult.getResponse().getContentAsString()); + } + + + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/ConfigFileSmooksConversionExceptionTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/ConfigFileSmooksConversionExceptionTest.java index ac60be1..ff30305 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/ConfigFileSmooksConversionExceptionTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/ConfigFileSmooksConversionExceptionTest.java @@ -1,35 +1,37 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.universalvesadapter.exception; - -import org.junit.Test; - -public class ConfigFileSmooksConversionExceptionTest { - - - @Test - public void test() { - ConfigFileSmooksConversionException se = new ConfigFileSmooksConversionException("message"); - ConfigFileSmooksConversionException se1 = new ConfigFileSmooksConversionException("message", se); - - - } - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.universalvesadapter.exception; + +import org.junit.Test; + +public class ConfigFileSmooksConversionExceptionTest { + + + @Test + public void test() { + ConfigFileSmooksConversionException se = new ConfigFileSmooksConversionException("message"); + ConfigFileSmooksConversionException se1 = + new ConfigFileSmooksConversionException("message", se); + + + } + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java index 4da29de..0f24229 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java @@ -1,41 +1,43 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.universalvesadapter.exception; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class DMaapExceptionTest { - private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); - - @Test - public void test() { - DMaapException se = new DMaapException("message"); - assertNotNull(se); - DMaapException se1 = new DMaapException("message", se); - assertNotNull(se1); - DMaapException se2 = new DMaapException("message", se.getCause()); - assertNotNull(se2); - DMaapException se3 = new DMaapException("message", debugLogger, se); - assertNotNull(se3); - } -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.universalvesadapter.exception; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class DMaapExceptionTest { + private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); + + @Test + public void test() { + DMaapException se = new DMaapException("message"); + assertNotNull(se); + DMaapException se1 = new DMaapException("message", se); + assertNotNull(se1); + DMaapException se2 = new DMaapException("message", se.getCause()); + assertNotNull(se2); + DMaapException se3 = new DMaapException("message", debugLogger, se); + assertNotNull(se3); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/MapperConfigExceptionTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/MapperConfigExceptionTest.java index 19dfd87..966bf4a 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/MapperConfigExceptionTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/MapperConfigExceptionTest.java @@ -1,32 +1,33 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.universalvesadapter.exception; - -import org.junit.Test; - -public class MapperConfigExceptionTest { - - @Test - public void test() { - MapperConfigException se = new MapperConfigException("message"); - MapperConfigException se1 = new MapperConfigException("message", se); - } - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.universalvesadapter.exception; + +import org.junit.Test; + +public class MapperConfigExceptionTest { + + @Test + public void test() { + MapperConfigException se = new MapperConfigException("message"); + MapperConfigException se1 = new MapperConfigException("message", se); + } + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EntryTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EntryTest.java index d72892b..0097658 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EntryTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EntryTest.java @@ -1,59 +1,60 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.universalvesadapter.mappingconfig; - -import static org.junit.Assert.*; - -import java.util.HashMap; -import java.util.Map; - -import org.junit.Test; -import org.mockito.Mock; -import org.springframework.beans.factory.annotation.Autowired; - -public class EntryTest { - - @Autowired - Entry entry = new Entry(); - @Mock - Evaluation evaluation = new Evaluation(); - Object value = new Object(); - Map additionalProperties = new HashMap(); - - @Test - public void test() { - entry.setPriority(1); - entry.setEvaluation(evaluation); - entry.setResult("result"); - entry.setAdditionalProperty("name", value); - - additionalProperties.put("name", value); - assertEquals(entry.getEvaluation(), evaluation); - assertEquals(entry.getPriority(), new Integer(1)); - assertEquals(entry.getResult(),"result"); - assertEquals(entry.getAdditionalProperties(), additionalProperties); - assert (entry.toString() != null); - assert (entry.hashCode() != 0); - - assert (entry.equals(entry)); - - } - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.universalvesadapter.mappingconfig; + +import static org.junit.Assert.assertEquals; + +import java.util.HashMap; +import java.util.Map; + +import org.junit.Test; +import org.mockito.Mock; +import org.springframework.beans.factory.annotation.Autowired; + +public class EntryTest { + + @Autowired + Entry entry = new Entry(); + @Mock + Evaluation evaluation = new Evaluation(); + Object value = new Object(); + Map additionalProperties = new HashMap(); + + @Test + public void test() { + entry.setPriority(1); + entry.setEvaluation(evaluation); + entry.setResult("result"); + entry.setAdditionalProperty("name", value); + + additionalProperties.put("name", value); + assertEquals(entry.getEvaluation(), evaluation); + assertEquals(entry.getPriority(), new Integer(1)); + assertEquals(entry.getResult(), "result"); + assertEquals(entry.getAdditionalProperties(), additionalProperties); + assert (entry.toString() != null); + assert (entry.hashCode() != 0); + + assert (entry.equals(entry)); + + } + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EvaluationTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EvaluationTest.java index a3b9db6..5799d01 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EvaluationTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EvaluationTest.java @@ -1,70 +1,70 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.universalvesadapter.mappingconfig; - -import static org.junit.Assert.*; - -import java.util.HashMap; -import java.util.Map; - -import org.junit.Test; -import org.springframework.beans.factory.annotation.Autowired; - -public class EvaluationTest { - - @Autowired - Evaluation evaluation =new Evaluation(); - Evaluation lhs =new Evaluation(); - Evaluation rhs =new Evaluation(); - Object value = new Object(); - Map additionalProperties = new HashMap(); - - @Test - public void test() { - evaluation.setAdditionalProperty("name", value); - evaluation.setDatatype("datatype"); - evaluation.setField("field"); - evaluation.setLhs(lhs); - evaluation.setOperand("operand"); - evaluation.setRhs(rhs); - evaluation.setValue("value"); - additionalProperties.put("name", value); - - assertEquals(evaluation.getAdditionalProperties(), additionalProperties); - assertEquals(evaluation.getDatatype(),"datatype"); - assertEquals(evaluation.getField(),"field"); - assertEquals(evaluation.getLhs(),lhs); - assertEquals(evaluation.getOperand(),"operand"); - assertEquals(evaluation.getRhs(),rhs); - assertEquals(evaluation.getValue(),"value"); - - assert (evaluation.toString() != null); - assert (evaluation.hashCode() != 0); - - assert (evaluation.equals(evaluation)); - assertEquals(evaluation.equals(value),false); - assertEquals(evaluation.equals(null),false); - - - - - } - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.universalvesadapter.mappingconfig; + +import static org.junit.Assert.assertEquals; + +import java.util.HashMap; +import java.util.Map; + +import org.junit.Test; +import org.springframework.beans.factory.annotation.Autowired; + +public class EvaluationTest { + + @Autowired + Evaluation evaluation = new Evaluation(); + Evaluation lhs = new Evaluation(); + Evaluation rhs = new Evaluation(); + Object value = new Object(); + Map additionalProperties = new HashMap(); + + @Test + public void test() { + evaluation.setAdditionalProperty("name", value); + evaluation.setDatatype("datatype"); + evaluation.setField("field"); + evaluation.setLhs(lhs); + evaluation.setOperand("operand"); + evaluation.setRhs(rhs); + evaluation.setValue("value"); + additionalProperties.put("name", value); + + assertEquals(evaluation.getAdditionalProperties(), additionalProperties); + assertEquals(evaluation.getDatatype(), "datatype"); + assertEquals(evaluation.getField(), "field"); + assertEquals(evaluation.getLhs(), lhs); + assertEquals(evaluation.getOperand(), "operand"); + assertEquals(evaluation.getRhs(), rhs); + assertEquals(evaluation.getValue(), "value"); + + assert (evaluation.toString() != null); + assert (evaluation.hashCode() != 0); + + assert (evaluation.equals(evaluation)); + assertEquals(evaluation.equals(value), false); + assertEquals(evaluation.equals(null), false); + + + + } + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/MapperConfigTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/MapperConfigTest.java index 474ba05..a9cf2b0 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/MapperConfigTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/MapperConfigTest.java @@ -1,54 +1,55 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ -package org.onap.universalvesadapter.mappingconfig; - -import static org.junit.Assert.*; - -import java.util.HashMap; -import java.util.Map; -import java.util.Set; - -import org.junit.Test; -import org.springframework.beans.factory.annotation.Autowired; - -public class MapperConfigTest { - - @Autowired - MapperConfig mapperConfig = new MapperConfig(); - Map additionalProperties = new HashMap(); - Object value = new Object(); - Set entries = null; - - @Test - public void test() { - mapperConfig.setAdditionalProperty("name", value); - mapperConfig.setEntries(entries); - additionalProperties.put("name", value); - - assertEquals(mapperConfig.getAdditionalProperties(),additionalProperties); - assertEquals(mapperConfig.getEntries(),entries); - assert (mapperConfig.toString() != null); - assert (mapperConfig.hashCode() != 0); - - assert (mapperConfig.equals(mapperConfig)); - - } - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.universalvesadapter.mappingconfig; + +import static org.junit.Assert.assertEquals; + +import java.util.HashMap; +import java.util.Map; +import java.util.Set; + +import org.junit.Test; +import org.springframework.beans.factory.annotation.Autowired; + +public class MapperConfigTest { + + @Autowired + MapperConfig mapperConfig = new MapperConfig(); + Map additionalProperties = new HashMap(); + Object value = new Object(); + Set entries = null; + + @Test + public void test() { + mapperConfig.setAdditionalProperty("name", value); + mapperConfig.setEntries(entries); + additionalProperties.put("name", value); + + assertEquals(mapperConfig.getAdditionalProperties(), additionalProperties); + assertEquals(mapperConfig.getEntries(), entries); + assert (mapperConfig.toString() != null); + assert (mapperConfig.hashCode() != 0); + + assert (mapperConfig.equals(mapperConfig)); + + } + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/service/VesServiceTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/service/VesServiceTest.java index 3ad47f0..2e6ed56 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/service/VesServiceTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/service/VesServiceTest.java @@ -1,144 +1,100 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= - -package org.onap.universalvesadapter.service; - -import static org.junit.Assert.*; -import static org.mockito.Mockito.doNothing; -import static org.mockito.Mockito.doReturn; - -import java.io.IOException; -import java.util.Arrays; -import java.util.Collections; - -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.ArgumentCaptor; -import org.mockito.InjectMocks; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.mockito.MockitoAnnotations; -import org.onap.universalvesadapter.Application; -import org.onap.universalvesadapter.exception.DMaapException; -import org.onap.universalvesadapter.service.DMaapService; -import org.onap.universalvesadapter.service.VesService; -import org.onap.universalvesadapter.utils.ParallelTasks; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; - -import com.att.nsa.mr.client.MRConsumer; -@Ignore -@RunWith(SpringRunner.class) -@SpringBootTest(classes = Application.class) -public class VesServiceTest { - - @InjectMocks - @Autowired - private VesService vesService; - - @Mock - private DMaapService dmaapService; - - private final Logger eLOGGER = LoggerFactory.getLogger(this.getClass()); - - @Before - public void init() { - MockitoAnnotations.initMocks(this); - } - - - @Test - public void testStart() throws IOException { - - String[] incomingMessages = {"{ " - + " \"protocol version \": \"v2c \", " - + " \"notify OID \": \".1.3.6.1.4.1.74.2.46.12.1.1AAA \", " - + " \"cambria.partition \": \"dcae-snmp.client.research.att.com \", " - + " \"trap category \": \"UCSNMP-HEARTBEAT \", " - + " \"epoch_serno \": 15161177410000, " - + " \"community \": \"public \", " - + " \"time received \": 1516117741, " - + " \"agent name \": \"localhost \", " - + " \"agent address \": \"127.0.0.1 \", " - + " \"community len \": 6, " - + " \"notify OID len \": 12, " - + " \"varbinds \": [{ " - + " \"varbind_type \": \"octet \", " - + " \"varbind_oid \": \".1.3.6.1.4.1.74.2.46.12.1.1.1 \", " - + " \"varbind_value \": \"ucsnmp heartbeat - ignore \" " - + " }, { " - + " \"varbind_type \": \"octet \", " - + " \"varbind_oid \": \".1.3.6.1.4.1.74.2.46.12.1.1.2 \", " - + " \"varbind_value \": \"Tue Jan 16 10:49:01 EST 2018 \" " - + " }] " - + "}"}; - try { - // Mockito.when(dmaapService.fetchAndPublishInDMaaP(null,null)).thenReturn(Arrays.asList(incomingMessages)).thenReturn(() -> Collections.emptyIterator()); - } catch (Exception e) { - eLOGGER.error("Error occurred : " + e.getMessage()); - } - - ArgumentCaptor valueCapture = ArgumentCaptor.forClass(String.class); - try { - //doNothing().when(dmaapService).fetchAndPublishInDMaaP((String) valueCapture.capture()); - } catch (DMaapException e) { - eLOGGER.error("Error occurred : " + e.getMessage()); - } - - - new Thread(new Runnable() { - - @Override - public void run() { - // TODO Auto-generated method stub - vesService.start(); - - } - }).start(); - try { - Thread.sleep(5000); - } catch (InterruptedException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - new Thread(new Runnable() { - - @Override - public void run() { - // TODO Auto-generated method stub - vesService.stop(); - - } - }).start(); - String result = "{\"event\":{\"commonEventHeader\":{},\"faultFields\":{},\"measurementsForVfScalingFields\":{\"additionalMeasurements\":[]}}}"; - assertEquals(result, valueCapture.getValue()); - } - - @Test - public void testStop() { - fail("Not yet implemented"); - } - -} -*/ \ No newline at end of file +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + * + * + * package org.onap.universalvesadapter.service; + * + * import static org.junit.Assert.*; import static org.mockito.Mockito.doNothing; import static + * org.mockito.Mockito.doReturn; + * + * import java.io.IOException; import java.util.Arrays; import java.util.Collections; + * + * import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import + * org.junit.runner.RunWith; import org.mockito.ArgumentCaptor; import org.mockito.InjectMocks; + * import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.MockitoAnnotations; + * import org.onap.universalvesadapter.Application; import + * org.onap.universalvesadapter.exception.DMaapException; import + * org.onap.universalvesadapter.service.DMaapService; import + * org.onap.universalvesadapter.service.VesService; import + * org.onap.universalvesadapter.utils.ParallelTasks; import org.slf4j.Logger; import + * org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import + * org.springframework.boot.test.context.SpringBootTest; import + * org.springframework.test.context.junit4.SpringRunner; + * + * import com.att.nsa.mr.client.MRConsumer; + * + * @Ignore + * + * @RunWith(SpringRunner.class) + * + * @SpringBootTest(classes = Application.class) public class VesServiceTest { + * + * @InjectMocks + * + * @Autowired private VesService vesService; + * + * @Mock private DMaapService dmaapService; + * + * private final Logger eLOGGER = LoggerFactory.getLogger(this.getClass()); + * + * @Before public void init() { MockitoAnnotations.initMocks(this); } + * + * + * @Test public void testStart() throws IOException { + * + * String[] incomingMessages = {"{ " + " \"protocol version \": \"v2c \", " + + * " \"notify OID \": \".1.3.6.1.4.1.74.2.46.12.1.1AAA \", " + + * " \"cambria.partition \": \"dcae-snmp.client.research.att.com \", " + + * " \"trap category \": \"UCSNMP-HEARTBEAT \", " + " \"epoch_serno \": 15161177410000, " + + * " \"community \": \"public \", " + " \"time received \": 1516117741, " + + * " \"agent name \": \"localhost \", " + " \"agent address \": \"127.0.0.1 \", " + + * " \"community len \": 6, " + " \"notify OID len \": 12, " + " \"varbinds \": [{ " + + * " \"varbind_type \": \"octet \", " + + * " \"varbind_oid \": \".1.3.6.1.4.1.74.2.46.12.1.1.1 \", " + + * " \"varbind_value \": \"ucsnmp heartbeat - ignore \" " + " }, { " + + * " \"varbind_type \": \"octet \", " + + * " \"varbind_oid \": \".1.3.6.1.4.1.74.2.46.12.1.1.2 \", " + + * " \"varbind_value \": \"Tue Jan 16 10:49:01 EST 2018 \" " + " }] " + "}"}; try { // + * Mockito.when(dmaapService.fetchAndPublishInDMaaP(null,null)). + * thenReturn(Arrays.asList(incomingMessages)).thenReturn(() -> Collections.emptyIterator()); + * + * } catch (Exception e) { eLOGGER.error("Error occurred : " + e.getMessage()); } + * + * ArgumentCaptor valueCapture = ArgumentCaptor.forClass(String.class); try { + * //doNothing().when(dmaapService).fetchAndPublishInDMaaP((String) valueCapture.capture()); } catch + * (DMaapException e) { eLOGGER.error("Error occurred : " + e.getMessage()); } + * + * + * new Thread(new Runnable() { + * + * @Override public void run() { // TODO Auto-generated method stub vesService.start(); + * + * } }).start(); try { Thread.sleep(5000); } catch (InterruptedException e) { // TODO Auto-generated + * catch block e.printStackTrace(); } new Thread(new Runnable() { + * + * @Override public void run() { // TODO Auto-generated method stub vesService.stop(); + * + * } }).start(); String result = "{\"event\":{\"commonEventHeader\":{},\"faultFields\":{}, + * \"measurementsForVfScalingFields\":{\"additionalMeasurements\":[]}}}"; assertEquals(result, + * valueCapture.getValue()); } + * + * @Test public void testStop() { fail("Not yet implemented"); } + * + * } + */ diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java index 13a5e78..19fcaa2 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java @@ -1,121 +1,128 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ package org.onap.universalvesadapter.utils; import java.io.ByteArrayInputStream; import java.io.IOException; import java.nio.charset.StandardCharsets; + import org.junit.Test; import org.milyn.Smooks; -import org.onap.dcaegen2.ves.domain.ves7_0.VesEvent; +import org.onap.dcaegen2.ves.domain.ves70.VesEvent; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.xml.sax.SAXException; public class SmooksUtilsTest { - - - VesEvent vesEvent; - private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); - - @Test - public void testGetTransformedObjectForInput() { - StringBuffer incomingJsonString = new StringBuffer("{\n" + " \"rule-id\": \"12121\",\n" - + " \"notification\": {\n" + " \"event-time\": \"2018-03-15T08:15:32.000Z\",\n" - + " \"notification-id\": \"2541256\",\n" + " \"message\": {\n" - + " \"topic\":\"resource\",\n" - + " \"object-type\":\"onu\", \n" - + " \"version\": \"v1\", \n" - + " \"operation\": \"create\", \n" - + " \"target\": \"ont/ont=23hk1231231232\", \n" - + " \"content\": {\n" + " \"onu\": {\n" - + " \"sn\": \"48575443FA637D1A\",\n" - + " \"refParentNE\": \"550e8400-e29b-41d4-a716-446655440000\",\n" - + " \"refParentNeNativeId\": \"FDN\",\n" - + " \"refParentLTP\": \"8c0db89e-218c-4e18-b0de-7a6788b3dda4\",\n" - + " \"refParentLTPNativeId\": \"FDN\",\n" - + " \"onuId\": \"213\",\n" - + " \"accessID\": \"HG65875420001\"\n" + " }\n" - + " }\n" + " }\n" + " }\n" + "}"); - StringBuffer configFileData = new StringBuffer("\n" - + "\n" - + " \n" - + " \n" - + " \n" - + " \n" + " \n" - + " \n" - + " \n" + " \n" - + " \n" - + " \n" - + " \n" - + " \n" - + " \n" - + "" - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Version._4_0_1 \n" - + "\"pnfRegistration\"\n" - + "" - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.VesEventListenerVersion._7_0_1\n" - + " " - + "\"registration_\"+commonEventHeader.ts1\n" - + "\"VESMapper\"\n" - + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Domain.PNF_REGISTRATION\n" - + " " - + "commonEventHeader.domain\n" - + "\n" - + "" - + "commonEventHeader.ts1\n" - + " " - + "commonEventHeader.ts1\n" + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Priority.NORMAL\n" - + " \n" - + " \n" - + " \n" + " \n" - + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0" - + "\n" - + " \n" - + " \n" + " \n" + ""); - - Smooks smooks = null; - - try { - // reading config file.. for now, looking at it as just one time operation - if (null == smooks) { - - smooks = new Smooks( - new ByteArrayInputStream(configFileData.toString().getBytes(StandardCharsets.UTF_8))); - } - - vesEvent = SmooksUtils.getTransformedObjectForInput(smooks, incomingJsonString.toString()); - } catch (IOException | SAXException exception) { - errorLogger.error("Error occurred : ", exception); + + + VesEvent vesEvent; + private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); + + @Test + public void testGetTransformedObjectForInput() { + StringBuffer incomingJsonString = new StringBuffer("{\n" + " \"rule-id\": \"12121\",\n" + + " \"notification\": {\n" + + " \"event-time\": \"2018-03-15T08:15:32.000Z\",\n" + + " \"notification-id\": \"2541256\",\n" + " \"message\": {\n" + + " \"topic\":\"resource\",\n" + + " \"object-type\":\"onu\", \n" + + " \"version\": \"v1\", \n" + + " \"operation\": \"create\", \n" + + " \"target\": \"ont/ont=23hk1231231232\", \n" + + " \"content\": {\n" + " \"onu\": {\n" + + " \"sn\": \"48575443FA637D1A\",\n" + + " \"refParentNE\": \"550e8400-e29b-41d4-a716-446655440000\",\n" + + " \"refParentNeNativeId\": \"FDN\",\n" + + " \"refParentLTP\": \"8c0db89e-218c-4e18-b0de-7a6788b3dda4\",\n" + + " \"refParentLTPNativeId\": \"FDN\",\n" + + " \"onuId\": \"213\",\n" + + " \"accessID\": \"HG65875420001\"\n" + " }\n" + + " }\n" + " }\n" + " }\n" + "}"); + StringBuffer configFileData = + new StringBuffer("\n" + + "\n" + + " \n" + + " \n" + + " \n" + + " \n" + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "" + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1 \n" + + "\"pnfRegistration\"\n" + + "" + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1" + + "\n" + + " " + + "\"registration_\"+commonEventHeader.ts1\n" + + "\"VESMapper\"\n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION" + + "\n" + + " " + + "commonEventHeader.domain\n" + + "\n" + + "" + + "commonEventHeader.ts1\n" + + " " + + "commonEventHeader.ts1\n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0" + + "\n" + + " \n" + + " \n" + " \n" + ""); + + Smooks smooks = null; + + try { + // reading config file.. for now, looking at it as just one time operation + if (null == smooks) { + + smooks = new Smooks(new ByteArrayInputStream( + configFileData.toString().getBytes(StandardCharsets.UTF_8))); + } + + vesEvent = + SmooksUtils.getTransformedObjectForInput(smooks, incomingJsonString.toString()); + } catch (IOException | SAXException exception) { + errorLogger.error("Error occurred : ", exception); + } } - } } - - \ No newline at end of file + -- cgit 1.2.3-korg