net.serenitybdd.plugins.jira.service.JIRAInfrastructure Maven / Gradle / Ivy
The newest version!
package net.serenitybdd.plugins.jira.service;
import net.serenitybdd.model.di.ModelInfrastructure;
import net.serenitybdd.plugins.jira.model.IssueTracker;
import net.serenitybdd.plugins.jira.workflow.ClasspathWorkflowLoader;
import net.serenitybdd.plugins.jira.workflow.WorkflowLoader;
import net.thucydides.model.util.EnvironmentVariables;
public class JIRAInfrastructure {
static private final EnvironmentVariables environmentVariables = ModelInfrastructure.getEnvironmentVariables();
static private final JIRAConfiguration configuration = new SystemPropertiesJIRAConfiguration();
static private final IssueTracker issueTracker = new JiraIssueTracker(configuration);
static private final WorkflowLoader workflowLoader = new ClasspathWorkflowLoader("jira-workflow.groovy", environmentVariables);
public static JIRAConfiguration getConfiguration() {
return configuration;
}
public static IssueTracker getIssueTracker() {
return issueTracker;
}
public static WorkflowLoader getWorkflowLoader() {
return workflowLoader;
}
// this(Injectors.getInjector().getInstance(IssueTracker .class),
// Injectors.getInjector().getProvider(EnvironmentVariables .class).get() ,
// Injectors.getInjector().getInstance(WorkflowLoader .class));
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy