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

net.serenitybdd.plugins.jira.guice.ThucydidesJiraModule Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package net.serenitybdd.plugins.jira.guice;

import com.google.inject.name.Names;
import net.serenitybdd.plugins.jira.workflow.ClasspathWorkflowLoader;
import net.thucydides.core.guice.ThucydidesModule;
import net.serenitybdd.plugins.jira.model.IssueTracker;
import net.serenitybdd.plugins.jira.service.JIRAConfiguration;
import net.serenitybdd.plugins.jira.service.JiraIssueTracker;
import net.serenitybdd.plugins.jira.service.SystemPropertiesJIRAConfiguration;
import net.serenitybdd.plugins.jira.workflow.WorkflowLoader;

public class ThucydidesJiraModule extends ThucydidesModule {

    @Override
    protected void configure() {
        super.configure();
        bind(IssueTracker.class).to(JiraIssueTracker.class);
        bind(JIRAConfiguration.class).to(SystemPropertiesJIRAConfiguration.class);
        bind(WorkflowLoader.class).to(ClasspathWorkflowLoader.class);

        bindConstant().annotatedWith(Names.named("defaultWorkflow")).to("jira-workflow.groovy");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy