Seeing a PublisherImplTest.testShutDown:1035 » IllegalArgument Could not create type error that seems related to this dependency update as the referenced line is related to mocking the Publisher.
@michaelpri10 Easymock 5.6.0 actually has the fix for this very error (updating byte-buddy) - see easymock/easymock#673
However this transitive byte-buddy version was not picked up because mockito is declared before easymock in google-cloud-pubsub/pom.xml.
Flipping the order of these two dependencies did the trick.
Edit: this solution is not ideal. Let's look into upgrading mockito as well, in case it brings a later version of byte-buddy.
Originally posted by @diegomarquezp in googleapis/java-pubsub#2069 (comment)
@michaelpri10 Easymock 5.6.0 actually has the fix for this very error (updating byte-buddy) - see easymock/easymock#673
However this transitive byte-buddy version was not picked up because
mockitois declared beforeeasymockingoogle-cloud-pubsub/pom.xml.Flipping the order of these two dependencies did the trick.
Edit: this solution is not ideal. Let's look into upgrading mockito as well, in case it brings a later version of byte-buddy.
Originally posted by @diegomarquezp in googleapis/java-pubsub#2069 (comment)