diff options
author | zhangab <zhanganbing@chinamobile.com> | 2018-03-27 11:25:22 +0800 |
---|---|---|
committer | zhangab <zhanganbing@chinamobile.com> | 2018-03-27 11:25:29 +0800 |
commit | 2519c0ca98a11edcdfd710856f8d6dda9b3a3820 (patch) | |
tree | 9c53651a1ce805aa389d88d90289af37d658d9d0 | |
parent | 034e071ed32ffb3bf496137d8e4cf7769e7b11b4 (diff) |
improve sonar coverage for uui-server
Change-Id: I135db8bbc2cd45f91ff4055d9856c9a5e29d75ac
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 | 7 |
1 files changed, 7 insertions, 0 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 47776fd6..aa30d3da 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,7 +39,11 @@ 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 @@ -57,6 +61,7 @@ public void after() throws Exception { */ @Test public void testSaveAlarmsHeader() throws Exception { +//TODO: Test goes here... AlarmsHeader a = new AlarmsHeader(); a.setEventName("a"); a.setStatus("1"); @@ -86,4 +91,6 @@ public void testSaveAlarmsHeader() throws Exception { a.setVersion("va2"); System.out.println(alarmsHeaderServiceImpl.saveAlarmsHeader(a)); } + + } |