Standalone tests that can be conducted on their own
Emulator is being distributed with the Google SDK. Once the SDK has been installed and configured, add PubSub Emulator:
gcloud components install pubsub-emulator
Please note the folder where it is installed and configure GCLOUD_SDK_PATH environmental variable. It is a custom variable, used by mvn plugin to find the installation.
Maven is configured to start the emulator prior the integration tests and shut down afterwards. The emulator is configured to listen to port 8383.
Integration tests and the emulator will eb available as part of google-pubsub-test profile:
mvn -Pgoogle-pubsub-test verify