Upgrade Truth to 0.34

Convert invocation of deprecated 'withFailureMessage' to use new
'withMessage' instead.

Change-Id: I3a9f776ad895a8df8da4e26d435a18a72daae400
This commit is contained in:
Dave Borowitz
2017-07-06 10:57:05 -04:00
parent a329437de5
commit 66b50527f4
17 changed files with 28 additions and 46 deletions

View File

@@ -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);
}