Search in sources :

Example 1 with RecoverPasswordHandler

use of com.firebase.ui.auth.viewmodel.email.RecoverPasswordHandler in project FirebaseUI-Android by firebase.

the class RecoverPasswordHandlerTest method setUp.

@Before
public void setUp() {
    TestHelper.initialize();
    MockitoAnnotations.initMocks(this);
    mHandler = new RecoverPasswordHandler((Application) ApplicationProvider.getApplicationContext());
    FlowParameters testParams = TestHelper.getFlowParameters(Collections.singletonList(EmailAuthProvider.PROVIDER_ID));
    mHandler.initializeForTesting(testParams, mMockAuth, null);
    mPasswordResetSettings = ActionCodeSettings.newBuilder().setAndroidPackageName("com.firebase.uidemo", true, null).setHandleCodeInApp(true).setUrl("https://google.com").build();
}
Also used : RecoverPasswordHandler(com.firebase.ui.auth.viewmodel.email.RecoverPasswordHandler) FlowParameters(com.firebase.ui.auth.data.model.FlowParameters) Application(android.app.Application) Before(org.junit.Before)

Aggregations

Application (android.app.Application)1 FlowParameters (com.firebase.ui.auth.data.model.FlowParameters)1 RecoverPasswordHandler (com.firebase.ui.auth.viewmodel.email.RecoverPasswordHandler)1 Before (org.junit.Before)1