1 17 package org.apache.servicemix.components.file; 18 19 import java.io.File ; 20 21 import javax.xml.namespace.QName ; 22 23 import org.apache.servicemix.jbi.util.FileUtil; 24 import org.apache.servicemix.tck.TestSupport; 25 import org.springframework.context.support.AbstractXmlApplicationContext; 26 import org.apache.xbean.spring.context.ClassPathXmlApplicationContext; 27 28 31 public class FileTest extends TestSupport { 32 33 protected void setUp() throws Exception { 34 FileUtil.deleteFile(new File ("target/test-data/file")); 35 super.setUp(); 36 } 37 38 public void testSendMessagesToFileSystemThenPoollThem() throws Exception { 39 QName service = new QName ("http://servicemix.org/cheese/", "fileSender"); 40 41 assertSendAndReceiveMessages(service); 42 } 43 44 protected AbstractXmlApplicationContext createBeanFactory() { 45 return new ClassPathXmlApplicationContext("org/apache/servicemix/components/file/example.xml"); 46 } 47 } 48 | Popular Tags |