diff options
author | Murali-P <murali.p@huawei.com> | 2017-02-15 12:09:27 +0530 |
---|---|---|
committer | Murali-P <murali.p@huawei.com> | 2017-02-15 12:09:27 +0530 |
commit | 0f90c444cb2bb079ace804e2a7478303e39d0dfc (patch) | |
tree | 97762ce7cdf336bb1396e95961aebda1d6870d46 /vnf-sdk-function-test/src/test | |
parent | 5b3d92627f7e2a3c80f0b8589cd60e13999a7e3a (diff) |
Add new UT Test case
Resolved:VNFSDK-21
Function test base code
Change-Id: I4a55e24358f22b7e9e120c8caf3e844e3550bf6e
Signed-off-by: Murali-P <murali.p@huawei.com>
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(); + } } |