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());
}
Aggregations