Make createFile() static, so it can be used in @BeforeClass methods.
This commit is contained in:
parent
3dc85f666d
commit
b5730496d3
1 changed files with 313 additions and 313 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue