Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekigamba committed Mar 29, 2019
1 parent 22df44c commit df71602
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import org.robolectric.RobolectricTestRunner;
import org.robolectric.RuntimeEnvironment;
import org.robolectric.util.ReflectionHelpers;
import org.smartregister.p2p.P2PLibrary;
import org.smartregister.p2p.authorizer.P2PAuthorizationService;
import org.smartregister.p2p.contract.P2pModeSelectContract;
import org.smartregister.p2p.dialog.QRCodeGeneratorDialog;
import org.smartregister.p2p.handler.OnActivityRequestPermissionHandler;
Expand Down Expand Up @@ -53,6 +55,7 @@ public class P2PReceiverPresenterTest {

@Before
public void setUp() throws Exception {
P2PLibrary.init(new P2PLibrary.Options("username", Mockito.mock(P2PAuthorizationService.class)));
Mockito.doReturn(RuntimeEnvironment.application)
.when(view)
.getContext();
Expand Down

0 comments on commit df71602

Please sign in to comment.