Initial OpenECOMP MSO commit
[so.git] / bpmn / MSOURN-plugin / src / test / java / com / att / camunda / bpm / plugin / urnmap / resources / ProcessInstanceResourceESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 13:45:16 GMT 2016
4  */
5
6 package com.att.camunda.bpm.plugin.urnmap.resources;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
11 import com.att.camunda.bpm.plugin.urnmap.db.URNData;
12
13 import java.util.NoSuchElementException;
14 import org.evosuite.runtime.EvoRunner;
15 import org.evosuite.runtime.EvoRunnerParameters;
16 import org.junit.runner.RunWith;
17
18 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
19 public class ProcessInstanceResourceESTest extends ProcessInstanceResourceESTestscaffolding {
20
21   @Test(timeout = 4000)
22   public void test0()  throws Throwable  {
23       ProcessInstanceResource processInstanceResource0 = new ProcessInstanceResource((String) null);
24       // Undeclared exception!
25       try { 
26         processInstanceResource0.getUrnDataMap();
27         fail("Expecting exception: NullPointerException");
28       
29       } catch(NullPointerException e) {
30          //
31          // no message in exception (getMessage() returned null)
32          //
33          verifyException("org.camunda.bpm.cockpit.Cockpit", e);
34       }
35   }
36
37   @Test(timeout = 4000)
38   public void test1()  throws Throwable  {
39       ProcessInstanceResource processInstanceResource0 = new ProcessInstanceResource("DEUtDF$-rb|D]l9");
40       // Undeclared exception!
41       try { 
42         processInstanceResource0.insertNewRow("DEUtDF$-rb|D]l9");
43         fail("Expecting exception: NullPointerException");
44       
45       } catch(NullPointerException e) {
46          //
47          // no message in exception (getMessage() returned null)
48          //
49          verifyException("org.camunda.bpm.cockpit.Cockpit", e);
50       }
51   }
52
53   @Test(timeout = 4000)
54   public void test2()  throws Throwable  {
55       URNData uRNData0 = new URNData();
56       ProcessInstanceResource processInstanceResource0 = new ProcessInstanceResource("|");
57       // Undeclared exception!
58       try { 
59         processInstanceResource0.getPersistData(uRNData0);
60         fail("Expecting exception: NullPointerException");
61       
62       } catch(NullPointerException e) {
63          //
64          // no message in exception (getMessage() returned null)
65          //
66          verifyException("org.camunda.bpm.cockpit.Cockpit", e);
67       }
68   }
69
70   @Test(timeout = 4000)
71   public void test3()  throws Throwable  {
72       ProcessInstanceResource processInstanceResource0 = new ProcessInstanceResource("xGUKD= Ea6(aT");
73       // Undeclared exception!
74       try { 
75         processInstanceResource0.insertNewRow("xGUKD= Ea6(aT");
76         fail("Expecting exception: NoSuchElementException");
77       
78       } catch(NoSuchElementException e) {
79          //
80          // no message in exception (getMessage() returned null)
81          //
82          verifyException("java.util.StringTokenizer", e);
83       }
84   }
85 }