0a46cebf29907597a5fffbb7673ff820aeb86f61
[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 package org.openecomp.mso.rest;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10
11 import org.evosuite.runtime.EvoRunner;
12 import org.evosuite.runtime.EvoRunnerParameters;
13 import org.junit.runner.RunWith;
14
15 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
16 public class RESTConfigESTest extends RESTConfigESTestscaffolding {
17
18   @Test(timeout = 4000)
19   public void test00()  throws Throwable  {
20       RESTConfig rESTConfig0 = new RESTConfig((String) null, "", (-3449));
21       String string0 = rESTConfig0.getURL();
22       assertEquals(-3449, rESTConfig0.getProxyPort());
23       assertNull(string0);
24       assertFalse(rESTConfig0.trustAllCerts());
25   }
26
27   @Test(timeout = 4000)
28   public void test01()  throws Throwable  {
29       RESTConfig rESTConfig0 = new RESTConfig(";A,GC~!-_.>+R=>rIO", "", (-3449), false);
30       String string0 = rESTConfig0.getURL();
31       assertEquals("", rESTConfig0.getProxyHost());
32       assertEquals(-3449, rESTConfig0.getProxyPort());
33       assertFalse(rESTConfig0.trustAllCerts());
34       assertEquals(";A,GC~!-_.>+R=>rIO", string0);
35   }
36
37   @Test(timeout = 4000)
38   public void test02()  throws Throwable  {
39       RESTConfig rESTConfig0 = new RESTConfig("", "", 0);
40       int int0 = rESTConfig0.getProxyPort();
41       assertFalse(rESTConfig0.trustAllCerts());
42       assertEquals(0, int0);
43   }
44
45   @Test(timeout = 4000)
46   public void test03()  throws Throwable  {
47       RESTConfig rESTConfig0 = new RESTConfig((String) null);
48       int int0 = rESTConfig0.getProxyPort();
49       assertEquals((-1), int0);
50       assertFalse(rESTConfig0.trustAllCerts());
51   }
52
53   @Test(timeout = 4000)
54   public void test04()  throws Throwable  {
55       RESTConfig rESTConfig0 = new RESTConfig((String) null, "zZu8", (-1933), true);
56       String string0 = rESTConfig0.getProxyHost();
57       assertEquals(-1933, rESTConfig0.getProxyPort());
58       assertTrue(rESTConfig0.trustAllCerts());
59       assertNotNull(string0);
60   }
61
62   @Test(timeout = 4000)
63   public void test05()  throws Throwable  {
64       RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true);
65       boolean boolean0 = rESTConfig0.trustAllCerts();
66       assertTrue(boolean0);
67       assertEquals(2708, rESTConfig0.getProxyPort());
68   }
69
70   @Test(timeout = 4000)
71   public void test06()  throws Throwable  {
72       RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true);
73       rESTConfig0.getURL();
74       assertTrue(rESTConfig0.trustAllCerts());
75       assertEquals(2708, rESTConfig0.getProxyPort());
76   }
77
78   @Test(timeout = 4000)
79   public void test07()  throws Throwable  {
80       RESTConfig rESTConfig0 = new RESTConfig("", true);
81       String string0 = rESTConfig0.getProxyHost();
82       assertTrue(rESTConfig0.trustAllCerts());
83       assertNull(string0);
84       assertEquals(-1, rESTConfig0.getProxyPort());
85   }
86
87   @Test(timeout = 4000)
88   public void test08()  throws Throwable  {
89       RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true);
90       int int0 = rESTConfig0.getProxyPort();
91       assertEquals(2708, int0);
92       assertTrue(rESTConfig0.trustAllCerts());
93   }
94
95   @Test(timeout = 4000)
96   public void test09()  throws Throwable  {
97       RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true);
98       rESTConfig0.getProxyHost();
99       assertEquals(2708, rESTConfig0.getProxyPort());
100       assertTrue(rESTConfig0.trustAllCerts());
101   }
102
103   @Test(timeout = 4000)
104   public void test10()  throws Throwable  {
105       RESTConfig rESTConfig0 = new RESTConfig("");
106       boolean boolean0 = rESTConfig0.trustAllCerts();
107       assertEquals(-1, rESTConfig0.getProxyPort());
108       assertFalse(boolean0);
109   }
110 }