public abstract class MockRestResponseCreators extends java.lang.Object
ResponseCreator
Eclipse users: consider adding this class as a Java editor favorite. To navigate, open the Preferences and type "favorites".
MockRestResponseCreators()
static DefaultResponseCreator
withBadRequest()
withCreatedEntity(java.net.URI location)
withNoContent()
withServerError()
withStatus(HttpStatus status)
withSuccess()
withSuccess(byte[] body, MediaType contentType)
withSuccess(Resource body, MediaType contentType)
Resource
withSuccess(java.lang.String body, MediaType contentType)
withUnauthorizedRequest()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MockRestResponseCreators()
public static DefaultResponseCreator withSuccess()
public static DefaultResponseCreator withSuccess(java.lang.String body, @Nullable MediaType contentType)
body
contentType
null
public static DefaultResponseCreator withSuccess(byte[] body, @Nullable MediaType contentType)
public static DefaultResponseCreator withSuccess(Resource body, @Nullable MediaType contentType)
public static DefaultResponseCreator withCreatedEntity(java.net.URI location)
location
Location
public static DefaultResponseCreator withNoContent()
public static DefaultResponseCreator withBadRequest()
public static DefaultResponseCreator withUnauthorizedRequest()
public static DefaultResponseCreator withServerError()
public static DefaultResponseCreator withStatus(HttpStatus status)
status
Impressum und Datenschutz Copyright ©2018 eir.me