mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Add isTooEarly() method to StatusResultMatchers
See gh-23384
This commit is contained in:
+8
@@ -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