File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-integration-file/src/test/java/org/springframework/integration/file/dsl Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3131
3232import org .junit .jupiter .api .Test ;
3333import org .junit .jupiter .api .io .TempDir ;
34+ import org .junitpioneer .jupiter .RetryingTest ;
3435
3536import org .springframework .aop .TargetSource ;
3637import org .springframework .aop .framework .Advised ;
@@ -245,10 +246,10 @@ public void testFileWritingFlow() throws Exception {
245246 @ Qualifier ("fileSplitter.handler" )
246247 private MessageHandler fileSplitter ;
247248
248- @ Test
249+ @ RetryingTest ( 10 )
249250 public void testFileSplitterFlow () throws Exception {
250251 FileOutputStream file = new FileOutputStream (new File (tmpDir , "foo.tmp" ));
251- file .write (("HelloWorld\n à ¤Ã¶Ã¼ÃŸ" ).getBytes (Charset .defaultCharset ()));
252+ file .write (("HelloWorld" + System . lineSeparator () + "à ¤Ã¶Ã¼ÃŸ" ).getBytes (Charset .defaultCharset ()));
252253 file .flush ();
253254 file .close ();
254255
You can’t perform that action at this time.
0 commit comments