improve sonar coverage for uui-server 85/40885/1
authorzhangab <zhanganbing@chinamobile.com>
Wed, 4 Apr 2018 05:08:01 +0000 (13:08 +0800)
committerzhangab <zhanganbing@chinamobile.com>
Wed, 4 Apr 2018 05:08:04 +0000 (13:08 +0800)
Change-Id: Ie55375006239eb9ee81af7a0d26380b2e16aee7c
Issue-ID: USECASEUI-103
Signed-off-by: zhangab <zhanganbing@chinamobile.com>
server/src/test/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java

index e5a4347..db3d385 100644 (file)
@@ -103,34 +103,7 @@ public class AlarmsHeaderServiceImplTest {
                        public void commit() {
                        }
                };
-               AlarmsHeader ah = new AlarmsHeader();
-               ah.setEventName("a");
-               ah.setStatus("1");
-               ah.setVfStatus("1");
-               ah.setEventId("1119");
-               ah.setDomain("asb");
-               ah.setEventCategory("s");
-               ah.setAlarmCondition("ea");
-               ah.setAlarmInterfaceA("cs");
-               ah.setCreateTime(DateUtils.now());
-               ah.setEventServrity("s");
-               ah.setEventSourceType("q");
-               ah.setEventType("q");
-               ah.setFaultFieldsVersion("v1");
-               ah.setLastEpochMicroSec("csa");
-               ah.setNfcNamingCode("std");
-               ah.setNfNamingCode("cout");
-               ah.setPriority("cs");
-               ah.setReportingEntityId("112");
-               ah.setReportingEntityName("asfs");
-               ah.setSequence("cgg");
-               ah.setSourceId("123");
-               ah.setSourceName("eggs");
-               ah.setSpecificProblem("especially");
-               ah.setStartEpochMicrosec("wallet");
-               ah.setUpdateTime(DateUtils.now());
-               ah.setVersion("va2");
-
+               AlarmsHeader ah = null;
                alarmsHeaderServiceImpl.saveAlarmsHeader(ah);
        }