summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhangab <zhanganbing@chinamobile.com>2018-04-03 16:05:38 +0800
committerzhangab <zhanganbing@chinamobile.com>2018-04-03 16:05:40 +0800
commit2f2602346dd0f150e89630bdeaf8edaf244ce423 (patch)
tree16f1616286e4cd749b1cff665c5278b683be399e
parent7a3b4849c477495f5d1276b43f766e210f656085 (diff)
improve sonar coverage for uui-server
Change-Id: Ie8ad16590754307222bd13395df991c019e31390 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.java8
1 files changed, 4 insertions, 4 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 2ba3fcc3..10f76bfd 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
@@ -64,10 +64,10 @@ public class AlarmsHeaderServiceImplTest {
public Transaction beginTransaction() {
return transaction;
}
- //@Mock
- //public Object save(Object object) {
- // return null;
- //}
+ @Mock
+ public Object save(Object object) {
+ return new Object();
+ }
@Mock
public void flush() {
}