diff options
author | ChrisC <cc697w@intl.att.com> | 2017-01-31 11:40:03 +0100 |
---|---|---|
committer | ChrisC <cc697w@intl.att.com> | 2017-01-31 12:59:33 +0100 |
commit | 025301d08b061482c1f046d562bf017c8cbcfe8d (patch) | |
tree | 68a2a549736c9bf0f7cd4e71c76e40ef7e2606f2 /bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/RESTConfigESTest.java | |
parent | 2754ad52f833278a5c925bd788a16d1dce16a598 (diff) |
Initial OpenECOMP MSO commit
Change-Id: Ia6a7574859480717402cc2f22534d9973a78fa6d
Signed-off-by: ChrisC <cc697w@intl.att.com>
Diffstat (limited to 'bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/RESTConfigESTest.java')
-rw-r--r-- | bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/RESTConfigESTest.java | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/RESTConfigESTest.java b/bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/RESTConfigESTest.java new file mode 100644 index 0000000000..0a46cebf29 --- /dev/null +++ b/bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/RESTConfigESTest.java @@ -0,0 +1,110 @@ +/* + * This file was automatically generated by EvoSuite + * Mon Nov 14 11:47:42 GMT 2016 + */ + +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); + } +} |