Make createFile() static, so it can be used in @BeforeClass methods.

This commit is contained in:
jeb228 2010-02-25 19:57:54 +00:00
parent 3dc85f666d
commit b5730496d3

View file

@ -225,8 +225,8 @@ public abstract class AbstractTestClass {
/**
* Create a file and fill it with the contents provided.
*/
protected File createFile(File directory, String filename, String contents)
throws IOException {
protected static File createFile(File directory, String filename,
String contents) throws IOException {
Writer writer = null;
try {
File file = new File(directory, filename);