Remove deprecated HttpStatus codes
See gh-33809
This commit is contained in:
@@ -255,16 +255,6 @@ public class StatusResultMatchers {
|
||||
return matcher(HttpStatus.FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.MOVED_TEMPORARILY} (302).
|
||||
* @see #isFound()
|
||||
* @deprecated in favor of {@link #isFound()}
|
||||
*/
|
||||
@Deprecated
|
||||
public ResultMatcher isMovedTemporarily() {
|
||||
return matcher(HttpStatus.MOVED_TEMPORARILY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.SEE_OTHER} (303).
|
||||
*/
|
||||
@@ -279,15 +269,6 @@ public class StatusResultMatchers {
|
||||
return matcher(HttpStatus.NOT_MODIFIED);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.USE_PROXY} (305).
|
||||
* @deprecated matching the deprecation of {@code HttpStatus.USE_PROXY}
|
||||
*/
|
||||
@Deprecated
|
||||
public ResultMatcher isUseProxy() {
|
||||
return matcher(HttpStatus.USE_PROXY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.TEMPORARY_REDIRECT} (307).
|
||||
*/
|
||||
@@ -401,16 +382,6 @@ public class StatusResultMatchers {
|
||||
return matcher(HttpStatus.PAYLOAD_TOO_LARGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.REQUEST_ENTITY_TOO_LARGE} (413).
|
||||
* @see #isPayloadTooLarge()
|
||||
* @deprecated matching the deprecation of {@code HttpStatus.REQUEST_ENTITY_TOO_LARGE}
|
||||
*/
|
||||
@Deprecated
|
||||
public ResultMatcher isRequestEntityTooLarge() {
|
||||
return matcher(HttpStatus.REQUEST_ENTITY_TOO_LARGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.REQUEST_URI_TOO_LONG} (414).
|
||||
* @since 4.1
|
||||
@@ -419,16 +390,6 @@ public class StatusResultMatchers {
|
||||
return matcher(HttpStatus.URI_TOO_LONG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.REQUEST_URI_TOO_LONG} (414).
|
||||
* @see #isUriTooLong()
|
||||
* @deprecated matching the deprecation of {@code HttpStatus.REQUEST_URI_TOO_LONG}
|
||||
*/
|
||||
@Deprecated
|
||||
public ResultMatcher isRequestUriTooLong() {
|
||||
return matcher(HttpStatus.REQUEST_URI_TOO_LONG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.UNSUPPORTED_MEDIA_TYPE} (415).
|
||||
*/
|
||||
@@ -457,33 +418,6 @@ public class StatusResultMatchers {
|
||||
return matcher(HttpStatus.valueOf(418));
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.INSUFFICIENT_SPACE_ON_RESOURCE} (419).
|
||||
* @deprecated matching the deprecation of {@code HttpStatus.INSUFFICIENT_SPACE_ON_RESOURCE}
|
||||
*/
|
||||
@Deprecated
|
||||
public ResultMatcher isInsufficientSpaceOnResource() {
|
||||
return matcher(HttpStatus.INSUFFICIENT_SPACE_ON_RESOURCE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.METHOD_FAILURE} (420).
|
||||
* @deprecated matching the deprecation of {@code HttpStatus.METHOD_FAILURE}
|
||||
*/
|
||||
@Deprecated
|
||||
public ResultMatcher isMethodFailure() {
|
||||
return matcher(HttpStatus.METHOD_FAILURE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.DESTINATION_LOCKED} (421).
|
||||
* @deprecated matching the deprecation of {@code HttpStatus.DESTINATION_LOCKED}
|
||||
*/
|
||||
@Deprecated
|
||||
public ResultMatcher isDestinationLocked() {
|
||||
return matcher(HttpStatus.DESTINATION_LOCKED);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.UNPROCESSABLE_ENTITY} (422).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user