use of com.google.api.gax.rpc.FixedTransportChannelProvider in project spring-cloud-gcp by spring-cloud.
the class GcpPubSubEmulatorConfigurationTests method testEmulatorConfig.
@Test
public void testEmulatorConfig() {
this.contextRunner.run(context -> {
CredentialsProvider credentialsProvider = context.getBean(CredentialsProvider.class);
Assert.assertTrue("CredentialsProvider is not correct", credentialsProvider instanceof NoCredentialsProvider);
TransportChannelProvider transportChannelProvider = context.getBean(TransportChannelProvider.class);
Assert.assertTrue("TransportChannelProvider is not correct", transportChannelProvider instanceof FixedTransportChannelProvider);
});
}
Aggregations