Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 17 18 package org.apache.tools.ant.taskdefs; 19 20 import java.lang.reflect.Method ; 21 22 import org.apache.tools.ant.BuildFileTest; 23 import org.apache.tools.ant.BuildException; 24 import org.apache.tools.ant.util.FileNameMapper; 25 26 27 29 public class MultiMapTest extends BuildFileTest { 30 31 public MultiMapTest(String name) { 32 super(name); 33 } 34 35 public void setUp() { 36 configureProject("src/etc/testcases/taskdefs/multimap.xml"); 37 } 38 39 public void tearDown() { 40 executeTarget("cleanup"); 41 } 42 43 public void testMultiCopy() { 44 executeTarget("multicopy"); 45 } 46 47 public void testMultiMove() { 48 executeTarget("multimove"); 49 } 50 51 public void testSingleCopy() { 52 executeTarget("singlecopy"); 53 } 54 55 public void testSingleMove() { 56 executeTarget("singlemove"); 57 } 58 59 public void testCopyWithEmpty() { 60 executeTarget("copywithempty"); 61 } 62 63 public void testMoveWithEmpty() { 64 executeTarget("movewithempty"); 65 } 66 67 public static class TestMapper implements FileNameMapper { 68 public TestMapper() {} 69 public void setFrom(String from) {} 70 public void setTo(String to) {} 71 public String [] mapFileName(final String source_file_name) { 72 return new String [] { 73 source_file_name, source_file_name+".copy2" }; 74 } 75 } 76 } 77
| Popular Tags
|