Search in sources :

Example 1 with FixedTransportChannelProvider

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);
    });
}
Also used : NoCredentialsProvider(com.google.api.gax.core.NoCredentialsProvider) FixedTransportChannelProvider(com.google.api.gax.rpc.FixedTransportChannelProvider) CredentialsProvider(com.google.api.gax.core.CredentialsProvider) NoCredentialsProvider(com.google.api.gax.core.NoCredentialsProvider) FixedTransportChannelProvider(com.google.api.gax.rpc.FixedTransportChannelProvider) TransportChannelProvider(com.google.api.gax.rpc.TransportChannelProvider) Test(org.junit.Test)

Aggregations

CredentialsProvider (com.google.api.gax.core.CredentialsProvider)1 NoCredentialsProvider (com.google.api.gax.core.NoCredentialsProvider)1 FixedTransportChannelProvider (com.google.api.gax.rpc.FixedTransportChannelProvider)1 TransportChannelProvider (com.google.api.gax.rpc.TransportChannelProvider)1 Test (org.junit.Test)1