From b1dc61a369f4dd88159948556be735a4c171df5d Mon Sep 17 00:00:00 2001 From: zhangab Date: Thu, 29 Mar 2018 09:48:49 +0800 Subject: improve sonar coverage for uui-server Change-Id: I2c89959d45d3eab83442530f137c60f48b2524ae Issue-ID: USECASEUI-103 Signed-off-by: zhangab --- .../server/service/impl/AlarmsHeaderServiceImplTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 7afc0ecd..49544852 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 @@ -73,6 +73,12 @@ public class AlarmsHeaderServiceImplTest { public void flush() { } }; + new MockUp() { + @Mock + public Session openSession() { + return mockedSession.getMockInstance(); + } + }; new MockUp() { @Mock public void commit() { @@ -121,6 +127,12 @@ public class AlarmsHeaderServiceImplTest { public void flush() { } }; + new MockUp() { + @Mock + public Session openSession() { + return mockedSession.getMockInstance(); + } + }; new MockUp() { @Mock public void getTransaction() { -- cgit 1.2.3-korg