How To Initialize Nullable Variable Of Presenter Through Espresso Ui Test To Avoid Npe
I am trying to write Espresso UI test for an android app build with kotlin. I have written a basic UI test to test the UI elements present in the loginFragment. @LargeTest class Lo
Solution 1:
I believe that you should inject mocked version of presenter into the fragment for test purposes. You could follow this: https://proandroiddev.com/writing-espresso-instrumentation-tests-with-dagger2-kotlin-d30f12c4769b or just documentation: https://square.github.io/dagger/#using (Module Overrides)
Post a Comment for "How To Initialize Nullable Variable Of Presenter Through Espresso Ui Test To Avoid Npe"