You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/04/22 08:17:25 UTC
(camel) branch main updated: (chores) camel-core: removed broken test
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 54c3ddbb6d9 (chores) camel-core: removed broken test
54c3ddbb6d9 is described below
commit 54c3ddbb6d99f66b7e7d13b12c4c93ec08bfa110
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Apr 19 12:43:06 2024 +0200
(chores) camel-core: removed broken test
- Non-portable
- Incorrectly named
---
.../intercept/FromFileInterceptSendToIssue.java | 56 ----------------------
.../FromFileInterceptSendToIssueTest.java | 0
2 files changed, 56 deletions(-)
diff --git a/core/camel-core/src/test/java/org/apache/camel/processor/intercept/FromFileInterceptSendToIssue.java b/core/camel-core/src/test/java/org/apache/camel/processor/intercept/FromFileInterceptSendToIssue.java
deleted file mode 100644
index 547d70762b1..00000000000
--- a/core/camel-core/src/test/java/org/apache/camel/processor/intercept/FromFileInterceptSendToIssue.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.processor.intercept;
-
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.Exchange;
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.mock.MockEndpoint;
-
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-/**
- * Based on an issue on the camel user forum.
- */
-public class FromFileInterceptSendToIssue extends ContextTestSupport {
-
- public void testInterceptSendTo() throws Exception {
- MockEndpoint mock = getMockEndpoint("mock:foo");
- mock.expectedMessageCount(1);
- mock.expectedPropertyReceived(Exchange.INTERCEPTED_ENDPOINT, "seda://foo");
-
- template.sendBodyAndHeader(fileUri(), "Hello World", Exchange.FILE_NAME, "input.txt");
-
- assertMockEndpointsSatisfied();
-
- Exchange exchange = mock.getReceivedExchanges().get(0);
- assertTrue(exchange.getFromEndpoint().getEndpointUri().startsWith(fileUri()));
- }
-
- @Override
- protected RouteBuilder createRouteBuilder() throws Exception {
- return new RouteBuilder() {
- @Override
- public void configure() throws Exception {
- interceptSendToEndpoint("seda:foo").to("mock:foo");
-
- from(fileUri("?initialDelay=0&delay=10")).setHeader(Exchange.FILE_NAME, constant("hello.txt"))
- .to("seda:foo");
- }
- };
- }
-}
diff --git a/core/camel-core/src/test/java/org/apache/camel/processor/intercept/FromFileInterceptSendToIssueTest.java b/core/camel-core/src/test/java/org/apache/camel/processor/intercept/FromFileInterceptSendToIssueTest.java
new file mode 100644
index 00000000000..e69de29bb2d