Skip to content

Commit 1340556

Browse files
authored
Add inDir into ApplicationTests
Signed-off-by: Artem Bilan <[email protected]>
1 parent 3b3d332 commit 1340556

File tree

1 file changed

+3
-2
lines changed
  • applications/file-split-ftp/src/test/java/org/springframework/integration/samples/filesplit

1 file changed

+3
-2
lines changed

applications/file-split-ftp/src/test/java/org/springframework/integration/samples/filesplit/ApplicationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ public void testFailure() throws Exception {
131131
* Verify the email was sent.
132132
*/
133133
private MimeMessage runTest(boolean fail) throws Exception {
134-
File in = new File("/tmp/in/", "foo");
135-
in.mkdirs();
134+
File inDir = new File("/tmp/in/");
135+
inDir.mkdirs();
136+
File in = new File(inDir, "foo");
136137
FileOutputStream fos = new FileOutputStream(in);
137138
fos.write("*002,foo,bar\n*006,baz,qux\n*009,fiz,buz\n".getBytes());
138139
fos.close();

0 commit comments

Comments
 (0)