diff options
author | Zhaoxing <meng.zhaoxing1@zte.com.cn> | 2017-08-09 10:33:38 +0800 |
---|---|---|
committer | Zhaoxing <meng.zhaoxing1@zte.com.cn> | 2017-08-09 10:33:38 +0800 |
commit | 4120fc2a4448afdff8474f725f9c1d57f51ebe8f (patch) | |
tree | fc1a95c973e46efa11ac64ea6b71bf525a726034 /wfenginemgrservice/src/main/java | |
parent | c0604184b2aa8cff924ca783ec6b36f1f5988775 (diff) |
added test code
Change-Id: I238e18501bcf8abe61add65c0383a44b3c7a8cbc
Signed-off-by: Zhaoxing <meng.zhaoxing1@zte.com.cn>
Diffstat (limited to 'wfenginemgrservice/src/main/java')
-rw-r--r-- | wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowApp.java | 4 | ||||
-rw-r--r-- | wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowAppConfig.java | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowApp.java b/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowApp.java index 23f6ac6..d5fcb59 100644 --- a/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowApp.java +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowApp.java @@ -34,9 +34,11 @@ public class WorkflowApp extends Application<WorkflowAppConfig> { @Override public void run(WorkflowAppConfig configuration, Environment environment) throws Exception { - // TODO Auto-generated method stub + environment.jersey().register(MultiPartFeature.class); + environment.jersey().packages("org.onap.workflow.resources"); + Config.setWorkflowAppConfig(configuration); } } diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowAppConfig.java b/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowAppConfig.java index 71985cc..f874bad 100644 --- a/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowAppConfig.java +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowAppConfig.java @@ -40,4 +40,10 @@ public class WorkflowAppConfig extends Configuration { public MsbClientConfig getMsbClientConfig() { return msbClientConfig; } + + public void setMsbClientConfig(MsbClientConfig msbClientConfig) { + this.msbClientConfig = msbClientConfig; + } + + } |