camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject git commit: CAME-7902 Fixed the CS error of ClosePullRequestProducerTest
Date Tue, 14 Oct 2014 03:41:39 GMT
Repository: camel
Updated Branches:
  refs/heads/master 42d0a74e9 -> 72c1b81d5


CAME-7902 Fixed the CS error of ClosePullRequestProducerTest


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/72c1b81d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/72c1b81d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/72c1b81d

Branch: refs/heads/master
Commit: 72c1b81d50b4b34e3f73d488d9dd38f96d93d420
Parents: 42d0a74
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Tue Oct 14 11:41:29 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Tue Oct 14 11:41:29 2014 +0800

----------------------------------------------------------------------
 .../component/github/ClosePullRequestProducerTest.java | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/72c1b81d/components/camel-github/src/test/java/org/apache/camel/component/github/ClosePullRequestProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-github/src/test/java/org/apache/camel/component/github/ClosePullRequestProducerTest.java
b/components/camel-github/src/test/java/org/apache/camel/component/github/ClosePullRequestProducerTest.java
index 217a6c7..6b5a1a8 100755
--- a/components/camel-github/src/test/java/org/apache/camel/component/github/ClosePullRequestProducerTest.java
+++ b/components/camel-github/src/test/java/org/apache/camel/component/github/ClosePullRequestProducerTest.java
@@ -16,25 +16,24 @@
  */
 package org.apache.camel.component.github;
 
+import java.util.List;
+import java.util.Map;
+
 import org.apache.camel.Endpoint;
 import org.apache.camel.Exchange;
 import org.apache.camel.Message;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
-import org.eclipse.egit.github.core.CommitComment;
 import org.eclipse.egit.github.core.PullRequest;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
-
 public class ClosePullRequestProducerTest extends GitHubComponentTestBase {
+    public static final String PULL_REQUEST_PRODUCER_ENDPOINT = "direct:validPullRequest";
     protected static final Logger LOG = LoggerFactory.getLogger(ClosePullRequestProducerTest.class);
     private long latestPullRequestId;
-    public static final String PULL_REQUEST_PRODUCER_ENDPOINT = "direct:validPullRequest";
+    
 
     @Override
     protected RouteBuilder createRouteBuilder() throws Exception {
@@ -72,7 +71,7 @@ public class ClosePullRequestProducerTest extends GitHubComponentTestBase
{
         List<PullRequest> closedPullRequests = pullRequestService.getPullRequests(null,
"closed");
         assertNotNull(closedPullRequests);
         boolean found = false;
-        for(PullRequest pr : closedPullRequests) {
+        for (PullRequest pr : closedPullRequests) {
             if (pr.getId() == latestPullRequestId) {
                 found = true;
                 break;


Mime
View raw message