Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class StatusResultMatchers

  1. Object
  2. StatusResultMatchers
Expectations of the response status, from MockMvcResultMatchers.status.

Methods

public ResultMatcher is(int status)Exactly this status.
public ResultMatcher is1xxInformational()
public ResultMatcher is2xxSuccessful()
public ResultMatcher is3xxRedirection()
public ResultMatcher is4xxClientError()
public ResultMatcher is5xxServerError()
public ResultMatcher isOk()
public ResultMatcher isCreated()
public ResultMatcher isAccepted()
public ResultMatcher isNoContent()
public ResultMatcher isPartialContent()
public ResultMatcher isMovedPermanently()
public ResultMatcher isFound()
public ResultMatcher isSeeOther()
public ResultMatcher isNotModified()
public ResultMatcher isTemporaryRedirect()
public ResultMatcher isPermanentRedirect()
public ResultMatcher isBadRequest()
public ResultMatcher isUnauthorized()
public ResultMatcher isForbidden()
public ResultMatcher isNotFound()
public ResultMatcher isMethodNotAllowed()
public ResultMatcher isNotAcceptable()
public ResultMatcher isConflict()
public ResultMatcher isGone()
public ResultMatcher isPayloadTooLarge()
public ResultMatcher isUnsupportedMediaType()
public ResultMatcher isUnprocessableEntity()
public ResultMatcher isTooManyRequests()
public ResultMatcher isInternalServerError()
public ResultMatcher isNotImplemented()
public ResultMatcher isServiceUnavailable()

Inherited methods

Method details

is

public ResultMatcher is(int status)
Exactly this status.

is1xxInformational

public ResultMatcher is1xxInformational()

is2xxSuccessful

public ResultMatcher is2xxSuccessful()

is3xxRedirection

public ResultMatcher is3xxRedirection()

is4xxClientError

public ResultMatcher is4xxClientError()

is5xxServerError

public ResultMatcher is5xxServerError()

isOk

public ResultMatcher isOk()

isCreated

public ResultMatcher isCreated()

isAccepted

public ResultMatcher isAccepted()

isNoContent

public ResultMatcher isNoContent()

isPartialContent

public ResultMatcher isPartialContent()

isMovedPermanently

public ResultMatcher isMovedPermanently()

isFound

public ResultMatcher isFound()

isSeeOther

public ResultMatcher isSeeOther()

isNotModified

public ResultMatcher isNotModified()

isTemporaryRedirect

public ResultMatcher isTemporaryRedirect()

isPermanentRedirect

public ResultMatcher isPermanentRedirect()

isBadRequest

public ResultMatcher isBadRequest()

isUnauthorized

public ResultMatcher isUnauthorized()

isForbidden

public ResultMatcher isForbidden()

isNotFound

public ResultMatcher isNotFound()

isMethodNotAllowed

public ResultMatcher isMethodNotAllowed()

isNotAcceptable

public ResultMatcher isNotAcceptable()

isConflict

public ResultMatcher isConflict()

isGone

public ResultMatcher isGone()

isPayloadTooLarge

public ResultMatcher isPayloadTooLarge()

isUnsupportedMediaType

public ResultMatcher isUnsupportedMediaType()

isUnprocessableEntity

public ResultMatcher isUnprocessableEntity()

isTooManyRequests

public ResultMatcher isTooManyRequests()

isInternalServerError

public ResultMatcher isInternalServerError()

isNotImplemented

public ResultMatcher isNotImplemented()

isServiceUnavailable

public ResultMatcher isServiceUnavailable()