diff options
author | 2018-04-09 15:04:03 +0200 | |
---|---|---|
committer | 2018-04-09 18:09:33 +0200 | |
commit | a995e82e01a3315940051ca55133c9cb14eccc6b (patch) | |
tree | 60cfaba3195e70eee199c8ce78533397b18a1ca3 /nokiav2/driver/src/test/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util | |
parent | 21e822781382c89f125b030c6fe96eea2a5ad087 (diff) |
Fix container startup
Change-Id: I5e7f9fb4bc83b113b5d27c5cd26e19cdc42e2c57
Issue-ID: VFC-728
Signed-off-by: Denes Nemeth <denes.nemeth@nokia.com>
Diffstat (limited to 'nokiav2/driver/src/test/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util')
-rw-r--r-- | nokiav2/driver/src/test/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/TestSystemFunctions.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nokiav2/driver/src/test/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/TestSystemFunctions.java b/nokiav2/driver/src/test/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/TestSystemFunctions.java index 0b31fef5..c627bfcf 100644 --- a/nokiav2/driver/src/test/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/TestSystemFunctions.java +++ b/nokiav2/driver/src/test/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/TestSystemFunctions.java @@ -20,7 +20,9 @@ import java.util.Base64; import java.util.HashSet; import java.util.Set; import org.junit.Test; +import org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.NokiaSvnfmApplication; import org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.vnfm.Useless; +import org.springframework.boot.SpringApplication; import static org.junit.Assert.*; @@ -115,4 +117,14 @@ public class TestSystemFunctions { public void testHttp() { assertNotNull(SystemFunctions.systemFunctions().getHttpClient()); } + + /** + * Test spring application wrapping + */ + @Test + public void testSpring(){ + SpringApplication springApplication = SystemFunctions.systemFunctions().newSpringApplication(NokiaSvnfmApplication.class); + + assertEquals(1, springApplication.getAllSources().size()); + } } |