Appboy / appboy-android-sdk

Public repo for the Braze Android SDK
https://www.braze.com
Other
153 stars 102 forks source link

Does Braze.getInstance() using getBrazeLogTag() internally? As, it is causing me issues while mocking Braze.getInstance(), linked with: https://github.com/Appboy/appboy-android-sdk/issues/241 #242

Closed gitanshubatra239 closed 1 year ago

gitanshubatra239 commented 1 year ago

Braze Android SDK Version

23.1.1

Steps To Reproduce

Mock Braze.getInstance(mocked_context) on static instance While executing this mock, an error occurs: Braze cannot be returned by getBrazeLogTag(). It should return string.

Expected Behavior

While Mocking Braze.getInstance() , There should be some info if it is calling getBrazeLogTag() internally. and If it is calling, what object used to call this method so that we can mock that object.

Actual Incorrect Behavior

Braze.getInstance() using getBrazeLogTag() internally

Verbose Logs

No response

Additional Information

No response

radixdev commented 1 year ago

Hi @gitanshubatra239 ,

Mocking the production SDK in the manner you describe is a product request and should be routed to your CSM.