diff options
author | zhangab <zhanganbing@chinamobile.com> | 2018-04-03 21:36:49 +0800 |
---|---|---|
committer | zhangab <zhanganbing@chinamobile.com> | 2018-04-03 21:36:52 +0800 |
commit | 1510568cd7168e696762b342050822ded507040e (patch) | |
tree | 776bb2b886b14a641687e1b6fed8c4fda04f8c27 | |
parent | 2f2602346dd0f150e89630bdeaf8edaf244ce423 (diff) |
improve sonar coverage for uui-server
Change-Id: I9f3fb357ee6acedda65aa1b58ab75b364a2ab8da
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 | 5 |
1 files changed, 3 insertions, 2 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 10f76bfd..3de94cd0 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 @@ -32,6 +32,7 @@ import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.Date; +import java.io.*; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; @@ -65,8 +66,8 @@ public class AlarmsHeaderServiceImplTest { return transaction; } @Mock - public Object save(Object object) { - return new Object(); + public Serializable save(Object object) { + return (Serializable) new Object(); } @Mock public void flush() { |