Package com.persequor.saga.componenttest
Class HttpControllerHelper
java.lang.Object
com.persequor.saga.componenttest.HttpControllerHelper
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecuteControllerPaths(Class<?> controllerClass, VarClient client, Consumer<VarClientResponse> responseConsumer) Executes all controller paths for the given controller class.
- 
Constructor Details- 
HttpControllerHelper
 
- 
- 
Method Details- 
executeControllerPathspublic void executeControllerPaths(Class<?> controllerClass, VarClient client, Consumer<VarClientResponse> responseConsumer) Executes all controller paths for the given controller class. This is useful when you want to assert that all existing paths behave as expected, even new ones. Authentication and authorization tests are good examples of this.- Parameters:
- controllerClass- The controller class to execute
- client- The client to use for executing the controller paths
- responseConsumer- The consumer to consume each response
 
 
-