Fixed CS
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a3d9020c Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a3d9020c Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a3d9020c Branch: refs/heads/master Commit: a3d9020c2a5efb5da02ca97bc577023bd414c9b1 Parents: 52fdb92 Author: Claus Ibsen <[email protected]> Authored: Wed Jul 29 12:40:03 2015 +0200 Committer: Claus Ibsen <[email protected]> Committed: Wed Jul 29 12:40:03 2015 +0200 ---------------------------------------------------------------------- .../component/rss/RssEntryPollingConsumer.java | 4 +- .../camel/component/rss/RssPollingConsumer.java | 2 +- .../apache/camel/component/rss/RssUtils.java | 2 +- .../camel/component/rss/JettyTestServer.java | 49 +++++++++----------- ...ssEntryPollingConsumerWithBasicAuthTest.java | 8 +--- .../RssEntryPollingConsumerWithFilterTest.java | 16 +++---- .../component/rss/RssEntrySortDefaultsTest.java | 4 +- .../camel/component/rss/RssEntrySortTest.java | 18 ++++--- .../camel/component/rss/RssFilterTest.java | 5 +- .../rss/RssHttpNoCamelParametersTest.java | 3 -- .../rss/RssMultipleEndpointsIssueTest.java | 3 -- .../component/rss/RssPollingConsumerTest.java | 1 - .../RssPollingConsumerWithBasicAuthTest.java | 26 +++++------ .../component/rss/RssUriEncodingIssueTest.java | 2 +- 14 files changed, 60 insertions(+), 83 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEntryPollingConsumer.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEntryPollingConsumer.java b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEntryPollingConsumer.java index 7af6de9..4136e01 100644 --- a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEntryPollingConsumer.java +++ b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEntryPollingConsumer.java @@ -37,7 +37,7 @@ public class RssEntryPollingConsumer extends FeedEntryPollingConsumer { @Override protected void populateList(Object feed) throws Exception { if (list == null) { - list = ((SyndFeed)feed).getEntries(); + list = ((SyndFeed) feed).getEntries(); if (endpoint.isSortEntries()) { sortEntries(); } @@ -52,7 +52,7 @@ public class RssEntryPollingConsumer extends FeedEntryPollingConsumer { @Override protected Object createFeed() throws Exception { - if ( ObjectHelper.isEmpty(endpoint.getUsername()) || ObjectHelper.isEmpty(endpoint.getPassword())) { + if (ObjectHelper.isEmpty(endpoint.getUsername()) || ObjectHelper.isEmpty(endpoint.getPassword())) { return RssUtils.createFeed(endpoint.getFeedUri(), RssEntryPollingConsumer.class.getClassLoader()); } else { return RssUtils.createFeed(endpoint.getFeedUri(), endpoint.getUsername(), endpoint.getPassword(), RssEntryPollingConsumer.class.getClassLoader()); http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssPollingConsumer.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssPollingConsumer.java b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssPollingConsumer.java index 0f4e216..6b22b10 100644 --- a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssPollingConsumer.java +++ b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssPollingConsumer.java @@ -31,7 +31,7 @@ public class RssPollingConsumer extends FeedPollingConsumer { @Override protected Object createFeed() throws Exception { - if ( ObjectHelper.isEmpty(endpoint.getUsername()) || ObjectHelper.isEmpty(endpoint.getPassword())) { + if (ObjectHelper.isEmpty(endpoint.getUsername()) || ObjectHelper.isEmpty(endpoint.getPassword())) { return RssUtils.createFeed(endpoint.getFeedUri()); } else { return RssUtils.createFeed(endpoint.getFeedUri(), endpoint.getUsername(), endpoint.getPassword()); http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssUtils.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssUtils.java b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssUtils.java index 1796d9b..8744565 100644 --- a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssUtils.java +++ b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssUtils.java @@ -17,12 +17,12 @@ package org.apache.camel.component.rss; import java.io.InputStream; +import java.net.HttpURLConnection; import java.net.URL; import com.sun.syndication.feed.synd.SyndFeed; import com.sun.syndication.io.SyndFeedInput; import com.sun.syndication.io.XmlReader; -import java.net.HttpURLConnection; import org.apache.commons.codec.binary.Base64; public final class RssUtils { http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/test/java/org/apache/camel/component/rss/JettyTestServer.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/JettyTestServer.java b/components/camel-rss/src/test/java/org/apache/camel/component/rss/JettyTestServer.java index c85bbab..89806ab 100644 --- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/JettyTestServer.java +++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/JettyTestServer.java @@ -1,18 +1,18 @@ /** * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with this - * work for additional information regarding copyright ownership. The ASF - * licenses this file to You under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package org.apache.camel.component.rss; @@ -22,6 +22,7 @@ import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; + import org.apache.commons.io.FileUtils; import org.eclipse.jetty.security.ConstraintMapping; import org.eclipse.jetty.security.ConstraintSecurityHandler; @@ -33,25 +34,23 @@ import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHolder; import org.eclipse.jetty.util.security.Constraint; import org.eclipse.jetty.util.security.Credential; -import static org.junit.Assert.fail; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - * - * @author Alexander Friedrichs - */ -public class JettyTestServer { +import static org.junit.Assert.fail; + +public final class JettyTestServer { private static final Logger LOG = LoggerFactory.getLogger(JettyTestServer.class); - private static JettyTestServer _INSTANCE; + private static JettyTestServer instance; - private Server server; public int port; + private Server server; + private JettyTestServer() { } - + public void startServer() { server = new Server(0); @@ -83,7 +82,6 @@ public class JettyTestServer { } private SecurityHandler basicAuth(String username, String password, String realm) { - HashLoginService l = new HashLoginService(); l.putUser(username, Credential.getCredential(password), new String[]{"user"}); l.setName(realm); @@ -104,14 +102,13 @@ public class JettyTestServer { csh.setLoginService(l); return csh; - } public static JettyTestServer getInstance() { - if (_INSTANCE == null) { - _INSTANCE = new JettyTestServer(); + if (instance == null) { + instance = new JettyTestServer(); } - return _INSTANCE; + return instance; } private class MyHttpServlet extends HttpServlet { @@ -119,9 +116,9 @@ public class JettyTestServer { private static final long serialVersionUID = 5594945031962091041L; @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) - throws ServletException, IOException { + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.getWriter().write(FileUtils.readFileToString(new File("src/test/data/rss20.xml"))); } } + } http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithBasicAuthTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithBasicAuthTest.java b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithBasicAuthTest.java index ba742bc..3fde88a 100644 --- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithBasicAuthTest.java +++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithBasicAuthTest.java @@ -23,12 +23,8 @@ import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; -/** - * - * @author Alexander Friedrichs - */ public class RssEntryPollingConsumerWithBasicAuthTest extends CamelTestSupport { - + @Test public void testListOfEntriesIsSplitIntoPieces() throws Exception { MockEndpoint mock = getMockEndpoint("mock:result"); @@ -41,7 +37,7 @@ public class RssEntryPollingConsumerWithBasicAuthTest extends CamelTestSupport { return new RouteBuilder() { @Override public void configure() throws Exception { - from("rss:http://localhost:"+JettyTestServer.getInstance().port+"/?splitEntries=true&sortEntries=true&consumer.delay=100&username=camel&password=camelPass").to("mock:result"); + from("rss:http://localhost:" + JettyTestServer.getInstance().port + "/?splitEntries=true&sortEntries=true&consumer.delay=100&username=camel&password=camelPass").to("mock:result"); } }; } http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithFilterTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithFilterTest.java b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithFilterTest.java index 8c91879..aefd844 100644 --- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithFilterTest.java +++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithFilterTest.java @@ -19,12 +19,10 @@ package org.apache.camel.component.rss; import java.util.Calendar; import java.util.Date; import java.util.TimeZone; - import javax.naming.Context; import com.sun.syndication.feed.synd.SyndEntry; import com.sun.syndication.feed.synd.SyndFeed; - import org.apache.camel.Exchange; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; @@ -41,29 +39,29 @@ public class RssEntryPollingConsumerWithFilterTest extends CamelTestSupport { mock.expectedMessageCount(2); mock.assertIsSatisfied(); } - + @Override protected Context createJndiContext() throws Exception { JndiContext answer = new JndiContext(); - + // timestamp from the feed to use as base // Fri, 31 Oct 2008 12:02:21 -0500 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT-5:00")); cal.set(2008, Calendar.OCTOBER, 31, 12, 02, 21); - + answer.bind("myBean", new MyBean(cal.getTime())); return answer; } - + protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { public void configure() throws Exception { from("rss:file:src/test/data/rss20.xml?splitEntries=true&consumer.delay=100"). - filter().method("myBean", "isAfterDate").to("mock:result"); + filter().method("myBean", "isAfterDate").to("mock:result"); } }; } - + public static class MyBean { private final Date time; @@ -75,7 +73,7 @@ public class RssEntryPollingConsumerWithFilterTest extends CamelTestSupport { SyndFeed feed = ex.getIn().getBody(SyndFeed.class); assertTrue(feed.getEntries().size() == 1); SyndEntry entry = (SyndEntry) feed.getEntries().get(0); - return entry.getPublishedDate().after(time); + return entry.getPublishedDate().after(time); } } } http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortDefaultsTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortDefaultsTest.java b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortDefaultsTest.java index 8fad55e..6cbc124 100644 --- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortDefaultsTest.java +++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortDefaultsTest.java @@ -18,12 +18,12 @@ package org.apache.camel.component.rss; import org.apache.camel.builder.RouteBuilder; -public class RssEntrySortDefaultsTest extends RssEntrySortTest { +public class RssEntrySortDefaultsTest extends RssEntrySortTest { protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { public void configure() throws Exception { from("rss:file:src/test/data/rss20.xml?splitEntries=true&sortEntries=true&consumer.delay=50").to("mock:sorted"); - + // should NOT sort by default from("rss:file:src/test/data/rss20.xml?splitEntries=true&consumer.delay=50").to("mock:unsorted"); } http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortTest.java b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortTest.java index df245c5..b726acc 100644 --- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortTest.java +++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortTest.java @@ -17,12 +17,10 @@ package org.apache.camel.component.rss; import java.util.Date; - import javax.naming.Context; import com.sun.syndication.feed.synd.SyndEntry; import com.sun.syndication.feed.synd.SyndFeed; - import org.apache.camel.Body; import org.apache.camel.builder.ExpressionBuilder; import org.apache.camel.builder.RouteBuilder; @@ -34,7 +32,7 @@ import org.junit.Test; public class RssEntrySortTest extends CamelTestSupport { @Test - public void testSortedEntries() throws Exception { + public void testSortedEntries() throws Exception { MockEndpoint mock = getMockEndpoint("mock:sorted"); mock.expectsAscending(ExpressionBuilder.beanExpression("myBean", "getPubDate")); mock.expectedMessageCount(10); @@ -43,21 +41,21 @@ public class RssEntrySortTest extends CamelTestSupport { } @Test - public void testUnSortedEntries() throws Exception { + public void testUnSortedEntries() throws Exception { MockEndpoint mock = getMockEndpoint("mock:unsorted"); mock.expectsAscending(ExpressionBuilder.beanExpression("myBean", "getPubDate")); mock.expectedMessageCount(10); mock.setResultWaitTime(2000L); mock.assertIsNotSatisfied(2000L); - } - + } + @Override protected Context createJndiContext() throws Exception { JndiContext jndi = new JndiContext(); jndi.bind("myBean", new MyBean()); return jndi; } - + protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { public void configure() throws Exception { @@ -66,7 +64,7 @@ public class RssEntrySortTest extends CamelTestSupport { } }; } - + public static class MyBean { public Date getPubDate(@Body Object body) { SyndFeed feed = (SyndFeed) body; @@ -74,8 +72,8 @@ public class RssEntrySortTest extends CamelTestSupport { Date date = syndEntry.getUpdatedDate(); if (date == null) { date = syndEntry.getPublishedDate(); - } - return date; + } + return date; } } } http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java index 042b998..242737a 100644 --- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java +++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java @@ -20,7 +20,6 @@ import javax.naming.Context; import com.sun.syndication.feed.synd.SyndEntry; import com.sun.syndication.feed.synd.SyndFeed; - import org.apache.camel.Body; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; @@ -48,11 +47,11 @@ public class RssFilterTest extends CamelTestSupport { return new RouteBuilder() { public void configure() throws Exception { // See RssFilterWithXPathTest for an example of how to do this with XPath - + // START SNIPPET: ex1 // only entries with Camel in the title will get through the filter from("rss:file:src/test/data/rss20.xml?splitEntries=true&consumer.delay=100"). - filter().method("myFilterBean", "titleContainsCamel").to("mock:result"); + filter().method("myFilterBean", "titleContainsCamel").to("mock:result"); // END SNIPPET: ex1 } }; http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssHttpNoCamelParametersTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssHttpNoCamelParametersTest.java b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssHttpNoCamelParametersTest.java index c128219..f2c550a 100644 --- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssHttpNoCamelParametersTest.java +++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssHttpNoCamelParametersTest.java @@ -19,9 +19,6 @@ package org.apache.camel.component.rss; import org.apache.camel.test.junit4.CamelTestSupport; import org.junit.Test; -/** - * @version - */ public class RssHttpNoCamelParametersTest extends CamelTestSupport { @Test http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssMultipleEndpointsIssueTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssMultipleEndpointsIssueTest.java b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssMultipleEndpointsIssueTest.java index e7080de..e1841d1 100644 --- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssMultipleEndpointsIssueTest.java +++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssMultipleEndpointsIssueTest.java @@ -22,9 +22,6 @@ import org.apache.camel.test.junit4.CamelTestSupport; import org.junit.Ignore; import org.junit.Test; -/** - * @version - */ public class RssMultipleEndpointsIssueTest extends CamelTestSupport { @Test http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerTest.java b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerTest.java index fe8413f..415af8c 100644 --- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerTest.java +++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerTest.java @@ -17,7 +17,6 @@ package org.apache.camel.component.rss; import com.sun.syndication.feed.synd.SyndFeed; - import org.apache.camel.Exchange; import org.apache.camel.Message; import org.apache.camel.builder.RouteBuilder; http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerWithBasicAuthTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerWithBasicAuthTest.java b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerWithBasicAuthTest.java index fba5d8d..5ff9e5c 100644 --- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerWithBasicAuthTest.java +++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerWithBasicAuthTest.java @@ -1,18 +1,18 @@ /** * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with this - * work for additional information regarding copyright ownership. The ASF - * licenses this file to You under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package org.apache.camel.component.rss; @@ -20,10 +20,6 @@ import org.apache.camel.builder.RouteBuilder; import org.junit.AfterClass; import org.junit.BeforeClass; -/** - * - * @author Alexander Friedrichs - */ public class RssPollingConsumerWithBasicAuthTest extends RssPollingConsumerTest { @Override @@ -31,7 +27,7 @@ public class RssPollingConsumerWithBasicAuthTest extends RssPollingConsumerTest return new RouteBuilder() { @Override public void configure() throws Exception { - from("rss:http://localhost:"+JettyTestServer.getInstance().port+"/?splitEntries=false&username=camel&password=camelPass").to("mock:result"); + from("rss:http://localhost:" + JettyTestServer.getInstance().port + "/?splitEntries=false&username=camel&password=camelPass").to("mock:result"); } }; } http://git-wip-us.apache.org/repos/asf/camel/blob/a3d9020c/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssUriEncodingIssueTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssUriEncodingIssueTest.java b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssUriEncodingIssueTest.java index 8ed7a44..735073f 100644 --- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssUriEncodingIssueTest.java +++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssUriEncodingIssueTest.java @@ -23,7 +23,7 @@ import org.junit.Ignore; import org.junit.Test; /** - * @version + * @version */ @Ignore("Must be online") public class RssUriEncodingIssueTest extends CamelTestSupport {
