Search in sources :

Example 1 with ConfigManager

use of com.paypal.android.sdk.onetouch.core.config.ConfigManager in project braintree_android by braintree.

the class BrowserSwitchHelperUnitTest method setup.

@Before
public void setup() throws NameNotFoundException {
    mContextInspector = getMockContextInspector();
    mConfigManager = new ConfigManager(mContextInspector, mock(PayPalHttpClient.class));
    mConfigManager.useHardcodedConfig(true);
}
Also used : ConfigManager(com.paypal.android.sdk.onetouch.core.config.ConfigManager) Before(org.junit.Before)

Example 2 with ConfigManager

use of com.paypal.android.sdk.onetouch.core.config.ConfigManager in project braintree_android by braintree.

the class AppSwitchHelperUnitTest method setup.

@Before
public void setup() throws NameNotFoundException {
    SignatureVerificationOverrides.disableSignatureVerification(false);
    mContextInspector = getMockContextInspector();
    mConfigManager = new ConfigManager(mContextInspector, mock(PayPalHttpClient.class));
    mConfigManager.useHardcodedConfig(true);
}
Also used : ConfigManager(com.paypal.android.sdk.onetouch.core.config.ConfigManager) Before(org.junit.Before)

Example 3 with ConfigManager

use of com.paypal.android.sdk.onetouch.core.config.ConfigManager in project braintree_android by braintree.

the class PayPalOneTouchCore method initService.

private static void initService(Context context) {
    if (sConfigManager == null || sFptiManager == null) {
        PayPalHttpClient httpClient = new PayPalHttpClient().setBaseUrl(EnvironmentManager.LIVE_API_M_ENDPOINT);
        sConfigManager = new ConfigManager(getContextInspector(context), httpClient);
        sFptiManager = new FptiManager(getContextInspector(context), httpClient);
    }
    // always refresh configuration
    sConfigManager.refreshConfiguration();
}
Also used : FptiManager(com.paypal.android.sdk.onetouch.core.fpti.FptiManager) PayPalHttpClient(com.paypal.android.sdk.onetouch.core.network.PayPalHttpClient) ConfigManager(com.paypal.android.sdk.onetouch.core.config.ConfigManager)

Aggregations

ConfigManager (com.paypal.android.sdk.onetouch.core.config.ConfigManager)3 Before (org.junit.Before)2 FptiManager (com.paypal.android.sdk.onetouch.core.fpti.FptiManager)1 PayPalHttpClient (com.paypal.android.sdk.onetouch.core.network.PayPalHttpClient)1