2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 09:16:12 GMT 2016
6 package org.openecomp.mso.adapters.tenantrest;
9 import static org.junit.Assert.*;
11 import java.util.HashMap;
13 import org.evosuite.runtime.EvoRunner;
14 import org.evosuite.runtime.EvoRunnerParameters;
15 import org.junit.runner.RunWith;
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
18 public class QueryTenantResponseESTest extends QueryTenantResponseESTestscaffolding {
21 public void test0() throws Throwable {
22 QueryTenantResponse queryTenantResponse0 = new QueryTenantResponse();
23 String string0 = queryTenantResponse0.getTenantName();
28 public void test1() throws Throwable {
29 QueryTenantResponse queryTenantResponse0 = new QueryTenantResponse("", "jaxb.formatted.output", (Map<String, String>) null);
30 String string0 = queryTenantResponse0.getTenantName();
31 assertEquals("jaxb.formatted.output", string0);
32 assertEquals("", queryTenantResponse0.getTenantId());
36 public void test2() throws Throwable {
37 HashMap<String, String> hashMap0 = new HashMap<String, String>();
38 QueryTenantResponse queryTenantResponse0 = new QueryTenantResponse("/d/SGl|KH4#n", "", (Map<String, String>) hashMap0);
39 String string0 = queryTenantResponse0.getTenantId();
40 assertEquals("", queryTenantResponse0.getTenantName());
41 assertEquals("/d/SGl|KH4#n", string0);
45 public void test3() throws Throwable {
46 HashMap<String, String> hashMap0 = new HashMap<String, String>();
47 QueryTenantResponse queryTenantResponse0 = new QueryTenantResponse(":!JHcoDwU", ":!JHcoDwU", (Map<String, String>) hashMap0);
48 Map<String, String> map0 = queryTenantResponse0.getMetadata();
49 assertTrue(map0.isEmpty());
53 public void test4() throws Throwable {
54 QueryTenantResponse queryTenantResponse0 = new QueryTenantResponse();
55 HashMap<String, String> hashMap0 = new HashMap<String, String>();
56 hashMap0.put("3Lk\"uS,GJ", "3Lk\"uS,GJ");
57 queryTenantResponse0.setMetadata(hashMap0);
58 Map<String, String> map0 = queryTenantResponse0.getMetadata();
59 assertEquals(1, map0.size());
63 public void test5() throws Throwable {
64 HashMap<String, String> hashMap0 = new HashMap<String, String>();
65 QueryTenantResponse queryTenantResponse0 = new QueryTenantResponse("b", "", (Map<String, String>) hashMap0);
66 String string0 = queryTenantResponse0.getTenantName();
67 assertEquals("", string0);
68 assertEquals("b", queryTenantResponse0.getTenantId());
72 public void test6() throws Throwable {
73 QueryTenantResponse queryTenantResponse0 = new QueryTenantResponse();
74 String string0 = queryTenantResponse0.getTenantId();
79 public void test7() throws Throwable {
80 QueryTenantResponse queryTenantResponse0 = new QueryTenantResponse();
81 Map<String, String> map0 = queryTenantResponse0.getMetadata();
86 public void test8() throws Throwable {
87 QueryTenantResponse queryTenantResponse0 = new QueryTenantResponse();
88 queryTenantResponse0.setTenantName("hKe?S+T{hz:~0");
89 assertEquals("hKe?S+T{hz:~0", queryTenantResponse0.getTenantName());
93 public void test9() throws Throwable {
94 QueryTenantResponse queryTenantResponse0 = new QueryTenantResponse();
95 queryTenantResponse0.setTenantId("");
96 String string0 = queryTenantResponse0.getTenantId();
97 assertEquals("", string0);