net.serenitybdd.plugins.jira.client.FindByKeyLoader Maven / Gradle / Ivy
package net.serenitybdd.plugins.jira.client;
import com.google.common.cache.CacheLoader;
import net.serenitybdd.plugins.jira.domain.IssueSummary;
import java.util.Optional;
public class FindByKeyLoader extends CacheLoader> {
private final JerseyJiraClient jiraClient;
public FindByKeyLoader(JerseyJiraClient jiraClient) {
this.jiraClient = jiraClient;
}
@Override
public Optional load(String key) throws Exception {
return jiraClient.loadByKey(key);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy