This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 2896bcd  CAMEL-13808: Deleted test
2896bcd is described below

commit 2896bcdff925bfd448474bfe4a97c4c797d0bed9
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jul 31 15:24:48 2019 +0200

    CAMEL-13808: Deleted test
---
 .../intercept/DualInterceptSimpleRouteTest.java    | 59 ----------------------
 1 file changed, 59 deletions(-)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/processor/intercept/DualInterceptSimpleRouteTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/processor/intercept/DualInterceptSimpleRouteTest.java
deleted file mode 100644
index d0a13d4..0000000
--- 
a/core/camel-core/src/test/java/org/apache/camel/processor/intercept/DualInterceptSimpleRouteTest.java
+++ /dev/null
@@ -1,59 +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.builder.RouteBuilder;
-import org.junit.Test;
-
-public class DualInterceptSimpleRouteTest extends ContextTestSupport {
-
-    @Test
-    public void testDualIntercept() throws Exception {
-        getMockEndpoint("mock:foo").expectedMessageCount(1);
-        getMockEndpoint("mock:bar").expectedMessageCount(1);
-        getMockEndpoint("mock:result").expectedMessageCount(1);
-
-        getMockEndpoint("mock:intercepted").expectedMessageCount(6);
-        getMockEndpoint("mock:a").expectedMessageCount(3);
-        getMockEndpoint("mock:b").expectedMessageCount(3);
-
-        template.sendBody("direct:start", "Hello World");
-
-        // TODO: Using multiple intercept should be avoided
-        // assertMockEndpointsSatisfied();
-    }
-
-    @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
-        return new RouteBuilder() {
-            @Override
-            public void configure() throws Exception {
-                context.setTracing(true);
-
-                // it should generally be avoid to have dual interceptors as 
its a bit confusing
-                // but you can do it anyway
-                intercept().to("mock:intercepted");
-
-                intercept().to("mock:a").to("mock:b");
-
-                from("direct:start")
-                    .to("mock:foo").to("mock:bar").to("mock:result");
-            }
-        };
-    }
-}
\ No newline at end of file

Reply via email to