A C G H I R W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- Assertions - Class in com.github.ngeor.yak4j
-
Main entry point for the custom assertions of this package.
- assertThat(RequestEntity<T>) - Static method in class com.github.ngeor.yak4j.Assertions
-
Starts building assertions for the given request entity.
- assertThat(ResponseEntity<T>) - Static method in class com.github.ngeor.yak4j.Assertions
-
Starts building assertions for the given response entity.
- assertThat(ResultActions) - Static method in class com.github.ngeor.yak4j.Assertions
-
Starts building assertions for the given result actions.
C
- com.github.ngeor.yak4j - package com.github.ngeor.yak4j
- containsValidationErrorsExactly(InvalidFieldExpectation...) - Method in class com.github.ngeor.yak4j.ResultActionsAssert
-
Checks that the MVC response contains the given validation errors and only these.
G
- getCode() - Method in class com.github.ngeor.yak4j.InvalidFieldExpectation
- getField() - Method in class com.github.ngeor.yak4j.InvalidFieldExpectation
H
- hasAcceptHeader(MediaType) - Method in class com.github.ngeor.yak4j.RequestEntityAssert
-
Verifies that the request entity's actual Accept header is equal to the given one.
- hasAuthorizationHeader(String) - Method in class com.github.ngeor.yak4j.RequestEntityAssert
-
Verifies that the request entity's Authorization header is equal to the given one.
- hasBody(Consumer<T>) - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
-
Verifies that the response entity contains a body that satisfies the given requirements.
- hasBody(T) - Method in class com.github.ngeor.yak4j.RequestEntityAssert
-
Verifies that the request entity's actual body is equal to the given one.
- hasBody(T) - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
-
Verifies that the response contains the given object as body.
- hasContentTypeHeader(MediaType) - Method in class com.github.ngeor.yak4j.RequestEntityAssert
-
Verifies that the request entity's Content-Type header is equal to the given one.
- hasJsonAcceptAndContentTypeHeaders() - Method in class com.github.ngeor.yak4j.RequestEntityAssert
-
Verifies that the request entity's Accept and and Content-Type headers are both equal to
application/json. - hasJsonAcceptHeader() - Method in class com.github.ngeor.yak4j.RequestEntityAssert
-
Verifies that the request entity's Accept header is equal to
application/json. - hasJsonContentTypeHeader() - Method in class com.github.ngeor.yak4j.RequestEntityAssert
-
Verifies that the request entity's Content-Type header is equal to
application/json. - hasMethod(HttpMethod) - Method in class com.github.ngeor.yak4j.RequestEntityAssert
-
Verifies that the request entity's actual HTTP method is equal to the given one.
- hasNotNullBody() - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
-
Verifies that the body of the response entity is not null.
- hasStatus(HttpStatus) - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
-
Verifies that the response has the given HTTP status code.
- hasStatus(HttpStatus) - Method in class com.github.ngeor.yak4j.ResultActionsAssert
- hasUrl(String) - Method in class com.github.ngeor.yak4j.RequestEntityAssert
-
Verifies that the request entity's actual url is equal to the given one.
- hasUrl(URI) - Method in class com.github.ngeor.yak4j.RequestEntityAssert
-
Verifies that the request entity's actual url is equal to the given one.
I
- invalidField(String) - Static method in class com.github.ngeor.yak4j.InvalidFieldExpectationBuilder
-
Creates a new builder for an
InvalidFieldExpectation. - InvalidFieldExpectation - Class in com.github.ngeor.yak4j
-
An expectation about an invalid field.
- InvalidFieldExpectationBuilder - Class in com.github.ngeor.yak4j
-
Builds an
InvalidFieldExpectation. - isBadRequest() - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
- isBadRequest() - Method in class com.github.ngeor.yak4j.ResultActionsAssert
- isBadRequest(InvalidFieldExpectation...) - Method in class com.github.ngeor.yak4j.ResultActionsAssert
- isConflict() - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
- isConflict() - Method in class com.github.ngeor.yak4j.ResultActionsAssert
- isCreated() - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
- isCreated() - Method in class com.github.ngeor.yak4j.ResultActionsAssert
- isForbidden() - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
- isForbidden() - Method in class com.github.ngeor.yak4j.ResultActionsAssert
- isInternalServerError() - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
- isInternalServerError() - Method in class com.github.ngeor.yak4j.ResultActionsAssert
- isNotFound() - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
- isNotFound() - Method in class com.github.ngeor.yak4j.ResultActionsAssert
- isOk() - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
- isOk() - Method in class com.github.ngeor.yak4j.ResultActionsAssert
- isUnauthorized() - Method in class com.github.ngeor.yak4j.ResponseEntityAssert
- isUnauthorized() - Method in class com.github.ngeor.yak4j.ResultActionsAssert
R
- RequestEntityAssert<T> - Class in com.github.ngeor.yak4j
-
Assertions for
RequestEntity. - resolvedExceptionIsInstanceOf(Class<? extends Exception>) - Method in class com.github.ngeor.yak4j.ResultActionsAssert
-
Checks that the result has a resolved exception of the given class.
- ResponseEntityAssert<T> - Class in com.github.ngeor.yak4j
-
Assertion DSL for
ResponseEntity. - ResultActionsAssert - Class in com.github.ngeor.yak4j
-
Assertion DSL for
ResultActions.
W
- withCode(String) - Method in class com.github.ngeor.yak4j.InvalidFieldExpectationBuilder
All Classes All Packages