Skip to main content
Administrator Guide
Last Updated: 2023-06-23
Reference: AUnit Test Actions

Reference: AUnit Test Actions

Actions
Description
Example
continue_to_next
Continues the AUnit test on the next element in your assembly.
return new StandardAction(Action.Type.continue_to_next);
invoke
Invokes the endpoint specified by the out-transport of your assembly.
return new StandardAction(Action.Type.invoke);
mock
Simulates a response message returned by the out-transport by specifying an input file containing the response message.
return new StandardAction(Action.Type.mock);
mock_exception
Simulates an exception thrown by the out-transport by specifying an instance of this class:
com.capeclear.capeconnect.transport.BadRequestException(String msg)
new StandardAction(Action.Type.mock_exception, new BadRequestException("Include message here..."));
terminate
Terminates the test.
return new StandardAction(Action.Type.terminate);