use of com.palantir.dialogue.clients.ReloadingClientFactory.LiveReloadingChannel in project dialogue by palantir.
the class ReloadingClientFactoryTest method live_reloading_wrapper_still_uses_the_EndpointChannelFactory_channel.
@Test
void live_reloading_wrapper_still_uses_the_EndpointChannelFactory_channel() {
LiveReloadingChannel live = new LiveReloadingChannel(Refreshable.create(channel), runtime.clients());
assertThat(SampleServiceAsync.of((Channel) live, runtime).getMyAlias()).isNotDone();
// ensure we use the bind method
verify(channel, atLeastOnce()).endpoint(any());
}
use of com.palantir.dialogue.clients.ReloadingClientFactory.LiveReloadingChannel in project dialogue by palantir.
the class ReloadingClientFactoryTest method live_reloading_wrapper_still_uses_the_EndpointChannelFactory_factory.
@Test
void live_reloading_wrapper_still_uses_the_EndpointChannelFactory_factory() {
LiveReloadingChannel live = new LiveReloadingChannel(Refreshable.only(channel), runtime.clients());
assertThat(SampleServiceAsync.of((EndpointChannelFactory) live, runtime).getMyAlias()).isNotDone();
// ensure we use the bind method
verify(channel, atLeastOnce()).endpoint(any());
}
Aggregations