From 0fb42b1406b16bb6bccced30d58e484bd3dc09b0 Mon Sep 17 00:00:00 2001 From: zhangab Date: Tue, 27 Mar 2018 12:18:09 +0800 Subject: improve sonar coverage for uui-server Change-Id: If8637e55f9c7608137793c8872fabb3fdc369b84 Issue-ID: USECASEUI-103 Signed-off-by: zhangab --- .../usecaseui/server/service/impl/AlarmsHeaderServiceImplTest.java | 6 +----- 1 file changed, 1 insertion(+), 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 aa30d3da..6d5d9986 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 @@ -39,12 +39,7 @@ import java.util.Date; * @since
8, 2018
* @version 1.0 */ -@RunWith(SpringJUnit4ClassRunner.class) -@SpringBootTest(classes = UsecaseuiServerApplication.class) -@WebAppConfiguration public class AlarmsHeaderServiceImplTest { - @Autowired - private AlarmsHeaderServiceImpl alarmsHeaderServiceImpl; @Before public void before() throws Exception { @@ -89,6 +84,7 @@ public void testSaveAlarmsHeader() throws Exception { a.setStartEpochMicrosec("wallet"); a.setUpdateTime(DateUtils.now()); a.setVersion("va2"); + AlarmsHeaderServiceImpl alarmsHeaderServiceImpl = new AlarmsHeaderServiceImpl(); System.out.println(alarmsHeaderServiceImpl.saveAlarmsHeader(a)); } -- cgit 1.2.3-korg