Upgrade Truth to 0.34
Convert invocation of deprecated 'withFailureMessage' to use new 'withMessage' instead. Change-Id: I3a9f776ad895a8df8da4e26d435a18a72daae400
This commit is contained in:
@@ -40,7 +40,7 @@ public class RestResponse extends HttpResponse {
|
||||
|
||||
public void assertStatus(int status) throws Exception {
|
||||
assert_()
|
||||
.withFailureMessage(String.format("Expected status code %d", status))
|
||||
.withMessage(String.format("Expected status code %d", status))
|
||||
.that(getStatusCode())
|
||||
.isEqualTo(status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user