From 95b7648a4e67639a6404ae93de9ea9e6c6c479e4 Mon Sep 17 00:00:00 2001 From: zhangab Date: Thu, 29 Mar 2018 13:24:57 +0800 Subject: improve sonar coverage for uui-sonar Change-Id: Iccc98fd23cb92f3a5bdfc1603f0e24c740a02c33 Issue-ID: USECASEUI-103 Signed-off-by: zhangab --- .../server/service/impl/AlarmsHeaderServiceImplTest.java | 11 ----------- 1 file changed, 11 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 e326c3a5..5c1913ec 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 @@ -101,12 +101,6 @@ public class AlarmsHeaderServiceImplTest { public Transaction beginTransaction() { return transaction; } - @Mock - public void save(Object object) { - } - @Mock - public void flush() { - } }; new MockUp() { @Mock @@ -130,11 +124,6 @@ public class AlarmsHeaderServiceImplTest { alarmsHeaderServiceImpl.saveAlarmsHeader(ah); } - @Test(expected = Exception.class) - public void testSaveAlarmsHeaderError(){ - AlarmsHeaderServiceImpl alarmsHeaderServiceImpl = new AlarmsHeaderServiceImpl(); - alarmsHeaderServiceImpl.saveAlarmsHeader(new AlarmsHeader()); - } -- cgit 1.2.3-korg