Use consistent wording in precondition error messages
This commit is contained in:
@@ -41,7 +41,7 @@ public class MockClientHttpResponse extends MockHttpInputMessage implements Clie
|
||||
*/
|
||||
public MockClientHttpResponse(byte[] body, HttpStatusCode statusCode) {
|
||||
super(body);
|
||||
Assert.notNull(statusCode, "HttpStatusCode is required");
|
||||
Assert.notNull(statusCode, "HttpStatusCode must not be null");
|
||||
this.statusCode = statusCode;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class MockClientHttpResponse extends MockHttpInputMessage implements Clie
|
||||
*/
|
||||
public MockClientHttpResponse(InputStream body, HttpStatusCode statusCode) {
|
||||
super(body);
|
||||
Assert.notNull(statusCode, "HttpStatus is required");
|
||||
Assert.notNull(statusCode, "HttpStatusCode must not be null");
|
||||
this.statusCode = statusCode;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -61,7 +61,7 @@ public class MockClientHttpResponse implements ClientHttpResponse {
|
||||
}
|
||||
|
||||
public MockClientHttpResponse(HttpStatusCode status) {
|
||||
Assert.notNull(status, "HttpStatusCode is required");
|
||||
Assert.notNull(status, "HttpStatusCode must not be null");
|
||||
this.statusCode = status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user