camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] camel git commit: CAMEL-11875: Fixed CS
Date Tue, 03 Oct 2017 11:43:39 GMT
CAMEL-11875: Fixed CS


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

Branch: refs/heads/master
Commit: 971c80b7ff90450ef12f5d4ba130beeb29b85a84
Parents: 181b4af
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue Oct 3 13:42:44 2017 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue Oct 3 13:42:44 2017 +0200

----------------------------------------------------------------------
 .../box/BoxGroupsManagerIntegrationTest.java    | 28 +++++++++-----------
 1 file changed, 12 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/971c80b7/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/BoxGroupsManagerIntegrationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/BoxGroupsManagerIntegrationTest.java
b/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/BoxGroupsManagerIntegrationTest.java
index c3cb040..24ea2ec 100644
--- a/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/BoxGroupsManagerIntegrationTest.java
+++ b/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/BoxGroupsManagerIntegrationTest.java
@@ -24,7 +24,6 @@ import com.box.sdk.BoxAPIConnection;
 import com.box.sdk.BoxGroup;
 import com.box.sdk.BoxGroupMembership;
 import com.box.sdk.BoxUser;
-
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.box.api.BoxGroupsManager;
 import org.apache.camel.component.box.internal.BoxApiCollection;
@@ -36,14 +35,13 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * Test class for {@link BoxGroupsManager}
- * APIs.
+ * Test class for {@link BoxGroupsManager} APIs.
  */
 public class BoxGroupsManagerIntegrationTest extends AbstractBoxTestSupport {
 
     private static final Logger LOG = LoggerFactory.getLogger(BoxGroupsManagerIntegrationTest.class);
     private static final String PATH_PREFIX = BoxApiCollection.getCollection()
-            .getApiName(BoxGroupsManagerApiMethod.class).getName();
+        .getApiName(BoxGroupsManagerApiMethod.class).getName();
     private static final String CAMEL_TEST_GROUP_DESCRIPTION = "CamelTestGroupDescription";
     private static final String CAMEL_TEST_GROUP_NAME = "CamelTestGroup";
     private static final String CAMEL_TEST_CREATE_GROUP_NAME = "CamelTestCreateGroup";
@@ -62,7 +60,7 @@ public class BoxGroupsManagerIntegrationTest extends AbstractBoxTestSupport
{
         headers.put("CamelBox.role", null);
 
         final com.box.sdk.BoxGroupMembership result = requestBodyAndHeaders("direct://ADDGROUPMEMBERSHIP",
null,
-                headers);
+            headers);
 
         assertNotNull("addGroupMembership result", result);
         LOG.debug("addGroupMembership: " + result);
@@ -116,8 +114,7 @@ public class BoxGroupsManagerIntegrationTest extends AbstractBoxTestSupport
{
 
     @Test
     public void testGetAllGroups() throws Exception {
-        @SuppressWarnings("rawtypes")
-        final java.util.Collection result = requestBody("direct://GETALLGROUPS", null);
+        @SuppressWarnings("rawtypes") final java.util.Collection result = requestBody("direct://GETALLGROUPS",
null);
 
         assertNotNull("getAllGroups result", result);
         LOG.debug("getAllGroups: " + result);
@@ -135,7 +132,7 @@ public class BoxGroupsManagerIntegrationTest extends AbstractBoxTestSupport
{
     @Test
     public void testUpdateGroupInfo() throws Exception {
         BoxGroup.Info info = testGroup.getInfo();
-	info.setDescription(CAMEL_TEST_GROUP_DESCRIPTION);
+        info.setDescription(CAMEL_TEST_GROUP_DESCRIPTION);
 
         try {
             final Map<String, Object> headers = new HashMap<String, Object>();
@@ -167,8 +164,7 @@ public class BoxGroupsManagerIntegrationTest extends AbstractBoxTestSupport
{
     @Test
     public void testGetGroupMemberships() throws Exception {
         // using String message body for single parameter "groupId"
-        @SuppressWarnings("rawtypes")
-        final java.util.Collection result = requestBody("direct://GETGROUPMEMBERSHIPS", testGroup.getID());
+        @SuppressWarnings("rawtypes") final java.util.Collection result = requestBody("direct://GETGROUPMEMBERSHIPS",
testGroup.getID());
 
         assertNotNull("getGroupMemberships result", result);
         LOG.debug("getGroupMemberships: " + result);
@@ -186,7 +182,7 @@ public class BoxGroupsManagerIntegrationTest extends AbstractBoxTestSupport
{
         headers.put("CamelBox.info", info);
 
         final com.box.sdk.BoxGroupMembership result = requestBodyAndHeaders("direct://UPDATEGROUPMEMBERSHIPINFO",
null,
-                headers);
+            headers);
 
         assertNotNull("updateGroupMembershipInfo result", result);
         LOG.debug("updateGroupMembershipInfo: " + result);
@@ -207,7 +203,7 @@ public class BoxGroupsManagerIntegrationTest extends AbstractBoxTestSupport
{
 
                 // test route for deleteGroupMembership
                 from("direct://DELETEGROUPMEMBERSHIP")
-                        .to("box://" + PATH_PREFIX + "/deleteGroupMembership?inBody=groupMembershipId");
+                    .to("box://" + PATH_PREFIX + "/deleteGroupMembership?inBody=groupMembershipId");
 
                 // test route for getAllGroups
                 from("direct://GETALLGROUPS").to("box://" + PATH_PREFIX + "/getAllGroups");
@@ -217,11 +213,11 @@ public class BoxGroupsManagerIntegrationTest extends AbstractBoxTestSupport
{
 
                 // test route for getGroupMembershipInfo
                 from("direct://GETGROUPMEMBERSHIPINFO")
-                        .to("box://" + PATH_PREFIX + "/getGroupMembershipInfo?inBody=groupMemebershipId");
+                    .to("box://" + PATH_PREFIX + "/getGroupMembershipInfo?inBody=groupMemebershipId");
 
                 // test route for getGroupMemberships
                 from("direct://GETGROUPMEMBERSHIPS")
-                        .to("box://" + PATH_PREFIX + "/getGroupMemberships?inBody=groupId");
+                    .to("box://" + PATH_PREFIX + "/getGroupMemberships?inBody=groupId");
 
                 // test route for updateGroupMembershipInfo
                 from("direct://UPDATEGROUPMEMBERSHIPINFO").to("box://" + PATH_PREFIX + "/updateGroupMembershipInfo");
@@ -280,8 +276,8 @@ public class BoxGroupsManagerIntegrationTest extends AbstractBoxTestSupport
{
             return ((Collection<?>) it).size();
         } else {
             int i = 0;
-            for (@SuppressWarnings("unused") 
-            Object obj : it) {
+            for (@SuppressWarnings("unused")
+                Object obj : it) {
                 i++;
             }
             return i;


Mime
View raw message