//ignore\r
}\r
}\r
+ \r
+ @Test\r
+ //@Ignore\r
+ public void sendSyncError() {\r
\r
+ println "************ sendSyncError ************* "\r
+ \r
+ ExecutionEntity mockExecution = setupMock()\r
+ when(mockExecution.getVariable("isDebugLogEnabled")).thenReturn("true")\r
+ when(mockExecution.getVariable("isAsyncProcess")).thenReturn(true)\r
+ when(mockExecution.getVariable("mso-request-id")).thenReturn("e8ebf6a0-f8ea-4dc0-8b99-fe98a87722d6")\r
+ when(mockExecution.getVariable("serviceInstanceId")).thenReturn("f70e927b-6087-4974-9ef8-c5e4d5847ca4")\r
+ try{\r
+ CreateNetworkInstance CreateNetworkInstance = new CreateNetworkInstance()\r
+ CreateNetworkInstance.sendSyncError(mockExecution)\r
+\r
+ verify(mockExecution).setVariable("prefix", Prefix)\r
+ verify(mockExecution).setVariable("CreateNetworkInstanceResponseCode", "500")\r
+ }catch(Exception e){\r
+ //ignore\r
+ }\r
+ }\r
+ \r
private ExecutionEntity setupMock() {\r
\r
ProcessDefinition mockProcessDefinition = mock(ProcessDefinition.class)\r