Skip to content

Commit

Permalink
[java] FIxing order of statements in assertj call chain
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Feb 16, 2021
1 parent 88279c8 commit 99c31dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ private JavaScriptLoader() {} // Utility class.
static String loadResource(String resourcePath) throws IOException {
URL resourceUrl = JavaScriptLoader.class.getResource(resourcePath);
assumeThat(resourceUrl)
.isNotNull()
.as("Resource not found; are you running with `bazel test`? " + resourcePath);
.withFailMessage("Resource %s not found; are you running with `bazel test`? ", resourcePath)
.isNotNull();
return Resources.toString(resourceUrl, UTF_8);
}
}

0 comments on commit 99c31dd

Please sign in to comment.