diff options
Diffstat (limited to 'SdncReports/SdncReportsApi/src/test/java/com/onap/sdnc/reports/ApplicationTest.java')
-rw-r--r-- | SdncReports/SdncReportsApi/src/test/java/com/onap/sdnc/reports/ApplicationTest.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/SdncReports/SdncReportsApi/src/test/java/com/onap/sdnc/reports/ApplicationTest.java b/SdncReports/SdncReportsApi/src/test/java/com/onap/sdnc/reports/ApplicationTest.java new file mode 100644 index 00000000..58c9cd7b --- /dev/null +++ b/SdncReports/SdncReportsApi/src/test/java/com/onap/sdnc/reports/ApplicationTest.java @@ -0,0 +1,35 @@ +package com.onap.sdnc.reports; + +import static org.junit.Assert.assertNotNull; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +import com.onap.sdnc.reports.controller.ReportController; + +@RunWith(SpringRunner.class) +@SpringBootTest(classes = Application.class) +public class ApplicationTest { + + private static final Logger logger = LogManager.getLogger(ApplicationTest.class); + + @Autowired + private ReportController reportController; + + @Test + public void controllerAutoWireTest() + { + assertNotNull("Due to Application Context Fail", reportController); + } + + @Test + public void contextLoads() throws Exception + { + logger.info("Context Load Test Succeded"); + } +} |