|
16 | 16 | */ |
17 | 17 | package org.apache.commons.vfs2; |
18 | 18 |
|
19 | | -import static org.junit.jupiter.api.Assertions.assertArrayEquals; |
20 | | -import static org.junit.jupiter.api.Assertions.assertEquals; |
21 | | -import static org.junit.jupiter.api.Assertions.assertFalse; |
22 | | -import static org.junit.jupiter.api.Assertions.assertNotNull; |
23 | | -import static org.junit.jupiter.api.Assertions.assertNull; |
24 | | -import static org.junit.jupiter.api.Assertions.assertSame; |
25 | | -import static org.junit.jupiter.api.Assertions.assertNotSame; |
26 | | -import static org.junit.jupiter.api.Assertions.assertThrows; |
27 | 19 | import static org.junit.jupiter.api.Assertions.assertTrue; |
28 | | -import static org.junit.jupiter.api.Assertions.fail; |
29 | | - |
30 | | -import org.junit.jupiter.api.Test; |
31 | 20 |
|
32 | 21 | import java.net.Inet6Address; |
33 | 22 | import java.net.InetAddress; |
|
40 | 29 | import java.util.List; |
41 | 30 |
|
42 | 31 | import org.apache.commons.lang3.StringUtils; |
| 32 | +import org.apache.commons.lang3.Strings; |
43 | 33 | import org.apache.commons.logging.Log; |
44 | 34 | import org.apache.commons.logging.LogFactory; |
| 35 | +import org.junit.jupiter.api.Test; |
45 | 36 |
|
46 | 37 | public class IPv6LocalConnectionTests extends AbstractProviderTestCase { |
47 | 38 |
|
@@ -112,7 +103,7 @@ public void testConnectIPv6UrlLocal() throws Exception { |
112 | 103 | final List<String> localIPv6Addresses = getLocalIPv6Addresses(); |
113 | 104 | boolean connected = false; |
114 | 105 | for (final String ipv6Address : localIPv6Addresses) { |
115 | | - final String ipv6Url = StringUtils.replace(getReadFolder().getURL().toString(), "localhost", "[" + ipv6Address + "]"); |
| 106 | + final String ipv6Url = Strings.CS.replace(getReadFolder().getURL().toString(), "localhost", "[" + ipv6Address + "]"); |
116 | 107 | try { |
117 | 108 | final FileSystem fileSystem = getFileSystem(); |
118 | 109 |
|
|
0 commit comments