All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.testops.droidherd.DroidherdConfig Maven / Gradle / Ivy

Go to download

A library that parallelizes Android Test execution to all connected devices and emulators

There is a newer version: 1.0.0
Show newest version
package ru.tinkoff.testops.droidherd;

import ru.tinkoff.testops.droidherd.auth.AuthProvider;

import java.util.Collections;
import java.util.Map;
import java.util.StringJoiner;

public class DroidherdConfig {
    public final String clientType;
    public final Map emulatorParameters;
    public final int minimumRequiredEmulators;
    public final AuthProvider authProvider;
    public final Map emulators;
    public final String serviceUrl;

    public DroidherdConfig() {
        this(null, Collections.emptyMap(), 0, null, Collections.emptyMap(), null);
    }

    public DroidherdConfig(
            String clientType,
            Map emulatorParameters,
            Integer minimumRequiredEmulators,
            AuthProvider authProvider,
            Map emulators,
            String serviceUrl) {
        this.clientType = clientType;
        this.emulatorParameters = emulatorParameters;
        this.minimumRequiredEmulators = minimumRequiredEmulators;
        this.authProvider = authProvider;
        this.emulators = emulators;
        this.serviceUrl = serviceUrl;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", DroidherdConfig.class.getSimpleName() + "[", "]")
                .add("clientType='" + clientType + "'")
                .add("emulatorParameters=" + emulatorParameters)
                .add("minimumRequiredEmulators=" + minimumRequiredEmulators)
                .add("authProvider=" + authProvider)
                .add("emulators=" + emulators)
                .add("emulatorFarmEndpoint='" + serviceUrl + "'")
                .toString();
    }

    public boolean isConfigured() {
        return serviceUrl != null && !emulators.isEmpty();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy