Search in sources :

Example 1 with SessionUtil

use of com.globalcollect.gateway.sdk.client.android.integrationtest.sessions.SessionUtil in project connect-sdk-client-android by Ingenico-ePayments.

the class BaseAsyncTaskTest method initializeClass.

@BeforeClass
public static void initializeClass() throws IOException {
    Properties properties = new Properties();
    InputStream inputStream = BaseAsyncTaskTest.class.getResourceAsStream("/itconfiguration.properties");
    try {
        properties.load(inputStream);
    } finally {
        inputStream.close();
    }
    testMerchantId = properties.getProperty("connect.api.merchantId");
    environmentType = Environment.EnvironmentType.valueOf(properties.getProperty("connect.api.environmentType", "Sandbox"));
    clientBaseUrl = properties.getProperty("connect.api.client.endpoint");
    CommunicatorConfiguration communicatorConfiguration = new CommunicatorConfiguration(properties).withApiKeyId(properties.getProperty("connect.api.apiKeyId")).withSecretApiKey(properties.getProperty("connect.api.secretApiKey"));
    client = Factory.createClient(communicatorConfiguration);
    tokenUtil = new TokenUtil(client);
    sessionUtil = new SessionUtil(client);
}
Also used : InputStream(java.io.InputStream) TokenUtil(com.globalcollect.gateway.sdk.client.android.integrationtest.sessions.TokenUtil) SessionUtil(com.globalcollect.gateway.sdk.client.android.integrationtest.sessions.SessionUtil) Properties(java.util.Properties) C2sCommunicatorConfiguration(com.globalcollect.gateway.sdk.client.android.sdk.communicate.C2sCommunicatorConfiguration) CommunicatorConfiguration(com.ingenico.connect.gateway.sdk.java.CommunicatorConfiguration) BeforeClass(org.junit.BeforeClass)

Aggregations

SessionUtil (com.globalcollect.gateway.sdk.client.android.integrationtest.sessions.SessionUtil)1 TokenUtil (com.globalcollect.gateway.sdk.client.android.integrationtest.sessions.TokenUtil)1 C2sCommunicatorConfiguration (com.globalcollect.gateway.sdk.client.android.sdk.communicate.C2sCommunicatorConfiguration)1 CommunicatorConfiguration (com.ingenico.connect.gateway.sdk.java.CommunicatorConfiguration)1 InputStream (java.io.InputStream)1 Properties (java.util.Properties)1 BeforeClass (org.junit.BeforeClass)1