Skip to content

Commit 8e5e156

Browse files
committed
Update from deprecated code
1 parent 6619bc9 commit 8e5e156

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

commons-vfs2/src/test/java/org/apache/commons/vfs2/IPv6LocalConnectionTests.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,7 @@
1616
*/
1717
package org.apache.commons.vfs2;
1818

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;
2719
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;
3120

3221
import java.net.Inet6Address;
3322
import java.net.InetAddress;
@@ -40,8 +29,10 @@
4029
import java.util.List;
4130

4231
import org.apache.commons.lang3.StringUtils;
32+
import org.apache.commons.lang3.Strings;
4333
import org.apache.commons.logging.Log;
4434
import org.apache.commons.logging.LogFactory;
35+
import org.junit.jupiter.api.Test;
4536

4637
public class IPv6LocalConnectionTests extends AbstractProviderTestCase {
4738

@@ -112,7 +103,7 @@ public void testConnectIPv6UrlLocal() throws Exception {
112103
final List<String> localIPv6Addresses = getLocalIPv6Addresses();
113104
boolean connected = false;
114105
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 + "]");
116107
try {
117108
final FileSystem fileSystem = getFileSystem();
118109

0 commit comments

Comments
 (0)