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

    https://github.com/apache/flink/pull/3206#discussion_r98027416
  
    --- Diff: 
flink-core/src/test/java/org/apache/flink/api/common/io/GlobFilePathFilterTest.java
 ---
    @@ -138,4 +140,27 @@ public void doubleStarPattern() {
                assertFalse(matcher.filterPath(new Path("a/b")));
                assertFalse(matcher.filterPath(new Path("a/b/c")));
        }
    +
    +   @Test(expected = NullPointerException.class)
    +   public void testIncluePatternIsNull() {
    +           new GlobFilePathFilter(
    +                   null,
    +                   Collections.<String>emptyList());
    +   }
    +
    +   @Test(expected = NullPointerException.class)
    +   public void testExcludePatternIsNull() {
    +           new GlobFilePathFilter(
    +                   Collections.singletonList("**"),
    +                   null);
    +   }
    +
    +   @Test
    +   public void testGlobFilterSerializable() throws IOException {
    +           GlobFilePathFilter matcher = new GlobFilePathFilter(
    +                   Collections.singletonList("**"),
    +                   Collections.<String>emptyList());
    +
    +           CommonTestUtils.createCopySerializable(matcher);
    --- End diff --
    
    A doof addition here would be to check that after the serialization, the 
filter behaves in the same way as before.


---
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