Skip to content

Commit a5a465c

Browse files
committed
grpclb: Rewrite URI() calls as URI#create in test cases.
This change is a no-op. The create() form is clearer than positional arguments to a heavily overloaded constructor.
1 parent 4dc1eb4 commit a5a465c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

grpclb/src/test/java/io/grpc/grpclb/SecretGrpclbNameResolverProviderTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,22 @@ public void newNameResolver() {
7474

7575
@Test
7676
public void invalidDnsName() throws Exception {
77-
testInvalidUri(new URI("dns", null, "/[invalid]", null));
77+
testInvalidUri(URI.create("dns:/%5Binvalid%5D"));
7878
}
7979

8080
@Test
8181
public void validIpv6() throws Exception {
82-
testValidUri(new URI("dns", null, "/[::1]", null));
82+
testValidUri(URI.create("dns:/%5B::1%5D"));
8383
}
8484

8585
@Test
8686
public void validDnsNameWithoutPort() throws Exception {
87-
testValidUri(new URI("dns", null, "/foo.googleapis.com", null));
87+
testValidUri(URI.create("dns:/foo.googleapis.com"));
8888
}
8989

9090
@Test
9191
public void validDnsNameWithPort() throws Exception {
92-
testValidUri(new URI("dns", null, "/foo.googleapis.com:456", null));
92+
testValidUri(URI.create("dns:/foo.googleapis.com:456"));
9393
}
9494

9595
private void testInvalidUri(URI uri) {

0 commit comments

Comments
 (0)