Initial OpenECOMP MSO commit
[so.git] / bpmn / MSORESTClient / src / test / java / org / openecomp / mso / rest / HttpHeaderESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 11:47:07 GMT 2016
4  */
5
6 package org.openecomp.mso.rest;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
11
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.evosuite.runtime.PrivateAccess;
15 import org.junit.runner.RunWith;
16
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
18 public class HttpHeaderESTest extends HttpHeaderESTestscaffolding {
19
20   @Test(timeout = 4000)
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());
26   }
27
28   @Test(timeout = 4000)
29   public void test1()  throws Throwable  {
30       HttpHeader httpHeader0 = new HttpHeader("", "");
31       String string0 = httpHeader0.getValue();
32       assertEquals("", string0);
33   }
34
35   @Test(timeout = 4000)
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();
40       assertNull(string0);
41   }
42
43   @Test(timeout = 4000)
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);
49   }
50
51   @Test(timeout = 4000)
52   public void test4()  throws Throwable  {
53       HttpHeader httpHeader0 = null;
54       try {
55         httpHeader0 = new HttpHeader((String) null, (String) null);
56         fail("Expecting exception: IllegalArgumentException");
57       
58       } catch(IllegalArgumentException e) {
59          //
60          // Name may not be null.
61          //
62          verifyException("org.openecomp.mso.rest.HttpHeader", e);
63       }
64   }
65
66   @Test(timeout = 4000)
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);
71   }
72
73   @Test(timeout = 4000)
74   public void test6()  throws Throwable  {
75       HttpHeader httpHeader0 = new HttpHeader("|SJ`pSz:BCB1o8~", (String) null);
76       String string0 = httpHeader0.getValue();
77       assertNull(string0);
78   }
79 }