2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 11:47:42 GMT 2016
7 * ============LICENSE_START=======================================================
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
16 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
26 package org.openecomp.mso.rest;
28 import org.junit.Test;
29 import static org.junit.Assert.*;
31 import org.evosuite.runtime.EvoRunner;
32 import org.evosuite.runtime.EvoRunnerParameters;
33 import org.junit.runner.RunWith;
35 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
36 public class RESTConfigESTest extends RESTConfigESTestscaffolding {
39 public void test00() throws Throwable {
40 RESTConfig rESTConfig0 = new RESTConfig((String) null, "", (-3449));
41 String string0 = rESTConfig0.getURL();
42 assertEquals(-3449, rESTConfig0.getProxyPort());
44 assertFalse(rESTConfig0.trustAllCerts());
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);
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);
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());
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);
83 public void test05() throws Throwable {
84 RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true);
85 boolean boolean0 = rESTConfig0.trustAllCerts();
87 assertEquals(2708, rESTConfig0.getProxyPort());
91 public void test06() throws Throwable {
92 RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true);
94 assertTrue(rESTConfig0.trustAllCerts());
95 assertEquals(2708, rESTConfig0.getProxyPort());
99 public void test07() throws Throwable {
100 RESTConfig rESTConfig0 = new RESTConfig("", true);
101 String string0 = rESTConfig0.getProxyHost();
102 assertTrue(rESTConfig0.trustAllCerts());
104 assertEquals(-1, rESTConfig0.getProxyPort());
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());
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());
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);