CAMEL-7872 Fixed the CS errors
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/07850131 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/07850131 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/07850131 Branch: refs/heads/master Commit: 07850131677117ac831cc7146c4c838f1ed5dccb Parents: e1a04be Author: Willem Jiang <willem.ji...@gmail.com> Authored: Mon Oct 20 11:17:38 2014 +0800 Committer: Willem Jiang <willem.ji...@gmail.com> Committed: Mon Oct 20 11:34:19 2014 +0800 ---------------------------------------------------------------------- .../camel/component/mail/MailPostProcessActionTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/07850131/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailPostProcessActionTest.java ---------------------------------------------------------------------- diff --git a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailPostProcessActionTest.java b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailPostProcessActionTest.java index 97c1aa4..c9a1655 100644 --- a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailPostProcessActionTest.java +++ b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailPostProcessActionTest.java @@ -16,6 +16,11 @@ */ package org.apache.camel.component.mail; +import javax.mail.Folder; +import javax.mail.Message; +import javax.mail.Store; +import javax.mail.internet.MimeMessage; + import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.impl.JndiRegistry; @@ -25,11 +30,6 @@ import org.jvnet.mock_javamail.Mailbox; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.mail.Folder; -import javax.mail.Message; -import javax.mail.Store; -import javax.mail.internet.MimeMessage; - /** * Tests if post process action is called if it is set */ @@ -67,7 +67,7 @@ public class MailPostProcessActionTest extends CamelTestSupport { private void waitForActionCalled() throws InterruptedException { // Wait for a maximum of 500 ms for the action to be called for (int i = 0; i < 50; i++) { - if(action.hasBeenCalled()) { + if (action.hasBeenCalled()) { break; } LOG.debug("Sleeping for 10 millis to wait for action call");