Add unit test for vfc-nfvo-wfengine
[vfc/nfvo/wfengine.git] / activiti-extension / src / main / java / org / onap / workflow / activitiext / restservicetask / HttpUtil.java
index 0acab5f..ea84ce3 100644 (file)
@@ -76,7 +76,7 @@ public class HttpUtil implements JavaDelegate {
         * \r
         * @param execution\r
         */\r
-       public void executeMethod(DelegateExecution execution) throws Exception {\r
+       public boolean executeMethod(DelegateExecution execution) throws Exception {\r
 \r
                // get rest task information\r
                RestInfo restInfo = new RestInfo();\r
@@ -108,6 +108,8 @@ public class HttpUtil implements JavaDelegate {
 \r
                // inject the result to variable\r
                execution.setVariable(execution.getCurrentActivityId(), msg);\r
+               \r
+               return true;\r
        }\r
 \r
        /**\r
@@ -306,7 +308,7 @@ public class HttpUtil implements JavaDelegate {
         * @param restInfo\r
         * @return\r
         */\r
-       private static String compeleteUri(RestInfo restInfo) {\r
+       public static String compeleteUri(RestInfo restInfo) {\r
 \r
                String publishUrl = "";\r
                try {\r
@@ -333,7 +335,7 @@ public class HttpUtil implements JavaDelegate {
         * @param expStr\r
         * @return\r
         */\r
-       private static Queue<String> parseExpressionToQueue(String expStr) {\r
+       public static Queue<String> parseExpressionToQueue(String expStr) {\r
 \r
                Queue<String> queue = new LinkedList<String>();\r
 \r