aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOInfrastructureBPMN/src/test/java
diff options
context:
space:
mode:
authorSangalang, Felix (fs7692) <fs7692@att.com>2018-04-02 15:32:24 -0700
committerSangalang, Felix (fs7692) <fs7692@att.com>2018-04-02 15:32:24 -0700
commitdfdc44b58b722478079cc458231558409c8d13f0 (patch)
tree2513a295bc9297fa87e19c9a01a51502ddf095e0 /bpmn/MSOInfrastructureBPMN/src/test/java
parent19cd3bc70aa4e602ec32ea86e43905b95ffd0b9f (diff)
Add junit for HeaderUtil.java
package: org.openecomp.mso.bpmn.infrastructure. workflow.serviceTask.client Issue-ID: SO-556 Change-Id: I15194cf16262e4e333dfb689930d094495bcf68b Signed-off-by: Sangalang, Felix (fs7692) <fs7692@att.com>
Diffstat (limited to 'bpmn/MSOInfrastructureBPMN/src/test/java')
-rw-r--r--bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/workflow/serviceTask/client/HeaderUtilTest.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/workflow/serviceTask/client/HeaderUtilTest.java b/bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/workflow/serviceTask/client/HeaderUtilTest.java
new file mode 100644
index 0000000000..5058bf8707
--- /dev/null
+++ b/bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/workflow/serviceTask/client/HeaderUtilTest.java
@@ -0,0 +1,35 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - SO
+ * ================================================================================
+ * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+package org.openecomp.mso.bpmn.infrastructure.workflow.serviceTask.client;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+
+public class HeaderUtilTest {
+
+ @Test
+ public void getAuthorizationTest() throws Exception {
+ String authorization = HeaderUtil.getAuthorization(HeaderUtil.USER, HeaderUtil.PASS);
+ assertEquals("Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==", authorization);
+ }
+
+
+} \ No newline at end of file