Add test for invalid grpc uri.
@@ -76,4 +76,12 @@ public class ServerConfigTest {
assertThat(serverConfig.getBindingAddress()).isEqualTo("somedomain:8989");
}
+
+ @Test(expected = ConfigException.class)
+ public void invalidGrpcUri() {
+ final ServerConfig serverConfig = new ServerConfig("^$1%&@*(@)", 8989, 50521,null, null, null, null);
+ serverConfig.getGrpcUri();
+
+
+ }
}
