File tree 1 file changed +4
-0
lines changed
src/test/java/org/carlspring/cloud/storage/s3fs/path
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ void nonS3Paths()
72
72
{
73
73
S3Path parent = getPath ("/bucket" );
74
74
S3Path child = getPath ("/bucket/rabbit" );
75
+ S3Path deepChild = getPath ("/bucket/rabbit/in/space" );
75
76
S3Path resolved = (S3Path ) parent .resolve (child );
76
77
77
78
assertEquals (child , resolved );
@@ -82,6 +83,9 @@ void nonS3Paths()
82
83
resolved = (S3Path ) parent .resolve (Paths .get ("rabbit" )); //unixPath
83
84
assertEquals (child , resolved );
84
85
86
+ resolved = (S3Path ) parent .resolve (Paths .get ("rabbit" ).resolve ("in" ).resolve ("space" ));
87
+ assertEquals (deepChild , resolved );
88
+
85
89
resolved = (S3Path ) parent .resolve (Paths .get ("./rabbit" )); //unixPath
86
90
assertEquals ("s3://s3.test.amazonaws.com/bucket/./rabbit" , resolved .toString ());
87
91
You can’t perform that action at this time.
0 commit comments