| 1 4 package net.sf.mybatchfwk.test.websitedownloader; 5 6 import java.io.File ; 7 import java.net.MalformedURLException ; 8 import java.net.URL ; 9 10 import junit.framework.TestCase; 11 import net.sf.mybatchfwk.BatchConfiguration; 12 import net.sf.mybatchfwk.BatchService; 13 import net.sf.mybatchfwk.history.FileExecutionHistory; 14 15 public class TestWebSiteDownloader extends TestCase { 16 17 public void testBatch() { 18 19 } 53 54 public static boolean deleteDir(File dir) { 55 if (dir.isDirectory()) { 56 String [] children = dir.list(); 57 for (int i=0; i<children.length; i++) { 58 boolean success = deleteDir(new File (dir, children[i])); 59 if (!success) { 60 return false; 61 } 62 } 63 } 64 65 return dir.delete(); 67 } 68 } 69 | Popular Tags |