You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/05/27 22:46:53 UTC

[commons-io] branch master updated: Small refactoring.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new 94be75e  Small refactoring.
94be75e is described below

commit 94be75e45726aeab75681b0b8570ecc4826a2384
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu May 27 18:46:50 2021 -0400

    Small refactoring.
---
 .../org/apache/commons/io/filefilter/RegexFileFilterTestCase.java  | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/io/filefilter/RegexFileFilterTestCase.java b/src/test/java/org/apache/commons/io/filefilter/RegexFileFilterTestCase.java
index 707a0a4..8eaa1d9 100644
--- a/src/test/java/org/apache/commons/io/filefilter/RegexFileFilterTestCase.java
+++ b/src/test/java/org/apache/commons/io/filefilter/RegexFileFilterTestCase.java
@@ -110,9 +110,12 @@ public class RegexFileFilterTestCase {
         assertFiltering(filter, new File("Test.java").toPath(), true);
         assertFiltering(filter, new File("test.java").toPath(), true);
         assertFiltering(filter, new File("tEST.java").toPath(), true);
+    }
 
+    @Test
+    public void testRegexEdgeCases() {
         try {
-            new RegexFileFilter((String)null);
+            new RegexFileFilter((String) null);
             fail();
         } catch (final IllegalArgumentException ignore) {
             // expected
@@ -133,7 +136,7 @@ public class RegexFileFilterTestCase {
         }
 
         try {
-            new RegexFileFilter((java.util.regex.Pattern)null);
+            new RegexFileFilter((java.util.regex.Pattern) null);
             fail();
         } catch (final IllegalArgumentException ignore) {
             // expected