This is an automated email from the ASF dual-hosted git repository. nnag pushed a commit to branch feature/GEODE-7665 in repository https://gitbox.apache.org/repos/asf/geode.git
commit d43efe3befd8f1ef6efacfac9ada9a12a798e7e2 Author: Kirk Lund <[email protected]> AuthorDate: Wed Apr 21 15:22:25 2021 -0700 GEODE-9132: Fix assertion in ResourceUtils --- .../src/main/java/org/apache/geode/test/util/ResourceUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/geode-junit/src/main/java/org/apache/geode/test/util/ResourceUtils.java b/geode-junit/src/main/java/org/apache/geode/test/util/ResourceUtils.java index cdd6f9d..948f4f0 100644 --- a/geode-junit/src/main/java/org/apache/geode/test/util/ResourceUtils.java +++ b/geode-junit/src/main/java/org/apache/geode/test/util/ResourceUtils.java @@ -251,7 +251,9 @@ public class ResourceUtils { public static void copyDirectoryResource(final URL resource, final File targetFolder) { try { File source = new File(resource.getPath()); - assertThat(source.exists()).as("Source does not exist: " + resource.getPath()); + assertThat(source) + .withFailMessage("Source does not exist: " + resource.getPath()) + .exists(); FileUtils.copyDirectory(source, targetFolder); } catch (IOException e) { throw new UncheckedIOException(e);
