aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/tenantrest/CreateTenantErrorESTest.java
blob: 31981957f5d01461317c7c57db4d8321e5204fa7 (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
/*
 * This file was automatically generated by EvoSuite
 * Mon Nov 14 09:11:09 GMT 2016
 */

package org.openecomp.mso.adapters.tenantrest;

import org.junit.Test;
import static org.junit.Assert.*;

import org.openecomp.mso.openstack.exceptions.MsoExceptionCategory;
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 CreateTenantErrorESTest extends CreateTenantErrorESTestscaffolding {

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
      CreateTenantError createTenantError0 = new CreateTenantError("1lR", msoExceptionCategory0, true);
      Boolean boolean0 = createTenantError0.getRolledBack();
      assertTrue(boolean0);
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
      CreateTenantError createTenantError0 = new CreateTenantError("]n~ZI>O", msoExceptionCategory0, false);
      Boolean boolean0 = createTenantError0.getRolledBack();
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      CreateTenantError createTenantError0 = new CreateTenantError("1lR");
      String string0 = createTenantError0.getMessage();
      assertEquals("1lR", string0);
  }

  @Test(timeout = 4000)
  public void test3()  throws Throwable  {
      CreateTenantError createTenantError0 = new CreateTenantError("1lR");
      MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
      createTenantError0.setCategory(msoExceptionCategory0);
      MsoExceptionCategory msoExceptionCategory1 = createTenantError0.getCategory();
      assertEquals(MsoExceptionCategory.OPENSTACK, msoExceptionCategory1);
  }

  @Test(timeout = 4000)
  public void test4()  throws Throwable  {
      CreateTenantError createTenantError0 = new CreateTenantError();
      assertNull(createTenantError0.getMessage());
  }

  @Test(timeout = 4000)
  public void test5()  throws Throwable  {
      CreateTenantError createTenantError0 = new CreateTenantError("1lR");
      createTenantError0.setRolledBack((Boolean) null);
      assertNull(createTenantError0.getCategory());
  }

  @Test(timeout = 4000)
  public void test6()  throws Throwable  {
      CreateTenantError createTenantError0 = new CreateTenantError("1lR");
      Boolean boolean0 = createTenantError0.getRolledBack();
      assertNull(boolean0);
  }

  @Test(timeout = 4000)
  public void test7()  throws Throwable  {
      CreateTenantError createTenantError0 = new CreateTenantError("1lR");
      createTenantError0.getCategory();
  }

  @Test(timeout = 4000)
  public void test8()  throws Throwable  {
      MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
      CreateTenantError createTenantError0 = new CreateTenantError((String) null, msoExceptionCategory0, false);
      String string0 = createTenantError0.getMessage();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test9()  throws Throwable  {
      MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
      CreateTenantError createTenantError0 = new CreateTenantError((String) null, msoExceptionCategory0, false);
      createTenantError0.setMessage("");
      String string0 = createTenantError0.getMessage();
      assertEquals("", string0);
  }
}