summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhangab <zhanganbing@chinamobile.com>2018-03-27 12:18:09 +0800
committerzhangab <zhanganbing@chinamobile.com>2018-03-27 12:18:14 +0800
commit0fb42b1406b16bb6bccced30d58e484bd3dc09b0 (patch)
treee58bf7e674b7a5204ed8fa25735a14f591a24d05
parent2519c0ca98a11edcdfd710856f8d6dda9b3a3820 (diff)
improve sonar coverage for uui-server
Change-Id: If8637e55f9c7608137793c8872fabb3fdc369b84 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.java6
1 files changed, 1 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 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 <pre>8, 2018</pre>
* @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));
}