use of com.firebase.ui.auth.data.model.FlowParameters in project FirebaseUI-Android by firebase.
the class EmailLinkSendEmailHandlerTest method setUp.
@Before
public void setUp() {
TestHelper.initialize();
MockitoAnnotations.initMocks(this);
mHandler = new EmailLinkSendEmailHandler((Application) ApplicationProvider.getApplicationContext());
FlowParameters testParams = TestHelper.getFlowParameters(new ArrayList<String>());
mHandler.initializeForTesting(testParams, mMockAuth, null);
mPersistenceManager = EmailLinkPersistenceManager.getInstance();
}
use of com.firebase.ui.auth.data.model.FlowParameters in project FirebaseUI-Android by firebase.
the class GenericIdpAnonymousUpgradeLinkingHandlerTest method setUp.
@Before
public void setUp() {
TestHelper.initialize();
MockitoAnnotations.initMocks(this);
FlowParameters testParams = TestHelper.getFlowParameters(Arrays.asList(MICROSOFT_PROVIDER, GoogleAuthProvider.PROVIDER_ID), /* enableAnonymousUpgrade= */
true);
mMockActivity = TestHelper.getHelperActivity(testParams);
mHandler = spy(new GenericIdpAnonymousUpgradeLinkingHandler((Application) ApplicationProvider.getApplicationContext()));
Map<String, String> customParams = new HashMap<>();
customParams.put(CUSTOM_PARAMETER_KEY, CUSTOM_PARAMETER_VALUE);
AuthUI.IdpConfig config = new AuthUI.IdpConfig.MicrosoftBuilder().setScopes(Arrays.asList(SCOPE)).setCustomParameters(customParams).build();
mHandler.initializeForTesting(config);
mHandler.getOperation().observeForever(mResponseObserver);
}
Aggregations