file.delete();
FileOutputStream fos = new FileOutputStream( file );
fos.write( fileContents.toString().getBytes() );
+
+ reader.close();
+ fos.close();
}
static void addAspectDocumentation(IProgramElement node, StringBuffer fileBuffer, int index ) {
import junit.framework.TestCase;
+import org.aspectj.util.FileUtil;
+
/**
* A long way to go until full coverage, but this is the place to add more.
*
protected File file8 = new File("../ajdoc/testdata/coverage/fluffy/bunny/rocks/UseThisAspectForLinkCheckToo.java");
protected File file9 = new File("../ajdoc/testdata/coverage/foo/PkgVisibleClass.java");
protected File file10 = new File("../ajdoc/testdata/coverage/foo/NoMembers.java");
-
- protected File outdir = new File("testdata/coverage/doc");
+
+ protected File outdir;
public void testOptions() {
outdir.delete();
protected void setUp() throws Exception {
super.setUp();
+ outdir = new File("testdata/coverage/doc");
}
protected void tearDown() throws Exception {
super.tearDown();
+
+ FileUtil.deleteContents(new File("ajdocworkingdir"));
+ (new File("ajdocworkingdir")).delete();
+
+ FileUtil.deleteContents(new File("testdata"));
+ (new File("testdata")).delete();
+
}
}