pikaju / flutter-braintree

Flutter plugin that wraps the native Braintree SDKs. Enables payments with credit cards, PayPal, Google Pay and more.
https://pub.dev/packages/flutter_braintree
MIT License
64 stars 119 forks source link

Add non-static start method for mocking BraintreeDropIn.start #57

Open godfreycomputing opened 3 years ago

godfreycomputing commented 3 years ago

I would like to be able to mock the start function in BraintreeDropIn, so I can return an expected result. Because, mockito can't mock a static method, I am unable to do so. This would really help with unit testing.