From dfdc44b58b722478079cc458231558409c8d13f0 Mon Sep 17 00:00:00 2001 From: "Sangalang, Felix (fs7692)" Date: Mon, 2 Apr 2018 15:32:24 -0700 Subject: 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) --- .../serviceTask/client/HeaderUtilTest.java | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/workflow/serviceTask/client/HeaderUtilTest.java 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 -- cgit 1.2.3-korg