3131/**
3232 *
3333 */
34- public class FromFilesMessageBodySourceTest {
34+ public class LocalFilesMessageBodySourceTest {
3535
3636 @ Rule
3737 public TemporaryFolder folder = new TemporaryFolder ();
@@ -40,7 +40,7 @@ public class FromFilesMessageBodySourceTest {
4040 File file = folder .newFile ("content.txt" );
4141 String content = "dummy content" ;
4242 write (file , content );
43- MessageBodySource creator = new FromFilesMessageBodySource (asList (file .getAbsolutePath ()));
43+ MessageBodySource creator = new LocalFilesMessageBodySource (asList (file .getAbsolutePath ()));
4444 byte [] body1 = creator .create (1 ).getBody ();
4545 byte [] body2 = creator .create (1 ).getBody ();
4646 assertEquals (content , new String (body1 , "UTF-8" ));
@@ -56,7 +56,7 @@ public class FromFilesMessageBodySourceTest {
5656 files .add (file .getAbsolutePath ());
5757 }
5858
59- MessageBodySource creator = new FromFilesMessageBodySource (files );
59+ MessageBodySource creator = new LocalFilesMessageBodySource (files );
6060 byte [] body0 = creator .create (0 ).getBody ();
6161 assertEquals ("content0" , new String (body0 , "UTF-8" ));
6262 byte [] body1 = creator .create (1 ).getBody ();
@@ -70,7 +70,7 @@ public class FromFilesMessageBodySourceTest {
7070 @ Test public void createFileDoesNotExist () throws Exception {
7171 File file = new File (folder .getRoot (), "dummy.txt" );
7272 try {
73- new FromFilesMessageBodySource (asList (file .getAbsolutePath ()));
73+ new LocalFilesMessageBodySource (asList (file .getAbsolutePath ()));
7474 fail ("File does not exist, exception should have thrown" );
7575 } catch (IllegalArgumentException e ) {
7676 // ok
0 commit comments