use of io.netty.channel.unix.DomainSocketAddress in project grpc-java by grpc.
the class ChannelzProtoUtilTest method toAddress_uds.
@Test
public void toAddress_uds() throws Exception {
String path = "/tmp/foo";
DomainSocketAddress uds = new DomainSocketAddress(path);
assertEquals(Address.newBuilder().setUdsAddress(UdsAddress.newBuilder().setFilename(path)).build(), ChannelzProtoUtil.toAddress(uds));
}
Aggregations