Forum Discussion
mwthoreso
4 years agoNew Contributor
Super janky work around (this is not the proper way) - I'd really still like to know the official way to do this
if ( userAri == "text1" )
{
mockOperation.setDefaultResponse("Success")
}
else if ( requestBodyString.includes('text2') )
{
mockOperation.setDefaultResponse("Conflict")
} else
{
mockOperation.setDefaultResponse("Error")
}
log.info(mockOperation.defaultResponse)
Related Content
- 9 years ago
Recent Discussions
- 22 days ago