Merge "updated ARIA version"
[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 /*- 
7  * ============LICENSE_START======================================================= 
8  * OPENECOMP - MSO 
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 
15  * 
16  *      http://www.apache.org/licenses/LICENSE-2.0 
17  * 
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========================================================= 
24  */ 
25
26 package org.openecomp.mso.rest;
27
28 import org.junit.Test;
29 import static org.junit.Assert.*;
30 import static org.evosuite.runtime.EvoAssertions.*;
31
32 import org.evosuite.runtime.EvoRunner;
33 import org.evosuite.runtime.EvoRunnerParameters;
34 import org.evosuite.runtime.PrivateAccess;
35 import org.junit.runner.RunWith;
36
37 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
38 public class HttpHeaderESTest extends HttpHeaderESTestscaffolding {
39
40   @Test(timeout = 4000)
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());
46   }
47
48   @Test(timeout = 4000)
49   public void test1()  throws Throwable  {
50       HttpHeader httpHeader0 = new HttpHeader("", "");
51       String string0 = httpHeader0.getValue();
52       assertEquals("", string0);
53   }
54
55   @Test(timeout = 4000)
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();
60       assertNull(string0);
61   }
62
63   @Test(timeout = 4000)
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);
69   }
70
71   @Test(timeout = 4000)
72   public void test4()  throws Throwable  {
73       HttpHeader httpHeader0 = null;
74       try {
75         httpHeader0 = new HttpHeader((String) null, (String) null);
76         fail("Expecting exception: IllegalArgumentException");
77       
78       } catch(IllegalArgumentException e) {
79          //
80          // Name may not be null.
81          //
82          verifyException("org.openecomp.mso.rest.HttpHeader", e);
83       }
84   }
85
86   @Test(timeout = 4000)
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);
91   }
92
93   @Test(timeout = 4000)
94   public void test6()  throws Throwable  {
95       HttpHeader httpHeader0 = new HttpHeader("|SJ`pSz:BCB1o8~", (String) null);
96       String string0 = httpHeader0.getValue();
97       assertNull(string0);
98   }
99 }