use of com.google.cloud.pubsub.spi.v1.Subscriber in project spring-cloud-gcp by spring-cloud.
the class PubSubTemplateTests method testSubscribe.
@Test
public void testSubscribe() {
Subscriber subscriber = this.pubSubTemplate.subscribe("testSubscription", (message) -> {
});
assertThat(subscriber).isEqualTo(this.mockSubscriber);
verify(this.mockSubscriber, times(1)).startAsync();
}
Aggregations