Interface MockWoofResponse

All Superinterfaces:
MockHttpResponse
All Known Implementing Classes:
MockWoofServer.MockWoofResponseImpl

public interface MockWoofResponse extends MockHttpResponse
MockHttpResponse with additional assertions.
Author:
Daniel Sagenschneider
  • Method Details

    • assertJsonError

      void assertJsonError(Throwable failure, String... headerNameValuePairs)
      Asserts a JSON error.
      Parameters:
      failure - Cause.
      headerNameValuePairs - Expected HttpHeader name/value pairs.
    • assertJsonError

      void assertJsonError(int httpStatus, Throwable failure, String... headerNameValuePairs)
      Asserts a JSON error.
      Parameters:
      httpStatus - Expected HttpStatus.
      failure - Cause.
      headerNameValuePairs - Expected HttpHeader name/value pairs.