Skip to content

Commit

Permalink
More testing for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ennoruijters authored and carlspring committed Jun 7, 2023
1 parent c736528 commit 6ac8019
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ void nonS3Paths()
{
S3Path parent = getPath("/bucket");
S3Path child = getPath("/bucket/rabbit");
S3Path deepChild = getPath("/bucket/rabbit/in/space");
S3Path resolved = (S3Path) parent.resolve(child);

assertEquals(child, resolved);
Expand All @@ -82,6 +83,9 @@ void nonS3Paths()
resolved = (S3Path) parent.resolve(Paths.get("rabbit")); //unixPath
assertEquals(child, resolved);

resolved = (S3Path) parent.resolve(Paths.get("rabbit").resolve("in").resolve("space"));
assertEquals(deepChild, resolved);

resolved = (S3Path) parent.resolve(Paths.get("./rabbit")); //unixPath
assertEquals("s3://s3.test.amazonaws.com/bucket/./rabbit", resolved.toString());

Expand Down

0 comments on commit 6ac8019

Please sign in to comment.