abstract class MockRestResponseCreators
Static factory methods for obtaining a ResponseCreator instance.
Eclipse users: consider adding this class as a Java editor favorite. To navigate, open the Preferences and type "favorites".
Author
Rossen Stoyanchev
Since
3.2
MockRestResponseCreators()
Static factory methods for obtaining a ResponseCreator instance. Eclipse users: consider adding this class as a Java editor favorite. To navigate, open the Preferences and type "favorites". |
open static fun withBadRequest(): DefaultResponseCreator
|
|
open static fun withCreatedEntity(location: URI): DefaultResponseCreator
|
|
open static fun withNoContent(): DefaultResponseCreator
|
|
open static fun withServerError(): DefaultResponseCreator
|
|
open static fun withStatus(status: HttpStatus): DefaultResponseCreator
|
|
open static fun withSuccess(): DefaultResponseCreator
open static fun withSuccess(body: String, contentType: MediaType): DefaultResponseCreator
open static fun withSuccess(body: ByteArray, contentType: MediaType): DefaultResponseCreator
open static fun withSuccess(body: Resource, contentType: MediaType): DefaultResponseCreator
|
|
open static fun withUnauthorizedRequest(): DefaultResponseCreator
|