summaryrefslogtreecommitdiffstats
path: root/bpmn/MSORESTClient/src/test/java/org/openecomp/mso/rest/RESTConfigESTest.java
blob: 0a46cebf29907597a5fffbb7673ff820aeb86f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
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);
  }
}