/* * This file was automatically generated by EvoSuite * Mon Nov 14 11:47:42 GMT 2016 */ /*- * ============LICENSE_START======================================================= * OPENECOMP - MSO * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END========================================================= */ package org.openecomp.mso.rest; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) public class RESTConfigESTest extends RESTConfigESTestscaffolding { @Test(timeout = 4000) public void test00() throws Throwable { RESTConfig rESTConfig0 = new RESTConfig((String) null, "", (-3449)); String string0 = rESTConfig0.getURL(); assertEquals(-3449, rESTConfig0.getProxyPort()); assertNull(string0); assertFalse(rESTConfig0.trustAllCerts()); } @Test(timeout = 4000) public void test01() throws Throwable { RESTConfig rESTConfig0 = new RESTConfig(";A,GC~!-_.>+R=>rIO", "", (-3449), false); String string0 = rESTConfig0.getURL(); assertEquals("", rESTConfig0.getProxyHost()); assertEquals(-3449, rESTConfig0.getProxyPort()); assertFalse(rESTConfig0.trustAllCerts()); assertEquals(";A,GC~!-_.>+R=>rIO", string0); } @Test(timeout = 4000) public void test02() throws Throwable { RESTConfig rESTConfig0 = new RESTConfig("", "", 0); int int0 = rESTConfig0.getProxyPort(); assertFalse(rESTConfig0.trustAllCerts()); assertEquals(0, int0); } @Test(timeout = 4000) public void test03() throws Throwable { RESTConfig rESTConfig0 = new RESTConfig((String) null); int int0 = rESTConfig0.getProxyPort(); assertEquals((-1), int0); assertFalse(rESTConfig0.trustAllCerts()); } @Test(timeout = 4000) public void test04() throws Throwable { RESTConfig rESTConfig0 = new RESTConfig((String) null, "zZu8", (-1933), true); String string0 = rESTConfig0.getProxyHost(); assertEquals(-1933, rESTConfig0.getProxyPort()); assertTrue(rESTConfig0.trustAllCerts()); assertNotNull(string0); } @Test(timeout = 4000) public void test05() throws Throwable { RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true); boolean boolean0 = rESTConfig0.trustAllCerts(); assertTrue(boolean0); assertEquals(2708, rESTConfig0.getProxyPort()); } @Test(timeout = 4000) public void test06() throws Throwable { RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true); rESTConfig0.getURL(); assertTrue(rESTConfig0.trustAllCerts()); assertEquals(2708, rESTConfig0.getProxyPort()); } @Test(timeout = 4000) public void test07() throws Throwable { RESTConfig rESTConfig0 = new RESTConfig("", true); String string0 = rESTConfig0.getProxyHost(); assertTrue(rESTConfig0.trustAllCerts()); assertNull(string0); assertEquals(-1, rESTConfig0.getProxyPort()); } @Test(timeout = 4000) public void test08() throws Throwable { RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true); int int0 = rESTConfig0.getProxyPort(); assertEquals(2708, int0); assertTrue(rESTConfig0.trustAllCerts()); } @Test(timeout = 4000) public void test09() throws Throwable { RESTConfig rESTConfig0 = new RESTConfig("", "", 2708, true); rESTConfig0.getProxyHost(); assertEquals(2708, rESTConfig0.getProxyPort()); assertTrue(rESTConfig0.trustAllCerts()); } @Test(timeout = 4000) public void test10() throws Throwable { RESTConfig rESTConfig0 = new RESTConfig(""); boolean boolean0 = rESTConfig0.trustAllCerts(); assertEquals(-1, rESTConfig0.getProxyPort()); assertFalse(boolean0); } }