Replaced all tabs with spaces in java and pom.xml
[so.git] / bpmn / so-bpmn-tasks / src / test / java / org / onap / so / bpmn / infrastructure / workflow / tasks / OrchestrationStatusValidatorUnitTest.java
index 03b39f5..0da683d 100644 (file)
@@ -23,7 +23,6 @@ package org.onap.so.bpmn.infrastructure.workflow.tasks;
 import static org.hamcrest.CoreMatchers.equalTo;
 import static org.junit.Assert.assertThat;
 import static org.mockito.Mockito.when;
-
 import org.camunda.bpm.extension.mockito.delegate.DelegateExecutionFake;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -41,25 +40,27 @@ import org.onap.so.db.catalog.client.CatalogDbClient;
 @RunWith(MockitoJUnitRunner.class)
 public class OrchestrationStatusValidatorUnitTest {
 
-       @Mock
-       private CatalogDbClient catalogDbClient;
-       
-       @InjectMocks
-       private OrchestrationStatusValidator validator;
-       @Test
-       public void skipValidationTest() {
-               BuildingBlockDetail bbDetail = new BuildingBlockDetail();
-               bbDetail.setBuildingBlockName("customBB");
-               bbDetail.setResourceType(ResourceType.NO_VALIDATE);
-               bbDetail.setTargetAction(OrchestrationAction.CUSTOM);
-               when(catalogDbClient.getBuildingBlockDetail("customBB")).thenReturn(bbDetail);
-               BuildingBlockExecution execution = new DelegateExecutionImpl(new DelegateExecutionFake());
-               execution.setVariable("flowToBeCalled", "customBB");
-               execution.setVariable("aLaCarte", false);
-               validator.validateOrchestrationStatus(execution);
-               
-               
-               assertThat(execution.getVariable("orchestrationStatusValidationResult"), equalTo(OrchestrationStatusValidationDirective.VALIDATION_SKIPPED));
-       }
-       
+    @Mock
+    private CatalogDbClient catalogDbClient;
+
+    @InjectMocks
+    private OrchestrationStatusValidator validator;
+
+    @Test
+    public void skipValidationTest() {
+        BuildingBlockDetail bbDetail = new BuildingBlockDetail();
+        bbDetail.setBuildingBlockName("customBB");
+        bbDetail.setResourceType(ResourceType.NO_VALIDATE);
+        bbDetail.setTargetAction(OrchestrationAction.CUSTOM);
+        when(catalogDbClient.getBuildingBlockDetail("customBB")).thenReturn(bbDetail);
+        BuildingBlockExecution execution = new DelegateExecutionImpl(new DelegateExecutionFake());
+        execution.setVariable("flowToBeCalled", "customBB");
+        execution.setVariable("aLaCarte", false);
+        validator.validateOrchestrationStatus(execution);
+
+
+        assertThat(execution.getVariable("orchestrationStatusValidationResult"),
+                equalTo(OrchestrationStatusValidationDirective.VALIDATION_SKIPPED));
+    }
+
 }