Search in sources :

Example 1 with Credentials

use of org.springframework.cloud.gcp.core.Credentials in project spring-cloud-gcp by spring-cloud.

the class PubSubChannelAdaptersIntegrationTests method enableTests.

@BeforeClass
public static void enableTests() throws IOException {
    assumeThat(System.getProperty("it.pubsub")).isEqualTo("true");
    pubSubAdmin = new PubSubAdmin(new DefaultGcpProjectIdProvider(), new DefaultCredentialsProvider(() -> new Credentials()));
}
Also used : DefaultCredentialsProvider(org.springframework.cloud.gcp.core.DefaultCredentialsProvider) Credentials(org.springframework.cloud.gcp.core.Credentials) PubSubAdmin(org.springframework.cloud.gcp.pubsub.PubSubAdmin) DefaultGcpProjectIdProvider(org.springframework.cloud.gcp.core.DefaultGcpProjectIdProvider) BeforeClass(org.junit.BeforeClass)

Aggregations

BeforeClass (org.junit.BeforeClass)1 Credentials (org.springframework.cloud.gcp.core.Credentials)1 DefaultCredentialsProvider (org.springframework.cloud.gcp.core.DefaultCredentialsProvider)1 DefaultGcpProjectIdProvider (org.springframework.cloud.gcp.core.DefaultGcpProjectIdProvider)1 PubSubAdmin (org.springframework.cloud.gcp.pubsub.PubSubAdmin)1