diff options
Diffstat (limited to 'vnf-sdk-function-test/src/test')
-rw-r--r-- | vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functests/VnfSdkFuncTestAppTest.java | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functests/VnfSdkFuncTestAppTest.java b/vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functests/VnfSdkFuncTestAppTest.java index e4873a1..f8b1f60 100644 --- a/vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functests/VnfSdkFuncTestAppTest.java +++ b/vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functests/VnfSdkFuncTestAppTest.java @@ -16,10 +16,11 @@ package org.openo.vnfsdk.functests; -import org.junit.Before; -import org.mockito.Mock; +import org.junit.Test; import org.openo.vnfsdk.functest.VnfSdkFuncTestApp; import org.openo.vnfsdk.functest.VnfSdkFuncTestAppConfiguration; +import org.openo.vnfsdk.functest.common.Config; +import org.openo.vnfsdk.functest.common.ServiceRegistration; import io.dropwizard.setup.Environment; @@ -29,12 +30,20 @@ public class VnfSdkFuncTestAppTest { private Environment environment; - @Mock - VnfSdkFuncTestAppConfiguration configuartion; + @Test + public void RunApp() { - @Before - public void setup() { - vnfSdkFuncTestApp = new VnfSdkFuncTestApp(); + try { + + Config.setConfigration(new VnfSdkFuncTestAppConfiguration()); + Thread registerExtsysService = new Thread(new ServiceRegistration()); + registerExtsysService.setName("Register vnfsdk-functionTest service to Microservice Bus"); + registerExtsysService.start(); + + } catch(Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } } |