Add junit for HeaderUtil.java 83/40583/1
authorSangalang, Felix (fs7692) <fs7692@att.com>
Mon, 2 Apr 2018 22:32:24 +0000 (15:32 -0700)
committerSangalang, Felix (fs7692) <fs7692@att.com>
Mon, 2 Apr 2018 22:32:24 +0000 (15:32 -0700)
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>
bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/workflow/serviceTask/client/HeaderUtilTest.java [new file with mode: 0644]

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 (file)
index 0000000..5058bf8
--- /dev/null
@@ -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