| Commit in servicemix/base/src/test on MAIN | |||
| java/org/servicemix/components/servicemix/ServiceMixComponent2Test.java | +53 | added 1.1 | |
| resources/org/servicemix/components/servicemix/example.xml | +16 | added 1.1 | |
| +69 | |||
Added snipplet comments.
servicemix/base/src/test/java/org/servicemix/components/servicemix
ServiceMixComponent2Test.java added at 1.1
diff -N ServiceMixComponent2Test.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ServiceMixComponent2Test.java 19 Aug 2005 00:05:51 -0000 1.1 @@ -0,0 +1,53 @@
+/**
+ *
+ * Copyright 2005 Unity Systems, LLC. http://www.unity-systems.com
+ *
+ * Licensed 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.servicemix.components.servicemix;
+
+import java.io.File;
+import java.net.URL;
+
+import junit.framework.TestCase;
+
+import org.servicemix.jbi.container.JBIContainer;
+import org.servicemix.TestSupport;
+import org.springframework.context.support.AbstractXmlApplicationContext;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+import javax.xml.namespace.QName;
+
+/**
+ *
+ * @version $Revision: 1.1 $
+ */
+public class ServiceMixComponent2Test extends TestSupport {
+
+ public void testSendMessagesToJmsThenOutofJmsToReceiver() throws Exception {
+
+ // Install the service assembly
+ String resource = "au1.zip";
+ URL componentResource = getClass().getResource(resource);
+ assertNotNull("The component JAR "+resource+" is missing from the classpath", componentResource);
+ jbi.installArchive(componentResource.toExternalForm());
+
+ Thread.sleep(1000*10);
+ }
+
+ protected AbstractXmlApplicationContext createBeanFactory() {
+ return new ClassPathXmlApplicationContext("org/servicemix/components/servicemix/example.xml");
+ }
+
+}
servicemix/base/src/test/resources/org/servicemix/components/servicemix
example.xml added at 1.1
diff -N example.xml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ example.xml 19 Aug 2005 00:05:51 -0000 1.1 @@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?> +<!-- START SNIPPET: config --> +<beans xmlns:foo="http://servicemix.org/cheese/"> + + <container id="jbi"> + <components> + + <!-- START SNIPPET: servicemix-component --> + <component id="servicemix-component" class="org.servicemix.components.servicemix.ServiceMixComponent"/> + <!-- END SNIPPET: servicemix-component --> + + </components> + </container> + +</beans> +<!-- END SNIPPET: config -->
