Skip to content

Commit

Permalink
Merge pull request #910 from jamezp/UNDERTOW-1682
Browse files Browse the repository at this point in the history
[UNDERTOW-1682] Use the normalized path when comparing the resource p…
  • Loading branch information
stuartwdouglas committed Jul 23, 2020
2 parents 1ab33cc + 00432f3 commit 4b31838
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -154,7 +154,7 @@ public void testNonDefaultFileSystem() throws Exception {
Assert.assertTrue(dir.isDirectory());
List<Resource> list = dir.list();
Assert.assertEquals(1, list.size());
Assert.assertEquals(resource.getFilePath(), list.get(0).getFilePath());
Assert.assertEquals(resource.getFilePath().normalize(), list.get(0).getFilePath().normalize());

Resource outside = resourceManager.getResource("../root_resource.txt");
Assert.assertNull(outside);
Expand Down

0 comments on commit 4b31838

Please sign in to comment.