2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 11:47:07 GMT 2016
7 * ============LICENSE_START=======================================================
9 * ================================================================================
10 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
11 * ================================================================================
12 * Licensed under the Apache License, Version 2.0 (the "License");
13 * you may not use this file except in compliance with the License.
14 * You may obtain a copy of the License at
16 * http://www.apache.org/licenses/LICENSE-2.0
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS,
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
23 * ============LICENSE_END=========================================================
26 package org.openecomp.mso.rest;
28 import org.junit.Test;
29 import static org.junit.Assert.*;
30 import static org.evosuite.runtime.EvoAssertions.*;
32 import org.evosuite.runtime.EvoRunner;
33 import org.evosuite.runtime.EvoRunnerParameters;
34 import org.evosuite.runtime.PrivateAccess;
35 import org.junit.runner.RunWith;
37 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
38 public class HttpHeaderESTest extends HttpHeaderESTestscaffolding {
41 public void test0() throws Throwable {
42 HttpHeader httpHeader0 = new HttpHeader("Fw", "WD#>QF/v6_|_A");
43 String string0 = httpHeader0.getValue();
44 assertEquals("WD#>QF/v6_|_A", string0);
45 assertEquals("Fw", httpHeader0.getName());
49 public void test1() throws Throwable {
50 HttpHeader httpHeader0 = new HttpHeader("", "");
51 String string0 = httpHeader0.getValue();
52 assertEquals("", string0);
56 public void test2() throws Throwable {
57 HttpHeader httpHeader0 = new HttpHeader("Nae may no be null.", "Nae may no be null.");
58 PrivateAccess.setVariable((Class<HttpHeader>) HttpHeader.class, httpHeader0, "name", (Object) null);
59 String string0 = httpHeader0.getName();
64 public void test3() throws Throwable {
65 HttpHeader httpHeader0 = new HttpHeader("", "EIqJp");
66 String string0 = httpHeader0.getName();
67 assertEquals("EIqJp", httpHeader0.getValue());
68 assertEquals("", string0);
72 public void test4() throws Throwable {
73 HttpHeader httpHeader0 = null;
75 httpHeader0 = new HttpHeader((String) null, (String) null);
76 fail("Expecting exception: IllegalArgumentException");
78 } catch(IllegalArgumentException e) {
80 // Name may not be null.
82 verifyException("org.openecomp.mso.rest.HttpHeader", e);
87 public void test5() throws Throwable {
88 HttpHeader httpHeader0 = new HttpHeader("Nae may no be null.", "Nae may no be null.");
89 String string0 = httpHeader0.getName();
90 assertEquals("Nae may no be null.", string0);
94 public void test6() throws Throwable {
95 HttpHeader httpHeader0 = new HttpHeader("|SJ`pSz:BCB1o8~", (String) null);
96 String string0 = httpHeader0.getValue();