Need help to write a unit test for the below code using Mockito and JUnit4,
public class MyFragmentPresenterImpl { public Boolean isValid(String value
You should use Robolectric:
testImplementation "org.robolectric:robolectric:3.4.2"
And then
@RunWith(RobolectricTestRunner::class) class TestClass { ... }