NonRT-RIC A1 Northbound API
[nonrtric.git] / sdnc-a1-controller / oam / SdncReports / SdncReportsApi / src / test / java / com / onap / sdnc / reports / ApplicationTest.java
1 package com.onap.sdnc.reports;
2
3 import static org.junit.Assert.assertNotNull;
4
5 import org.apache.logging.log4j.LogManager;
6 import org.apache.logging.log4j.Logger;
7 import org.junit.Test;
8 import org.junit.runner.RunWith;
9 import org.springframework.beans.factory.annotation.Autowired;
10 import org.springframework.boot.test.context.SpringBootTest;
11 import org.springframework.test.context.junit4.SpringRunner;
12
13 import com.onap.sdnc.reports.controller.ReportController;
14
15 @RunWith(SpringRunner.class)
16 @SpringBootTest(classes = Application.class)
17 public class ApplicationTest {
18         
19         private static final Logger logger = LogManager.getLogger(ApplicationTest.class);
20         
21         @Autowired
22         private ReportController reportController;
23         
24         @Test
25     public void controllerAutoWireTest()
26     {
27         assertNotNull("Due to Application Context Fail", reportController);
28     }
29         
30         @Test
31         public void contextLoads() throws Exception
32         {
33                 logger.info("Context Load Test Succeded");
34         }
35 }