use of org.apache.camel.component.github.GitHubComponent in project camel by apache.
the class GitHubComponentAutoConfiguration method configureGitHubComponent.
@Lazy
@Bean(name = "github-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(GitHubComponent.class)
public GitHubComponent configureGitHubComponent(CamelContext camelContext) throws Exception {
GitHubComponent component = new GitHubComponent();
component.setCamelContext(camelContext);
return component;
}
use of org.apache.camel.component.github.GitHubComponent in project camel by apache.
the class PullRequestStateProducerTest method createRouteBuilder.
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
context.addComponent("github", new GitHubComponent());
from("direct:validPullRequest").process(new MockPullRequestStateProducerProcessor()).to("github://pullRequestState?state=success&username=someguy&password=apassword&repoOwner=anotherguy&repoName=somerepo");
}
};
}
use of org.apache.camel.component.github.GitHubComponent in project camel by apache.
the class ClosePullRequestProducerTest method createRouteBuilder.
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
context.addComponent("github", new GitHubComponent());
from(PULL_REQUEST_PRODUCER_ENDPOINT).process(new ClosePullRequestProducerProcessor()).to("github://closePullRequest?username=someguy&password=apassword&repoOwner=anotherguy&repoName=somerepo");
}
};
}
use of org.apache.camel.component.github.GitHubComponent in project camel by apache.
the class CreateIssueProducerTest method createRouteBuilder.
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
context.addComponent("github", new GitHubComponent());
from("direct:createIssue").process(new MockIssueCreateProducerProcessor()).to("github://createissue?state=success&username=someguy&password=apassword&repoOwner=anotherguy&repoName=somerepo");
}
};
}
use of org.apache.camel.component.github.GitHubComponent in project camel by apache.
the class PullRequestCommentProducerTest method createRouteBuilder.
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
context.addComponent("github", new GitHubComponent());
from("direct:validPullRequest").process(new MockPullRequestCommentProducerProcessor()).to("github://pullRequestComment?username=someguy&password=apassword&repoOwner=anotherguy&repoName=somerepo");
}
};
}
Aggregations