Add isTooEarly() method to StatusResultMatchers
See gh-23384
This commit is contained in:
@@ -492,6 +492,14 @@ public class StatusResultMatchers {
|
||||
return matcher(HttpStatus.FAILED_DEPENDENCY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.TOO_EARLY} (425).
|
||||
* @since 5.2
|
||||
*/
|
||||
public ResultMatcher isTooEarly() {
|
||||
return matcher(HttpStatus.valueOf(425));
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert the response status code is {@code HttpStatus.UPGRADE_REQUIRED} (426).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user