From ba4cdb09970514cbd108c7f4a71a4c77fa21bc66 Mon Sep 17 00:00:00 2001 From: Julien Viet Date: Mon, 30 Sep 2024 08:25:24 +0200 Subject: [PATCH] Improve test --- .../test/java/io/vertx/tests/file/FileResolverTestBase.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vertx-core/src/test/java/io/vertx/tests/file/FileResolverTestBase.java b/vertx-core/src/test/java/io/vertx/tests/file/FileResolverTestBase.java index 76c4d99b0cc..32d87e4c6d3 100644 --- a/vertx-core/src/test/java/io/vertx/tests/file/FileResolverTestBase.java +++ b/vertx-core/src/test/java/io/vertx/tests/file/FileResolverTestBase.java @@ -442,7 +442,10 @@ public void testReadFileInDirThenReadDirMultipleLevels() { @Test public void testBugEndWithSlash() { FileResolver resolver = ((VertxInternal) vertx).fileResolver(); - File buff = resolver.resolveFile("tree/"); + File f = resolver.resolveFile("tree/"); + assertNotNull(f); + assertTrue(f.isDirectory()); + assertEquals("tree", f.getName()); } @Test