-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Azure Blob Storage SDK] Client classes marked as final - making them unable to mock #5051
Comments
@Silvatre. Thank you for bringing this to our attention. @JonathanGiles Can you please give us some guidance for how to support mocking scenarios and still be within Azure SDK guidelines? |
@Silvatre, did the linked issue have enough documentation to help alleviate the classes being marked as final issue? |
Removing the |
Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment. |
Hi,
Most (if not all) of the Azure Blob Storage SDK clients are marked as final, making it not possible (or overcomplicated) to write the tests with mocked client layer (e.g. with Mockito) - which seems to be a common use case.
Version
Solution
Make the client classes non-final or provide client interfaces.
The text was updated successfully, but these errors were encountered: