This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ce7a884b954 CAMEL-20113: removed tests that are not working
ce7a884b954 is described below
commit ce7a884b954984aea609a09d988d01e06fef3809
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Wed Nov 15 11:20:59 2023 +0100
CAMEL-20113: removed tests that are not working
---
.../camel/itest/issues/RssToHttpIssueTest.java | 53 --------------------
.../camel/itest/mail/SpringMailEndpointTest.java | 56 ----------------------
.../NettyHttpClientChunkedResponseTest.java | 6 ---
3 files changed, 115 deletions(-)
diff --git
a/tests/camel-itest/src/test/java/org/apache/camel/itest/issues/RssToHttpIssueTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/issues/RssToHttpIssueTest.java
deleted file mode 100644
index d03d85fbade..00000000000
---
a/tests/camel-itest/src/test/java/org/apache/camel/itest/issues/RssToHttpIssueTest.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * 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
- *
- * 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.
- */
-package org.apache.camel.itest.issues;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.support.builder.Namespaces;
-import org.apache.camel.test.junit5.CamelTestSupport;
-import org.junit.jupiter.api.Disabled;
-import org.junit.jupiter.api.Test;
-
-public class RssToHttpIssueTest extends CamelTestSupport {
-
- @Test
- @Disabled
- public void testRssToHttpIssueTest() throws Exception {
- // ignore as it requires to be online for testing
- MockEndpoint mock = getMockEndpoint("mock:end");
- mock.expectedMinimumMessageCount(1);
-
- MockEndpoint.assertIsSatisfied(context);
- }
-
- @Override
- protected RouteBuilder createRouteBuilder() {
- return new RouteBuilder() {
- @Override
- public void configure() {
- Namespaces ns = new Namespaces("atom",
"http://www.w3.org/2005/Atom");
- from("rss:http://www.plosone.org/article/feed")
- .marshal().rss()
-
.setHeader(Exchange.HTTP_URI).xpath("//atom:entry/atom:link[@type=\"application/pdf\"]/@href",
ns)
- .to("http://dummy")
- .to("mock:end");
- }
- };
- }
-}
diff --git
a/tests/camel-itest/src/test/java/org/apache/camel/itest/mail/SpringMailEndpointTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/mail/SpringMailEndpointTest.java
deleted file mode 100644
index a2f5c24449d..00000000000
---
a/tests/camel-itest/src/test/java/org/apache/camel/itest/mail/SpringMailEndpointTest.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * 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
- *
- * 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.
- */
-package org.apache.camel.itest.mail;
-
-import org.apache.camel.EndpointInject;
-import org.apache.camel.ProducerTemplate;
-import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.test.spring.junit5.CamelSpringTest;
-import org.junit.jupiter.api.Disabled;
-import org.junit.jupiter.api.Test;
-import org.jvnet.mock_javamail.Mailbox;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.test.context.ContextConfiguration;
-
-/**
- * Unit testing Mail configured using spring bean
- */
-@CamelSpringTest
-@ContextConfiguration
-@Disabled
-public class SpringMailEndpointTest {
-
- @Autowired
- protected ProducerTemplate template;
- @EndpointInject("mock:result")
- protected MockEndpoint result;
-
- @Test
- void testMailEndpointAsSpringBean() throws Exception {
- Mailbox.clearAll();
-
- String body = "Hello Claus.\nYes it does.\n\nRegards James.";
-
- result.expectedBodiesReceived(body);
- result.expectedHeaderReceived("subject", "Hello Camel");
-
- template.sendBodyAndHeader("smtp://james2@localhost", body, "subject",
"Hello Camel");
-
- result.assertIsSatisfied();
- }
-
-}
diff --git
a/tests/camel-itest/src/test/java/org/apache/camel/itest/nettyhttp/NettyHttpClientChunkedResponseTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/nettyhttp/NettyHttpClientChunkedResponseTest.java
index 5e9bc8386a4..7f500f05cbc 100644
---
a/tests/camel-itest/src/test/java/org/apache/camel/itest/nettyhttp/NettyHttpClientChunkedResponseTest.java
+++
b/tests/camel-itest/src/test/java/org/apache/camel/itest/nettyhttp/NettyHttpClientChunkedResponseTest.java
@@ -31,12 +31,6 @@ public class NettyHttpClientChunkedResponseTest extends
CamelTestSupport {
private int port1;
private int port2;
- @Disabled("TODO: investigate for Camel 3.0")
- @Test
- void testNettyHttpClientChunked() {
- invokeService(port1, true);
- }
-
@Test
void testNettyHttpRouteClientChunked() {
invokeService(port2, false);