diff options
author | zhangab <zhanganbing@chinamobile.com> | 2018-03-29 13:24:57 +0800 |
---|---|---|
committer | zhangab <zhanganbing@chinamobile.com> | 2018-03-29 13:25:00 +0800 |
commit | 95b7648a4e67639a6404ae93de9ea9e6c6c479e4 (patch) | |
tree | 921efedd0552a357e000f9a93cb5bf2820b34fb5 | |
parent | 5f36164d89c1185f216691f02ad8fe44d9de431c (diff) |
improve sonar coverage for uui-sonar
Change-Id: Iccc98fd23cb92f3a5bdfc1603f0e24c740a02c33
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 | 11 |
1 files changed, 0 insertions, 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<SessionFactory>() { @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()); - } |