Java interface for SendGrid class #194
Labels
status: help wanted
requesting help from the community
type: community enhancement
feature request not on Twilio's roadmap
As of 3.2.1, all of the SendGrid functionality is implemented directly in the
SendGrid
class, which is directly descended fromObject
and implements no interfaces. This makes mocking out SendGrid calls for testing difficult--especially the message-driven integration test "this API call actually does cause mail to be sent!" It would be preferable to have aSendGridApi
or similar interface that covered at least the core methods.I'll tag #140 here because of the theme, but this refactoring can be done without breaking anything--adding a new interface implementation won't cause problems.
The text was updated successfully, but these errors were encountered: