diff options
author | zhangab <zhanganbing@chinamobile.com> | 2018-04-04 19:50:38 +0800 |
---|---|---|
committer | zhangab <zhanganbing@chinamobile.com> | 2018-04-04 19:50:41 +0800 |
commit | 6c48136f595d14b3698b2f158bdfa29077dc527d (patch) | |
tree | 1a33bd16bcbe453610a92b84cf8b2291eaa44eba | |
parent | e9902e37e44c3e824676bfd3aa0611b1e7310c7d (diff) |
improve sonar coverage for uui-server
Change-Id: I1c38d6802e39f0238de44253ff5ce7a9c723bdaf
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 | 10 |
1 files changed, 5 insertions, 5 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 92240d76..c674d192 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 @@ -97,6 +97,11 @@ public class AlarmsHeaderServiceImplTest { public Object uniqueResult() { return "0"; } + @Mock + public List<AlarmsHeader> list() { + AlarmsHeader ah = new AlarmsHeader(); + return Arrays.asList(ah); + } }; MockUp<Session> mockedSession = new MockUp<Session>() { @Mock @@ -121,11 +126,6 @@ public class AlarmsHeaderServiceImplTest { @Mock public void update(Object object) { } - @Mock - public List<AlarmsHeader> list() { - AlarmsHeader ah = new AlarmsHeader(); - return Arrays.asList(ah); - } }; new MockUp<SessionFactory>() { @Mock |