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

net.serenitybdd.plugins.jira.service.JIRAConnection Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version
package net.serenitybdd.plugins.jira.service;

import net.serenitybdd.plugins.jira.client.JerseyJiraClient;

public class JIRAConnection {

    private final JIRAConfiguration configuration;
    private final JerseyJiraClient jiraClient;

    public JIRAConnection() {
        this(JIRAInfrastructure.getConfiguration());
    }

    public JIRAConnection(JIRAConfiguration configuration) {
        this.configuration = configuration;
        this.jiraClient = new JerseyJiraClient(configuration.getJiraWebserviceUrl(), configuration.getJiraUser(), configuration.getJiraPassword(), configuration.getProject());
    }

    public JerseyJiraClient getRestJiraClient() {
        return jiraClient;
    }

    protected JIRAConfiguration getConfiguration() {
        return configuration;
    }

    public String getJiraUser() {
        return getConfiguration().getJiraUser();
    }

    public String getJiraPassword() {
        return getConfiguration().getJiraPassword();
    }

    public String getJiraWebserviceUrl() {
        return getConfiguration().getJiraWebserviceUrl();
    }

    public String getProject() {
        return getConfiguration().getProject();
    }
    public void logout() { }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy