use of com.google.cloud.spring.pubsub.core.PubSubConfiguration in project spring-cloud-gcp by GoogleCloudPlatform.
the class DefaultSubscriberFactoryTests method setUp.
@BeforeEach
void setUp() {
this.pubSubConfig = new PubSubConfiguration();
this.pubSubConfig.initialize("some-project");
}
use of com.google.cloud.spring.pubsub.core.PubSubConfiguration in project spring-cloud-gcp by GoogleCloudPlatform.
the class DefaultSubscriberFactory method getBlankConfiguration.
private static PubSubConfiguration getBlankConfiguration(GcpProjectIdProvider projectIdProvider) {
if (projectIdProvider == null) {
return null;
}
PubSubConfiguration config = new PubSubConfiguration();
config.initialize(projectIdProvider.getProjectId());
return config;
}
use of com.google.cloud.spring.pubsub.core.PubSubConfiguration in project spring-cloud-gcp by GoogleCloudPlatform.
the class DefaultSubscriberFactoryTests method testGetPullEndpoint_newConfiguration.
@Test
public void testGetPullEndpoint_newConfiguration() {
DefaultSubscriberFactory factory = new DefaultSubscriberFactory(() -> "project", new PubSubConfiguration());
assertThat(factory.getPullEndpoint("subscription-name")).isNull();
}
Aggregations