From 1263b3ed40c97fd0fb6af16086b49a5dd7fc3c4b Mon Sep 17 00:00:00 2001 From: zhangab Date: Tue, 27 Mar 2018 15:51:30 +0800 Subject: improve sonar coverage for uui-server Change-Id: Ib81e369a2c7c327fb6f839683e0803144de3729a Issue-ID: USECASEUI-103 Signed-off-by: zhangab --- .../usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java | 4 ++++ 1 file changed, 4 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 787445c3..9016200f 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 @@ -31,6 +31,7 @@ import org.springframework.test.context.web.WebAppConfiguration; import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.Date; +import org.hibernate.SessionFactory; /** * AlarmsHeaderServiceImpl Tester. @@ -41,6 +42,9 @@ import java.util.Date; */ public class AlarmsHeaderServiceImplTest { + @Autowired + private SessionFactory sessionFactory; + @Before public void before() throws Exception { } -- cgit 1.2.3-korg