2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 11:47:07 GMT 2016
6 package org.openecomp.mso.rest;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.evosuite.runtime.PrivateAccess;
15 import org.junit.runner.RunWith;
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
18 public class HttpHeaderESTest extends HttpHeaderESTestscaffolding {
21 public void test0() throws Throwable {
22 HttpHeader httpHeader0 = new HttpHeader("Fw", "WD#>QF/v6_|_A");
23 String string0 = httpHeader0.getValue();
24 assertEquals("WD#>QF/v6_|_A", string0);
25 assertEquals("Fw", httpHeader0.getName());
29 public void test1() throws Throwable {
30 HttpHeader httpHeader0 = new HttpHeader("", "");
31 String string0 = httpHeader0.getValue();
32 assertEquals("", string0);
36 public void test2() throws Throwable {
37 HttpHeader httpHeader0 = new HttpHeader("Nae may no be null.", "Nae may no be null.");
38 PrivateAccess.setVariable((Class<HttpHeader>) HttpHeader.class, httpHeader0, "name", (Object) null);
39 String string0 = httpHeader0.getName();
44 public void test3() throws Throwable {
45 HttpHeader httpHeader0 = new HttpHeader("", "EIqJp");
46 String string0 = httpHeader0.getName();
47 assertEquals("EIqJp", httpHeader0.getValue());
48 assertEquals("", string0);
52 public void test4() throws Throwable {
53 HttpHeader httpHeader0 = null;
55 httpHeader0 = new HttpHeader((String) null, (String) null);
56 fail("Expecting exception: IllegalArgumentException");
58 } catch(IllegalArgumentException e) {
60 // Name may not be null.
62 verifyException("org.openecomp.mso.rest.HttpHeader", e);
67 public void test5() throws Throwable {
68 HttpHeader httpHeader0 = new HttpHeader("Nae may no be null.", "Nae may no be null.");
69 String string0 = httpHeader0.getName();
70 assertEquals("Nae may no be null.", string0);
74 public void test6() throws Throwable {
75 HttpHeader httpHeader0 = new HttpHeader("|SJ`pSz:BCB1o8~", (String) null);
76 String string0 = httpHeader0.getValue();