using File constructor that accepts parent directory

This commit is contained in:
Mark Fisher
2010-04-14 01:28:47 +00:00
parent dee7f85e4a
commit 2229ef8bdd

View File

@@ -81,7 +81,7 @@ public class FileOutboundGatewayIntegrationTests {
@BeforeClass
public static void setupClass() {
workDir = new File(System.getProperty("java.io.tmpdir") + File.separator + "anyDir");
workDir = new File(System.getProperty("java.io.tmpdir"), "anyDir");
workDir.mkdir();
workDir.deleteOnExit();
}