diff options
author | zhangab <zhanganbing@chinamobile.com> | 2018-04-04 09:23:27 +0800 |
---|---|---|
committer | zhangab <zhanganbing@chinamobile.com> | 2018-04-04 09:23:34 +0800 |
commit | 822053979c06428729349e7c39e955d709c4521a (patch) | |
tree | 22035b19665361695f99fe47f9af5d9274e5e6c4 | |
parent | 1510568cd7168e696762b342050822ded507040e (diff) |
improve sonar coverage for uui-server
Change-Id: Idd2caeee53213c13beb465c4ef5f3f4663b3f15c
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 | 3 |
1 files changed, 2 insertions, 1 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 3de94cd0..426bafdb 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 @@ -67,7 +67,7 @@ public class AlarmsHeaderServiceImplTest { } @Mock public Serializable save(Object object) { - return (Serializable) new Object(); + return (Serializable) serialVersionUID; } @Mock public void flush() { @@ -96,6 +96,7 @@ public class AlarmsHeaderServiceImplTest { public void after() throws Exception { } + private static final long serialVersionUID = 1L; private Session session; private Transaction transaction; private Query query; |