This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.18.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.18.x by this push: new 2f1783375c0 Remove test that due to slf4j logger clash causes INFO logging level to be false 2f1783375c0 is described below commit 2f1783375c05bd06f284937620c326408494c074 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sat Jul 30 12:57:33 2022 +0200 Remove test that due to slf4j logger clash causes INFO logging level to be false --- .../camel/builder/endpoint/LogAdvancedTest.java | 66 ---------------------- .../camel/builder/endpoint/LogToDAdvancedTest.java | 66 ---------------------- 2 files changed, 132 deletions(-) diff --git a/dsl/camel-endpointdsl/src/test/java/org/apache/camel/builder/endpoint/LogAdvancedTest.java b/dsl/camel-endpointdsl/src/test/java/org/apache/camel/builder/endpoint/LogAdvancedTest.java deleted file mode 100644 index 3576b694756..00000000000 --- a/dsl/camel-endpointdsl/src/test/java/org/apache/camel/builder/endpoint/LogAdvancedTest.java +++ /dev/null @@ -1,66 +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.builder.endpoint; - -import java.util.concurrent.atomic.AtomicBoolean; - -import org.apache.camel.Exchange; -import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.component.mock.MockEndpoint; -import org.apache.camel.spi.ExchangeFormatter; -import org.apache.camel.support.processor.DefaultExchangeFormatter; -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertTrue; - -public class LogAdvancedTest extends BaseEndpointDslTest { - - private final AtomicBoolean handled = new AtomicBoolean(); - - private ExchangeFormatter myFormatter = new DefaultExchangeFormatter() { - @Override - public String format(Exchange exchange) { - handled.set(true); - return "Hello"; - } - }; - - @Test - public void testLog() throws Exception { - MockEndpoint mock = getMockEndpoint("mock:result"); - mock.expectedMessageCount(10); - - context.getRouteController().startAllRoutes(); - - assertMockEndpointsSatisfied(); - - assertTrue(handled.get()); - } - - @Override - protected RouteBuilder createRouteBuilder() throws Exception { - return new EndpointRouteBuilder() { - @Override - public void configure() throws Exception { - from(timer("foo").delay(-1).period(0).repeatCount(10)) - .noAutoStartup() - .to("mock:result") - .to(log("foo").advanced().exchangeFormatter(myFormatter)); - } - }; - } -} diff --git a/dsl/camel-endpointdsl/src/test/java/org/apache/camel/builder/endpoint/LogToDAdvancedTest.java b/dsl/camel-endpointdsl/src/test/java/org/apache/camel/builder/endpoint/LogToDAdvancedTest.java deleted file mode 100644 index 8937f78f6f3..00000000000 --- a/dsl/camel-endpointdsl/src/test/java/org/apache/camel/builder/endpoint/LogToDAdvancedTest.java +++ /dev/null @@ -1,66 +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.builder.endpoint; - -import java.util.concurrent.atomic.AtomicBoolean; - -import org.apache.camel.Exchange; -import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.component.mock.MockEndpoint; -import org.apache.camel.spi.ExchangeFormatter; -import org.apache.camel.support.processor.DefaultExchangeFormatter; -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertTrue; - -public class LogToDAdvancedTest extends BaseEndpointDslTest { - - private final AtomicBoolean handled = new AtomicBoolean(); - - private ExchangeFormatter myFormatter = new DefaultExchangeFormatter() { - @Override - public String format(Exchange exchange) { - handled.set(true); - return "Hello"; - } - }; - - @Test - public void testLog() throws Exception { - MockEndpoint mock = getMockEndpoint("mock:result"); - mock.expectedMessageCount(10); - - context.getRouteController().startAllRoutes(); - - assertMockEndpointsSatisfied(); - - assertTrue(handled.get()); - } - - @Override - protected RouteBuilder createRouteBuilder() throws Exception { - return new EndpointRouteBuilder() { - @Override - public void configure() throws Exception { - from(timer("foo").delay(-1).period(0).repeatCount(10)) - .noAutoStartup() - .to("mock:result") - .toD(log("foo").advanced().exchangeFormatter(myFormatter)); - } - }; - } -}