Skip to content

Commit 3d6fc20

Browse files
committed
Use StringUtils.toRootLowerCase
1 parent a3c8dc3 commit 3d6fc20

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http4/Http4FilesCacheTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
import static org.junit.jupiter.api.Assertions.assertEquals;
2020

21-
import java.util.Locale;
22-
21+
import org.apache.commons.lang3.StringUtils;
2322
import org.apache.commons.vfs2.FileObject;
2423
import org.apache.commons.vfs2.FileSystemException;
2524
import 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

0 commit comments

Comments
 (0)