diff options
author | zhangab <zhanganbing@chinamobile.com> | 2018-04-04 13:08:01 +0800 |
---|---|---|
committer | zhangab <zhanganbing@chinamobile.com> | 2018-04-04 13:08:04 +0800 |
commit | 210ca669dadf91521d4cea1927df0bd3f2da21d4 (patch) | |
tree | 20eabef35ba116df6fd445f7bbc1e7631a46c470 | |
parent | bfbba587f24d9c182f3a983c5fd4a4b3ed6636dd (diff) |
improve sonar coverage for uui-server
Change-Id: Ie55375006239eb9ee81af7a0d26380b2e16aee7c
Issue-ID: USECASEUI-103
Signed-off-by: zhangab <zhanganbing@chinamobile.com>
-rw-r--r-- | server/src/test/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java b/server/src/test/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java index e5a43470..db3d3855 100644 --- a/server/src/test/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java +++ b/server/src/test/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java @@ -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); } |