1 17 package org.apache.servicemix.client; 18 19 import java.util.Set ; 20 21 import org.apache.activemq.transport.vm.VMTransportFactory; 22 import org.apache.xbean.spring.context.ClassPathXmlApplicationContext; 23 import org.springframework.context.support.AbstractXmlApplicationContext; 24 25 public class RemoteServiceMixClientTest extends ServiceMixClientTest { 26 27 protected void tearDown() throws Exception { 28 ((RemoteServiceMixClient) client).shutDown(); 29 super.tearDown(); 30 Set servers = VMTransportFactory.servers.keySet(); 31 String [] serverNames = (String []) servers.toArray(new String [0]); 32 for (int i = 0; i < serverNames.length; i++) { 33 VMTransportFactory.stopped(serverNames[i]); 34 } 35 } 36 37 protected ServiceMixClient getClient() throws Exception { 38 43 return super.getClient(); 44 } 45 46 protected AbstractXmlApplicationContext createBeanFactory() { 47 return new ClassPathXmlApplicationContext("org/apache/servicemix/client/remote.xml"); 48 } 49 50 57 58 } 59 | Popular Tags |