Skip to content

Commit

Permalink
More testing for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ennoruijters committed Oct 5, 2021
1 parent 3050be3 commit 3976e73
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 3976e73

Please sign in to comment.