[MSO-8] Update the maven dependency
[so.git] / bpmn / MSORESTClient / src / test / java / org / openecomp / mso / rest / RESTConfigESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 11:47:42 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
31 import org.evosuite.runtime.EvoRunner;
32 import org.evosuite.runtime.EvoRunnerParameters;
33 import org.junit.runner.RunWith;
34
35 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
36 public class RESTConfigESTest extends RESTConfigESTestscaffolding {
37
38   @Test(timeout = 4000)
39   public void test00()  throws Throwable  {
40       RESTConfig rESTConfig0 = new RESTConfig((String) null, "", (-3449));
41       String string0 = rESTConfig0.getURL();
42       assertEquals(-3449, rESTConfig0.getProxyPort());
43       assertNull(string0);
44       assertFalse(rESTConfig0.trustAllCerts());
45   }
46
47   @Test(timeout = 4000)
48   public void test01()  throws Throwable  {
49       RESTConfig rESTConfig0 = new RESTConfig(";A,GC~!-_.>+R=>rIO", "", (-3449), false);
50       String string0 = rESTConfig0.getURL();
51       assertEquals("", rESTConfig0.getProxyHost());
52       assertEquals(-3449, rESTConfig0.getProxyPort());
53       assertFalse(rESTConfig0.trustAllCerts());
54       assertEquals(";A,GC~!-_.>+R=>rIO", string0);
55   }
56
57   @Test(timeout = 4000)
58   public void test02()  throws Throwable  {
59       RESTConfig rESTConfig0 = new RESTConfig("", "", 0);
60       int int0 = rESTConfig0.getProxyPort();
61       assertFalse(rESTConfig0.trustAllCerts());
62       assertEquals(0, int0);
63   }
64
65   @Test(timeout = 4000)
66   public void test03()  throws Throwable  {
67       RESTConfig rESTConfig0 = new RESTConfig((String) null);
68       int int0 = rESTConfig0.getProxyPort();
69       assertEquals((-1), int0);
70       assertFalse(rESTConfig0.trustAllCerts());
71   }
72
73   @Test(timeout = 4000)
74   public void test04()  throws Throwable  {
75       RESTConfig rESTConfig0 = new RESTConfig((String) null, "zZu8", (-1933), true);
76       String string0 = rESTConfig0.getProxyHost();
77       assertEquals(-1933, rESTConfig0.getProxyPort());
78       assertTrue(rESTConfig0.trustAllCerts());
79       assertNotNull(string0);
80   }
81
82   @Test(timeout = 4000)
83   public void test05()  throws Throwable  {
84       RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true);
85       boolean boolean0 = rESTConfig0.trustAllCerts();
86       assertTrue(boolean0);
87       assertEquals(2708, rESTConfig0.getProxyPort());
88   }
89
90   @Test(timeout = 4000)
91   public void test06()  throws Throwable  {
92       RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true);
93       rESTConfig0.getURL();
94       assertTrue(rESTConfig0.trustAllCerts());
95       assertEquals(2708, rESTConfig0.getProxyPort());
96   }
97
98   @Test(timeout = 4000)
99   public void test07()  throws Throwable  {
100       RESTConfig rESTConfig0 = new RESTConfig("", true);
101       String string0 = rESTConfig0.getProxyHost();
102       assertTrue(rESTConfig0.trustAllCerts());
103       assertNull(string0);
104       assertEquals(-1, rESTConfig0.getProxyPort());
105   }
106
107   @Test(timeout = 4000)
108   public void test08()  throws Throwable  {
109       RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true);
110       int int0 = rESTConfig0.getProxyPort();
111       assertEquals(2708, int0);
112       assertTrue(rESTConfig0.trustAllCerts());
113   }
114
115   @Test(timeout = 4000)
116   public void test09()  throws Throwable  {
117       RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true);
118       rESTConfig0.getProxyHost();
119       assertEquals(2708, rESTConfig0.getProxyPort());
120       assertTrue(rESTConfig0.trustAllCerts());
121   }
122
123   @Test(timeout = 4000)
124   public void test10()  throws Throwable  {
125       RESTConfig rESTConfig0 = new RESTConfig("");
126       boolean boolean0 = rESTConfig0.trustAllCerts();
127       assertEquals(-1, rESTConfig0.getProxyPort());
128       assertFalse(boolean0);
129   }
130 }