1 package org.apache.turbine.services.xmlrpc.util; 2 3 18 19 import junit.framework.Test; 20 import junit.framework.TestCase; 21 import junit.framework.TestSuite; 22 23 29 public class FileHandlerTest extends TestCase 30 { 31 34 public FileHandlerTest(String name) 35 { 36 super(name); 37 } 38 39 44 public static Test suite() 45 { 46 return new TestSuite(FileHandlerTest.class); 47 } 48 49 54 public void testSend() throws Exception 55 { 56 FileTransfer.send("http://localhost:9000/RPC2", 57 "test.location", 58 "test.txt", 59 "test.location", 60 "test.send"); 61 } 62 63 68 public void testGet() throws Exception 69 { 70 FileTransfer.get("http://localhost:9000/RPC2", 71 "test.location", 72 "test.txt", 73 "test.location", 74 "test.get"); 75 } 76 77 81 public void testRemove() throws Exception 82 { 83 FileTransfer.remove("http://localhost:9000/RPC2", 84 "test.location", 85 "test.txt"); 86 } 87 88 89 } 90 | Popular Tags |