Replaced all tabs with spaces in java and pom.xml
[so.git] / bpmn / MSOCommonBPMN / src / test / java / org / onap / so / bpmn / common / WorkflowContextHolderTest.java
index 4a51d34..23f9818 100644 (file)
@@ -16,7 +16,7 @@
  * See the License for the specific language governing permissions and 
  * limitations under the License. 
  * ============LICENSE_END========================================================= 
- */ 
+ */
 
 package org.onap.so.bpmn.common;
 
@@ -34,35 +34,35 @@ import org.onap.so.bpmn.common.workflow.context.WorkflowResponse;
 public class WorkflowContextHolderTest {
 
 
-       @Test
-       public void testProcessCallback() throws Exception {
-               String requestId = UUID.randomUUID().toString();                
-               String message = "TEST MESSATGE";
-               String responseMessage = "Successfully processed request";
-               int testCode = 200;             
-               
-               
-               WorkflowContextHolder contextHolder = WorkflowContextHolder.getInstance();
-                
-               WorkflowCallbackResponse callbackResponse = new WorkflowCallbackResponse();
-               callbackResponse.setMessage(message);
-               callbackResponse.setResponse(responseMessage);
-               callbackResponse.setStatusCode(testCode);
-               
-               contextHolder.processCallback("testAsyncProcess","process-instance-id",requestId,callbackResponse);
-               
-               //same object returned
-               WorkflowContext contextFound = contextHolder.getWorkflowContext(requestId);
-               if(contextFound == null)
-                       throw new Exception("Expected to find Context Object");
-               
-               WorkflowResponse testResponse = contextFound.getWorkflowResponse();
-               Assert.assertEquals(200,testResponse.getMessageCode());
-               Assert.assertEquals(message, testResponse.getMessage());
-               Assert.assertEquals(responseMessage, testResponse.getResponse());
-               
-               
-
-       }
+    @Test
+    public void testProcessCallback() throws Exception {
+        String requestId = UUID.randomUUID().toString();
+        String message = "TEST MESSATGE";
+        String responseMessage = "Successfully processed request";
+        int testCode = 200;
+
+
+        WorkflowContextHolder contextHolder = WorkflowContextHolder.getInstance();
+
+        WorkflowCallbackResponse callbackResponse = new WorkflowCallbackResponse();
+        callbackResponse.setMessage(message);
+        callbackResponse.setResponse(responseMessage);
+        callbackResponse.setStatusCode(testCode);
+
+        contextHolder.processCallback("testAsyncProcess", "process-instance-id", requestId, callbackResponse);
+
+        // same object returned
+        WorkflowContext contextFound = contextHolder.getWorkflowContext(requestId);
+        if (contextFound == null)
+            throw new Exception("Expected to find Context Object");
+
+        WorkflowResponse testResponse = contextFound.getWorkflowResponse();
+        Assert.assertEquals(200, testResponse.getMessageCode());
+        Assert.assertEquals(message, testResponse.getMessage());
+        Assert.assertEquals(responseMessage, testResponse.getResponse());
+
+
+
+    }
 
 }