This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git
commit 63ef1f08f02fadb0522eba288577405d6f30e026 Author: Andrea Tarocchi <andrea.taroc...@gmail.com> AuthorDate: Fri Mar 5 22:17:03 2021 +0100 fix #969 : Convert NettyChannelBufferStreamCache from NettyHttpSource not converted to string. --- tests/itests-netty-http/pom.xml | 9 +++++++++ .../{surce => source}/CamelNettyHTTPPropertyFactory.java | 3 +-- .../nettyhttp/{surce => source}/CamelSourceNettyHTTPITCase.java | 4 ++-- tests/pom.xml | 1 + 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/itests-netty-http/pom.xml b/tests/itests-netty-http/pom.xml index ddb8bf7..88a0929 100644 --- a/tests/itests-netty-http/pom.xml +++ b/tests/itests-netty-http/pom.xml @@ -37,6 +37,15 @@ <scope>test</scope> </dependency> + <!-- test infra --> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-test-infra-common</artifactId> + <version>${camel.version}</version> + <type>test-jar</type> + <scope>test</scope> + </dependency> + <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-netty-http</artifactId> diff --git a/tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/surce/CamelNettyHTTPPropertyFactory.java b/tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/source/CamelNettyHTTPPropertyFactory.java similarity index 97% rename from tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/surce/CamelNettyHTTPPropertyFactory.java rename to tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/source/CamelNettyHTTPPropertyFactory.java index 1562328..e4df820 100644 --- a/tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/surce/CamelNettyHTTPPropertyFactory.java +++ b/tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/source/CamelNettyHTTPPropertyFactory.java @@ -14,8 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -package org.apache.camel.kafkaconnector.nettyhttp.surce; +package org.apache.camel.kafkaconnector.nettyhttp.source; import org.apache.camel.kafkaconnector.common.SourceConnectorPropertyFactory; diff --git a/tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/surce/CamelSourceNettyHTTPITCase.java b/tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/source/CamelSourceNettyHTTPITCase.java similarity index 98% rename from tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/surce/CamelSourceNettyHTTPITCase.java rename to tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/source/CamelSourceNettyHTTPITCase.java index e7e6468..41cb6e1 100644 --- a/tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/surce/CamelSourceNettyHTTPITCase.java +++ b/tests/itests-netty-http/src/test/java/org/apache/camel/kafkaconnector/nettyhttp/source/CamelSourceNettyHTTPITCase.java @@ -14,8 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -package org.apache.camel.kafkaconnector.nettyhttp.surce; +package org.apache.camel.kafkaconnector.nettyhttp.source; import org.apache.camel.kafkaconnector.common.ConnectorPropertyFactory; import org.apache.camel.kafkaconnector.common.test.CamelSourceTestSupport; @@ -115,6 +114,7 @@ public class CamelSourceNettyHTTPITCase extends CamelSourceTestSupport { } } + @Override protected void verifyMessages(TestMessageConsumer<?> consumer) { int received = consumer.consumedMessages().size(); assertEquals(expect, received, "Didn't process the expected amount of messages"); diff --git a/tests/pom.xml b/tests/pom.xml index 0c3ff80..16eeb17 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -54,6 +54,7 @@ <module>itests-salesforce</module> <module>itests-hdfs</module> <module>itests-mongodb</module> + <module>itests-netty-http</module> <module>itests-jdbc</module> <module>itests-azure-storage-blob</module> <module>itests-azure-storage-queue</module>