use of com.google.api.gax.rpc.TransportChannelProvider in project spring-cloud-gcp by spring-cloud.
the class GcpPubSubEmulatorAutoConfigurationTests method testEmulatorConfig.
@Test
public void testEmulatorConfig() {
this.contextRunner.run((context) -> {
CredentialsProvider defaultCredentialsProvider = context.getBean(CredentialsProvider.class);
assertThat(defaultCredentialsProvider).isNotInstanceOf(NoCredentialsProvider.class);
TopicAdminSettings topicAdminSettings = context.getBean(TopicAdminSettings.class);
CredentialsProvider credentialsProvider = topicAdminSettings.getCredentialsProvider();
assertThat(credentialsProvider).isInstanceOf(NoCredentialsProvider.class);
TransportChannelProvider transportChannelProvider = context.getBean(TransportChannelProvider.class);
assertThat(transportChannelProvider).isInstanceOf(FixedTransportChannelProvider.class);
});
}
Aggregations