KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > uk > ac > roe > antigen > ant > BuildGrabberTest


1 /*
2  * Created on 13-Jan-2005
3  *
4  * @todo To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */

7 package uk.ac.roe.antigen.ant;
8
9 import java.io.File JavaDoc;
10 import java.io.IOException JavaDoc;
11
12 import junit.framework.TestCase;
13
14 /**
15  * @author jdt
16  *
17  * @todo To change the template for this generated type comment go to
18  * Window - Preferences - Java - Code Style - Code Templates
19  */

20 public class BuildGrabberTest extends TestCase {
21     public void testGetFromClassPath() throws IOException JavaDoc {
22         BuildGrabber grabber = new BuildGrabber();
23         File JavaDoc tmp = grabber.grab("/uk/ac/roe/antigen/ant/test.jar");
24         File JavaDoc buildfile=new File JavaDoc(tmp,"build.xml");
25         assertTrue("build.xml does not exist",buildfile.exists());
26     }
27
28 }
29
Popular Tags