From 24e69e51144bd265f740622f4bd4a2df9cfb65f4 Mon Sep 17 00:00:00 2001 From: AS00465059 Date: Thu, 22 Mar 2018 10:15:04 +0530 Subject: Adding Junit Addinj Junit for: 1.HttpHeader.java 2.RESTClient.java 3.RESTConfig.java 4.RESTException.java Sonar Link: https://sonar.onap.org/code?id=org.onap.so%3Aso&selected=org.onap.so%3AMSORESTClient%3Asrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fmso%2Frest Change-Id: I4a10acfab01774ae3a8af9975a27421eb29a638c Issue-ID: SO-518 Signed-off-by: AS00465059 --- .../org/openecomp/mso/rest/HttpHeaderTest.java | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/HttpHeaderTest.java (limited to 'bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/HttpHeaderTest.java') diff --git a/bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/HttpHeaderTest.java b/bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/HttpHeaderTest.java new file mode 100644 index 0000000000..29b7e15364 --- /dev/null +++ b/bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/HttpHeaderTest.java @@ -0,0 +1,34 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : SO +* ================================================================================ +* Copyright 2018 TechMahindra +*================================================================================= +* 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.rest; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; + +public class HttpHeaderTest { + + @Test + public void test() { + HttpHeader hth= new HttpHeader("name", "value"); + assertEquals("name", hth.getName()); + assertEquals("value", hth.getValue()); + } +} -- cgit 1.2.3-korg