This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
commit c309ba02e047980bae69fd9f779df35cf6a5574d Author: Gary Gregory <[email protected]> AuthorDate: Tue May 12 07:41:30 2026 -0400 Sort members --- .../io/TestAbstractFileLocationStrategy.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/java/org/apache/commons/configuration2/io/TestAbstractFileLocationStrategy.java b/src/test/java/org/apache/commons/configuration2/io/TestAbstractFileLocationStrategy.java index ac915278a..1126a2895 100644 --- a/src/test/java/org/apache/commons/configuration2/io/TestAbstractFileLocationStrategy.java +++ b/src/test/java/org/apache/commons/configuration2/io/TestAbstractFileLocationStrategy.java @@ -38,8 +38,12 @@ import org.junit.jupiter.params.provider.MethodSource; */ public class TestAbstractFileLocationStrategy { - private static URL url(final String spec) throws Exception { - return new URL(spec); + private static Set<Pattern> hosts(final String... regexes) { + final LinkedHashSet<Pattern> set = new LinkedHashSet<>(); + for (final String r : regexes) { + set.add(Pattern.compile(r, Pattern.CASE_INSENSITIVE)); + } + return set; } // Bypasses the validation of the single-arg constructor @@ -51,14 +55,6 @@ public class TestAbstractFileLocationStrategy { return new LinkedHashSet<>(Arrays.asList(values)); } - private static Set<Pattern> hosts(final String... regexes) { - final LinkedHashSet<Pattern> set = new LinkedHashSet<>(); - for (final String r : regexes) { - set.add(Pattern.compile(r, Pattern.CASE_INSENSITIVE)); - } - return set; - } - static Stream<Arguments> testCheckUrlAccepts() throws Exception { return Stream.of( // Empty scheme allows all. @@ -97,6 +93,10 @@ public class TestAbstractFileLocationStrategy { ); } + private static URL url(final String spec) throws Exception { + return new URL(spec); + } + @Test void testBuilder() { assertThrows(NullPointerException.class, () -> new AbstractFileLocationStrategy.StrategyBuilder<>(null));
