com.eclipsesource.restfuse
Class Assert

java.lang.Object
  extended by com.eclipsesource.restfuse.Assert

public final class Assert
extends java.lang.Object

The Assert class provides a set of convenience methods that ease the testing of an http response.


Method Summary
static void assertAccepted(Response response)
           
static void assertBadGateway(Response response)
           
static void assertBadRequest(Response response)
           
static void assertConflict(Response response)
           
static void assertContinue(Response response)
           
static void assertCreated(Response response)
           
static void assertExpectationFailed(Response response)
           
static void assertForbidden(Response response)
           
static void assertFound(Response response)
           
static void assertGatewayTimeout(Response response)
           
static void assertGone(Response response)
           
static void assertHTTPVersionNotSupported(Response response)
           
static void assertInternalServerError(Response response)
           
static void assertLengthRequired(Response response)
           
static void assertMethodNotAllowed(Response response)
           
static void assertMovedPermanently(Response response)
           
static void assertMultipleChoices(Response response)
           
static void assertNoContent(Response response)
           
static void assertNonAuthoritativeInformation(Response response)
           
static void assertNotAcceptable(Response response)
           
static void assertNotFound(Response response)
           
static void assertNotImplemented(Response response)
           
static void assertNotModified(Response response)
           
static void assertOk(Response response)
           
static void assertPartialContent(Response response)
           
static void assertPaymentRequired(Response response)
           
static void assertPreconditionFailed(Response response)
           
static void assertProxyAuthenticationRequired(Response response)
           
static void assertRequestedRangeNotSatisfiable(Response response)
           
static void assertRequestEntityTooLarge(Response response)
           
static void assertRequestTimeout(Response response)
           
static void assertRequestURITooLong(Response response)
           
static void assertResetContent(Response response)
           
static void assertSeeOther(Response response)
           
static void assertServiceUnavailable(Response response)
           
static void assertSwitchingProtocols(Response response)
           
static void assertTemporaryRedirected(Response response)
           
static void assertUnauthorized(Response response)
           
static void assertUnsupportedMediaType(Response response)
           
static void assertUseProxy(Response response)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertAccepted

public static void assertAccepted(Response response)

assertBadGateway

public static void assertBadGateway(Response response)

assertBadRequest

public static void assertBadRequest(Response response)

assertConflict

public static void assertConflict(Response response)

assertContinue

public static void assertContinue(Response response)

assertCreated

public static void assertCreated(Response response)

assertExpectationFailed

public static void assertExpectationFailed(Response response)

assertForbidden

public static void assertForbidden(Response response)

assertFound

public static void assertFound(Response response)

assertGatewayTimeout

public static void assertGatewayTimeout(Response response)

assertGone

public static void assertGone(Response response)

assertHTTPVersionNotSupported

public static void assertHTTPVersionNotSupported(Response response)

assertInternalServerError

public static void assertInternalServerError(Response response)

assertLengthRequired

public static void assertLengthRequired(Response response)

assertMethodNotAllowed

public static void assertMethodNotAllowed(Response response)

assertMovedPermanently

public static void assertMovedPermanently(Response response)

assertMultipleChoices

public static void assertMultipleChoices(Response response)

assertNoContent

public static void assertNoContent(Response response)

assertNonAuthoritativeInformation

public static void assertNonAuthoritativeInformation(Response response)

assertNotAcceptable

public static void assertNotAcceptable(Response response)

assertNotFound

public static void assertNotFound(Response response)

assertNotImplemented

public static void assertNotImplemented(Response response)

assertNotModified

public static void assertNotModified(Response response)

assertOk

public static void assertOk(Response response)

assertPartialContent

public static void assertPartialContent(Response response)

assertPaymentRequired

public static void assertPaymentRequired(Response response)

assertPreconditionFailed

public static void assertPreconditionFailed(Response response)

assertProxyAuthenticationRequired

public static void assertProxyAuthenticationRequired(Response response)

assertRequestedRangeNotSatisfiable

public static void assertRequestedRangeNotSatisfiable(Response response)

assertRequestEntityTooLarge

public static void assertRequestEntityTooLarge(Response response)

assertRequestTimeout

public static void assertRequestTimeout(Response response)

assertRequestURITooLong

public static void assertRequestURITooLong(Response response)

assertResetContent

public static void assertResetContent(Response response)

assertSeeOther

public static void assertSeeOther(Response response)

assertServiceUnavailable

public static void assertServiceUnavailable(Response response)

assertSwitchingProtocols

public static void assertSwitchingProtocols(Response response)

assertTemporaryRedirected

public static void assertTemporaryRedirected(Response response)

assertUnauthorized

public static void assertUnauthorized(Response response)

assertUnsupportedMediaType

public static void assertUnsupportedMediaType(Response response)

assertUseProxy

public static void assertUseProxy(Response response)