aquality.tracking.integrations.core.ServicesModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aquality-tracking-integrations-core Show documentation
Show all versions of aquality-tracking-integrations-core Show documentation
Aquality Tracking integration core for JVM-based test frameworks.
package aquality.tracking.integrations.core;
import aquality.tracking.integrations.core.endpoints.ISuiteEndpoints;
import aquality.tracking.integrations.core.endpoints.ITestEndpoints;
import aquality.tracking.integrations.core.endpoints.ITestResultEndpoints;
import aquality.tracking.integrations.core.endpoints.ITestRunEndpoints;
import aquality.tracking.integrations.core.endpoints.impl.SuiteEndpoints;
import aquality.tracking.integrations.core.endpoints.impl.TestEndpoints;
import aquality.tracking.integrations.core.endpoints.impl.TestResultEndpoints;
import aquality.tracking.integrations.core.endpoints.impl.TestRunEndpoints;
import aquality.tracking.integrations.core.utilities.JsonMapper;
import com.google.inject.AbstractModule;
public class ServicesModule extends AbstractModule {
@Override
protected void configure() {
Configuration configuration = JsonMapper.mapFileContent("aqualityTracking.json", Configuration.class);
this.bind(Configuration.class).toInstance(configuration);
this.bind(IHttpClient.class).to(AqualityHttpClient.class);
this.bind(ISuiteEndpoints.class).to(SuiteEndpoints.class);
this.bind(ITestEndpoints.class).to(TestEndpoints.class);
this.bind(ITestRunEndpoints.class).to(TestRunEndpoints.class);
this.bind(ITestResultEndpoints.class).to(TestResultEndpoints.class);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy