Annotation Type ExpectedResponses


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface ExpectedResponses
    Annotation to annotate list of HTTP status codes that are expected in response from a REST endpoint.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int[] value
      The status code that will trigger that an error of type errorType should be returned.
    • Element Detail

      • value

        int[] value
        The status code that will trigger that an error of type errorType should be returned.
        Returns:
        The status code that will trigger than an error of type errorType should be returned.