use of com.firebase.ui.auth.data.remote.GenericIdpAnonymousUpgradeLinkingHandler 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