use of com.globalcollect.gateway.sdk.client.android.integrationtest.sessions.TokenUtil 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);
}
Aggregations