Github user mxm commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2109#discussion_r76199872
  
    --- Diff: 
flink-core/src/test/java/org/apache/flink/api/common/io/FileInputFormatTest.java
 ---
    @@ -314,43 +299,95 @@ public void testIgnoredUnderscoreFiles() {
        }
     
        @Test
    +   public void testExcludeFiles() {
    +           try {
    +                   final String contents = "CONTENTS";
    +
    +                   // create some accepted, some ignored files
    +
    +                   File child1 = temporaryFolder.newFile("dataFile1.txt");
    +                   File child2 = 
temporaryFolder.newFile("another_file.bin");
    +
    +                   File[] files = { child1, child2 };
    +
    +                   createTempFiles(contents.getBytes(), files);
    +
    +                   // test that only the valid files are accepted
    +
    +                   Configuration configuration = new Configuration();
    +
    +                   final DummyFileInputFormat format = new 
DummyFileInputFormat();
    +                   
format.setFilePath(temporaryFolder.getRoot().toURI().toString());
    +                   format.configure(configuration);
    +                   format.setFilesFilter(new GlobFilePathFilter(
    +                           Collections.singletonList("**"),
    --- End diff --
    
    Thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to