This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.4.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit a1325fd330bc5bf62d298d401ba9d4e68a074ee8 Author: Matthew Robbins <[email protected]> AuthorDate: Tue Jun 30 11:15:19 2020 +0100 CAMEL-15230 - remove redundant test --- .../decorators/RabbitmqSpanDecoratorTest.java | 41 ---------------------- 1 file changed, 41 deletions(-) diff --git a/components/camel-opentracing/src/test/java/org/apache/camel/opentracing/decorators/RabbitmqSpanDecoratorTest.java b/components/camel-opentracing/src/test/java/org/apache/camel/opentracing/decorators/RabbitmqSpanDecoratorTest.java deleted file mode 100644 index c67c024..0000000 --- a/components/camel-opentracing/src/test/java/org/apache/camel/opentracing/decorators/RabbitmqSpanDecoratorTest.java +++ /dev/null @@ -1,41 +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.opentracing.decorators; - -import org.apache.camel.Exchange; -import org.apache.camel.Message; -import org.junit.Test; -import org.mockito.Mockito; - -import static org.junit.Assert.assertEquals; - -public class RabbitmqSpanDecoratorTest { - - @Test - public void testGetDestinationHeaderTopic() { - Exchange exchange = Mockito.mock(Exchange.class); - Message message = Mockito.mock(Message.class); - - Mockito.when(exchange.getIn()).thenReturn(message); - Mockito.when(message.getHeader(RabbitmqSpanDecorator.EXCHANGE_NAME)).thenReturn("test"); - - RabbitmqSpanDecorator decorator = new RabbitmqSpanDecorator(); - - assertEquals("test", decorator.getDestination(exchange, null)); - } - -}
