Class GooglePubSub

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.Extension, Service

    @AutoService(GooglePubSub.class)
    public class GooglePubSub
    extends Object
    implements Service
    • Constructor Detail

      • GooglePubSub

        public GooglePubSub()
    • Method Detail

      • topicAdminClient

        protected com.google.cloud.pubsub.v1.TopicAdminClient topicAdminClient()
                                                                        throws IOException
        Throws:
        IOException
      • subscriptionAdminClient

        protected com.google.cloud.pubsub.v1.SubscriptionAdminClient subscriptionAdminClient()
                                                                                      throws IOException
        Throws:
        IOException
      • afterAll

        public void afterAll​(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
        Specified by:
        afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback
      • beforeAll

        public void beforeAll​(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
                       throws Exception
        Specified by:
        beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
        Throws:
        Exception