You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/01/21 07:54:57 UTC

[camel] 03/06: [CAMEL-16008] Implement consumer priority in camel

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

commit 5d04c95e0c3c69dcb1f245866027b5aef8173b65
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jan 21 08:07:52 2021 +0100

    [CAMEL-16008] Implement consumer priority in camel
---
 .../JmsEndpointWithCustomDestinationTest.java      | 51 ---------------------
 ...msEndpointWithCustomDestinationTest-context.xml | 52 ----------------------
 2 files changed, 103 deletions(-)

diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/config/JmsEndpointWithCustomDestinationTest.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/config/JmsEndpointWithCustomDestinationTest.java
deleted file mode 100644
index 0926b6b..0000000
--- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/config/JmsEndpointWithCustomDestinationTest.java
+++ /dev/null
@@ -1,51 +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.component.jms.config;
-
-import org.apache.activemq.command.ActiveMQQueue;
-import org.apache.camel.test.spring.junit5.CamelSpringTestSupport;
-import org.junit.jupiter.api.Test;
-import org.springframework.context.support.AbstractApplicationContext;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-
-public class JmsEndpointWithCustomDestinationTest extends CamelSpringTestSupport {
-
-    private Object expectedBody = "<hello>world!</hello>";
-
-    @Override
-    protected AbstractApplicationContext createApplicationContext() {
-        return new ClassPathXmlApplicationContext(
-                "org/apache/camel/component/jms/config/JmsEndpointWithCustomDestinationTest-context.xml");
-    }
-
-    @Test
-    public void testMessageSentToCustomEndpoint() throws Exception {
-        ActiveMQQueue jmsQueue = context.getRegistry().lookupByNameAndType("jmsQueue", ActiveMQQueue.class);
-        assertNotNull(jmsQueue, "jmsQueue");
-        assertEquals("Test.Camel.CustomEndpoint", jmsQueue.getPhysicalName(), "jmsqueue.getPhysicalName()");
-
-        getMockEndpoint("mock:result").expectedBodiesReceived(expectedBody);
-
-        template.sendBody("direct:start", expectedBody);
-
-        assertMockEndpointsSatisfied();
-    }
-
-}
diff --git a/components/camel-jms/src/test/resources/org/apache/camel/component/jms/config/JmsEndpointWithCustomDestinationTest-context.xml b/components/camel-jms/src/test/resources/org/apache/camel/component/jms/config/JmsEndpointWithCustomDestinationTest-context.xml
deleted file mode 100644
index 57b0eab..0000000
--- a/components/camel-jms/src/test/resources/org/apache/camel/component/jms/config/JmsEndpointWithCustomDestinationTest-context.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    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.
-
--->
-<beans xmlns="http://www.springframework.org/schema/beans"
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xsi:schemaLocation="
-         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
-         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
-
-    <camelContext xmlns="http://camel.apache.org/schema/spring">
-        <jmxAgent id="agent" disabled="true"/>
-        <route>
-            <from uri="direct:start"/>
-            <to uri="ref:customJmsEndpoint"/>
-        </route>
-        <route>
-            <from uri="ref:customJmsEndpoint"/>
-            <to uri="mock:result"/>
-        </route>
-    </camelContext>
-
-    <bean id="customJmsEndpoint" class="org.apache.camel.component.jms.JmsEndpoint">
-        <property name="connectionFactory">
-            <bean class="org.apache.activemq.ActiveMQConnectionFactory">
-                <property name="brokerURL" value="vm://localhost?broker.persistent=false&amp;broker.useJmx=false"/>
-            </bean>
-        </property>
-
-        <!-- lets specify the exact JMS destination to use -->
-        <property name="destination" ref="jmsQueue"/>
-    </bean>
-
-    <bean id="jmsQueue" class="org.apache.activemq.command.ActiveMQQueue">
-        <property name="physicalName" value="Test.Camel.CustomEndpoint"/>
-    </bean>
-</beans>