File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http4 Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1818
1919import static org .junit .jupiter .api .Assertions .assertEquals ;
2020
21- import java .util .Locale ;
22-
21+ import org .apache .commons .lang3 .StringUtils ;
2322import org .apache .commons .vfs2 .FileObject ;
2423import org .apache .commons .vfs2 .FileSystemException ;
2524import org .apache .commons .vfs2 .FileSystemManager ;
@@ -84,7 +83,7 @@ public void testQueryStringUrl4() throws FileSystemException {
8483 // We end up converting back to lowercase, but OK per RFC.
8584 final String queryStringUrl3 = "http4://alice%5C1234:secret@localhost:8080/" ;
8685 try (FileObject queryFile3 = fileSystemManager .resolveFile (queryStringUrl3 )) {
87- assertEquals (queryStringUrl3 . toLowerCase ( Locale . ROOT ), queryFile3 .getURL ().toExternalForm ());
86+ assertEquals (StringUtils . toRootLowerCase ( queryStringUrl3 ), queryFile3 .getURL ().toExternalForm ());
8887 }
8988 }
9089
You can’t perform that action at this time.
0 commit comments