Testing android login method

I am developing an Android application where testing is part of development process. Testing in general is new domain for me therefore, i struggle often. I need an advice on unit testing a method which I use to perform a user login. Since method is void and implements callbacks I assume that either class or some of the objects should be mocked. In my application I use robolectric and mockito for testing purposes. I have provided the code below & thanks in advance.

public void loginUser(String email,String pass){

try {

requestQueue = Volley.newRequestQueue(getActivity().getApplicationContext());

StringRequest...

Read More »

By: StackOverFlow - Thursday, 8 November

Related Posts