Use consistent exception messages in Assert calls
See gh-44044 Signed-off-by: Johnny Lim <izeye@naver.com>
This commit is contained in:
committed by
Moritz Halbritter
parent
c8afa398f1
commit
c9320de559
@@ -47,7 +47,7 @@ public class HttpStatusHandler implements Handler {
|
||||
* @param status the status
|
||||
*/
|
||||
public HttpStatusHandler(HttpStatus status) {
|
||||
Assert.notNull(status, "Status must not be null");
|
||||
Assert.notNull(status, "'status' must not be null");
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ class HttpStatusHandlerTests {
|
||||
@Test
|
||||
void statusMustNotBeNull() {
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new HttpStatusHandler(null))
|
||||
.withMessageContaining("Status must not be null");
|
||||
.withMessageContaining("'status' must not be null");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user