use of org.apache.camel.component.github.GitHubComponent in project camel by apache.
the class PullRequestFilesProducerTest 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 MockPullFilesProducerProcessor()).to("github://pullRequestFiles?username=someguy&password=apassword&repoOwner=anotherguy&repoName=somerepo");
}
};
}
use of org.apache.camel.component.github.GitHubComponent in project camel by apache.
the class CommitConsumerTest method createRouteBuilder.
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
context.addComponent("github", new GitHubComponent());
from("github://commit/master?username=someguy&password=apassword&repoOwner=anotherguy&repoName=somerepo").process(new GitHubCommitProcessor()).to(mockResultEndpoint);
}
};
}
use of org.apache.camel.component.github.GitHubComponent in project camel by apache.
the class PullRequestCommentConsumerTest method createRouteBuilder.
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
context.addComponent("github", new GitHubComponent());
from("github://pullRequestComment?username=someguy&password=apassword&repoOwner=anotherguy&repoName=somerepo").process(new PullRequestCommentProcessor()).to(mockResultEndpoint);
}
};
}
use of org.apache.camel.component.github.GitHubComponent in project camel by apache.
the class PullRequestConsumerTest method createRouteBuilder.
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
context.addComponent("github", new GitHubComponent());
from("github://pullRequest?username=someguy&password=apassword&repoOwner=anotherguy&repoName=somerepo").process(new MockPullRequestProcessor()).to(mockResultEndpoint);
}
};
}
use of org.apache.camel.component.github.GitHubComponent in project camel by apache.
the class TagConsumerTest method createRouteBuilder.
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
context.addComponent("github", new GitHubComponent());
from("github://tag?username=someguy&password=apassword&repoOwner=anotherguy&repoName=somerepo").process(new RepositoryTagProcessor()).to(mockResultEndpoint);
}
};
}
Aggregations