Search in sources :

Example 1 with SmartLockHandler

use of com.firebase.ui.auth.viewmodel.smartlock.SmartLockHandler in project FirebaseUI-Android by firebase.

the class SmartLockHandlerTest method setUp.

@Before
public void setUp() {
    TestHelper.initialize();
    MockitoAnnotations.initMocks(this);
    mHandler = new SmartLockHandler((Application) ApplicationProvider.getApplicationContext());
    FlowParameters testParams = TestHelper.getFlowParameters(Collections.singletonList(EmailAuthProvider.PROVIDER_ID));
    mHandler.initializeForTesting(testParams, mMockAuth, mMockCredentials);
    mHandler.setResponse(new IdpResponse.Builder(new User.Builder(EmailAuthProvider.PROVIDER_ID, TestConstants.EMAIL).build()).build());
}
Also used : FlowParameters(com.firebase.ui.auth.data.model.FlowParameters) SmartLockHandler(com.firebase.ui.auth.viewmodel.smartlock.SmartLockHandler) Application(android.app.Application) Before(org.junit.Before)

Aggregations

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