Class HttpControllerHelper

java.lang.Object
com.persequor.saga.componenttest.HttpControllerHelper

public class HttpControllerHelper extends Object
  • Constructor Details

    • HttpControllerHelper

      @Inject public HttpControllerHelper(AnnotationsHelper annotationsHelper)
  • Method Details

    • executeControllerPaths

      public 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