Class RestActionTestCase


  • public abstract class RestActionTestCase
    extends ESTestCase
    A common base class for Rest*ActionTests. Provides access to a RestController that can be used to register individual REST actions, and test request handling.
    • Constructor Detail

      • RestActionTestCase

        public RestActionTestCase()
    • Method Detail

      • setUpController

        public void setUpController()
      • controller

        protected RestController controller()
        A test RestController. This controller can be used to register and delegate to handlers, but uses a mock client and cannot carry out the full request.
      • dispatchRequest

        protected void dispatchRequest​(RestRequest request)
        Sends the given request to the test controller in controller().