1 package fr.jayasoft.ivy.ant; 2 3 import java.io.File ; 4 5 import junit.framework.TestCase; 6 import fr.jayasoft.ivy.Ivy; 7 import fr.jayasoft.ivy.report.ResolveReport; 8 import fr.jayasoft.ivy.util.FileUtil; 9 10 public class AntBuildTriggerTest extends TestCase { 11 public void test() throws Exception { 12 assertFalse(new File ("test/triggers/ant-build/local/A/A.jar").exists()); 13 14 Ivy ivy = new Ivy(); 15 ivy.configure(new File ("test/triggers/ant-build/ivyconf.xml")); 16 17 ResolveReport r = ivy.resolve(new File ("test/triggers/ant-build/B/ivy.xml")); 18 assertFalse(r.hasError()); 19 20 assertTrue(new File ("test/triggers/ant-build/local/A/A.jar").exists()); 22 } 23 24 protected void tearDown() throws Exception { 25 FileUtil.forceDelete(new File ("test/triggers/ant-build/local/A")); 26 FileUtil.forceDelete(new File ("test/triggers/ant-build/cache")); 27 } 28 } 29 | Popular Tags |