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

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

commit 30d8594e8afe4f5cc2a515a305a54585482de759
Author: Guillaume Nodet <gno...@gmail.com>
AuthorDate: Fri Feb 12 15:23:19 2021 +0100

    Remove jms remoting test
---
 .../camel/component/jms/remoting/Calculator.java   | 22 ----------
 .../apache/camel/component/jms/remoting/ISay.java  | 26 -----------
 .../component/jms/remoting/JmsRemotingTest.java    | 38 ----------------
 .../camel/component/jms/remoting/SayService.java   | 43 ------------------
 .../apache/camel/component/jms/remoting/spring.xml | 51 ----------------------
 5 files changed, 180 deletions(-)

diff --git 
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/Calculator.java
 
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/Calculator.java
deleted file mode 100644
index 772220e..0000000
--- 
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/Calculator.java
+++ /dev/null
@@ -1,22 +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.remoting;
-
-public interface Calculator {
-
-    int add(int op1, int op2);
-}
diff --git 
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/ISay.java
 
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/ISay.java
deleted file mode 100644
index 2a0a047..0000000
--- 
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/ISay.java
+++ /dev/null
@@ -1,26 +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.remoting;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-public interface ISay extends Remote {
-
-    String say(String name) throws RemoteException;
-
-}
diff --git 
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/JmsRemotingTest.java
 
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/JmsRemotingTest.java
deleted file mode 100644
index 3866645..0000000
--- 
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/JmsRemotingTest.java
+++ /dev/null
@@ -1,38 +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.remoting;
-
-import org.apache.camel.test.spring.junit5.CamelSpringTestSupport;
-import org.junit.jupiter.api.Test;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-public class JmsRemotingTest extends CamelSpringTestSupport {
-
-    @Override
-    protected ClassPathXmlApplicationContext createApplicationContext() {
-        return new 
ClassPathXmlApplicationContext("org/apache/camel/component/jms/remoting/spring.xml");
-    }
-
-    @Test
-    public void testRemoting() throws Exception {
-        ISay proxy = applicationContext.getBean("sayProxy", ISay.class);
-        String rc = proxy.say("Camel");
-        assertEquals("Hello Camel", rc);
-    }
-}
diff --git 
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/SayService.java
 
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/SayService.java
deleted file mode 100644
index 717cf7c..0000000
--- 
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/remoting/SayService.java
+++ /dev/null
@@ -1,43 +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.remoting;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class SayService implements ISay {
-
-    private static final Logger LOG = 
LoggerFactory.getLogger(SayService.class);
-    private String message = "Hello";
-
-    public SayService() {
-    }
-
-    @Override
-    public String say(String name) {
-        LOG.info("Invoking say() method with {}", name);
-        return message + " " + name;
-    }
-
-    public String getMessage() {
-        return message;
-    }
-
-    public void setMessage(String message) {
-        this.message = message;
-    }
-}
diff --git 
a/components/camel-jms/src/test/resources/org/apache/camel/component/jms/remoting/spring.xml
 
b/components/camel-jms/src/test/resources/org/apache/camel/component/jms/remoting/spring.xml
deleted file mode 100644
index 940617a..0000000
--- 
a/components/camel-jms/src/test/resources/org/apache/camel/component/jms/remoting/spring.xml
+++ /dev/null
@@ -1,51 +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";
-       xmlns:camel="http://camel.apache.org/schema/spring";
-       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
-    ">
-
-  <bean id="sayService" 
class="org.apache.camel.component.jms.remoting.SayService"/>
-
-  <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";>
-      <jmxAgent id="agent" disabled="true"/>
-    <!-- create the client proxy -->
-    <proxy id="sayProxy" serviceUrl="activemq:test.serviceQueue"
-           serviceInterface="org.apache.camel.component.jms.remoting.ISay"/>
-
-    <!-- export the service -->
-    <export id="say" uri="activemq:test.serviceQueue" serviceRef="sayService" 
method="say"
-            serviceInterface="org.apache.camel.component.jms.remoting.ISay"/>
-  </camelContext>
-
-  <!-- configure the ActiveMQ component -->
-  <bean id="activemq" class="org.apache.camel.component.jms.JmsComponent">
-    <property name="connectionFactory">
-      <bean class="org.apache.activemq.spring.ActiveMQConnectionFactory">
-        <property name="brokerURL" 
value="vm://localhost?broker.persistent=false&amp;broker.useJmx=false"/>
-        <property name="trustAllPackages" value="true"/>
-      </bean>
-    </property>
-  </bean>
-
-</beans>

Reply via email to