diff options
author | 2018-03-22 10:15:04 +0530 | |
---|---|---|
committer | 2018-03-22 10:15:04 +0530 | |
commit | 24e69e51144bd265f740622f4bd4a2df9cfb65f4 (patch) | |
tree | 23853f466ae827af6f9ef1d55ee2d715138fb895 /bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/HttpHeaderTest.java | |
parent | 676563e4b8b178092a63a36612711a587860f8dd (diff) |
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 <AS00465059@techmahindra.com>
Diffstat (limited to 'bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/HttpHeaderTest.java')
-rw-r--r-- | bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/HttpHeaderTest.java | 34 |
1 files changed, 34 insertions, 0 deletions
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()); + } +} |