use of io.lettuce.core.internal.HostAndPort in project lettuce-core by lettuce-io.
the class ClusterDistributionChannelWriterUnitTests method shouldParseAskTargetCorrectly.
@Test
void shouldParseAskTargetCorrectly() {
HostAndPort askTarget = ClusterDistributionChannelWriter.getAskTarget("ASK 1234-2020 127.0.0.1:6381");
assertThat(askTarget.getHostText()).isEqualTo("127.0.0.1");
assertThat(askTarget.getPort()).isEqualTo(6381);
}
Aggregations