|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2022 the original author or authors. |
| 2 | + * Copyright 2002-2024 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
48 | 48 | */
|
49 | 49 | class PathMatchingResourcePatternResolverTests {
|
50 | 50 |
|
51 |
| - private static final String[] CLASSES_IN_CORE_IO_SUPPORT = { "EncodedResource.class", |
| 51 | + private static final String[] CLASSES_IN_CORE_IO_SUPPORT = {"EncodedResource.class", |
52 | 52 | "LocalizedResourceHelper.class", "PathMatchingResourcePatternResolver.class", "PropertiesLoaderSupport.class",
|
53 | 53 | "PropertiesLoaderUtils.class", "ResourceArrayPropertyEditor.class", "ResourcePatternResolver.class",
|
54 |
| - "ResourcePatternUtils.class", "SpringFactoriesLoader.class" }; |
| 54 | + "ResourcePatternUtils.class", "SpringFactoriesLoader.class"}; |
55 | 55 |
|
56 |
| - private static final String[] TEST_CLASSES_IN_CORE_IO_SUPPORT = { "PathMatchingResourcePatternResolverTests.class" }; |
| 56 | + private static final String[] TEST_CLASSES_IN_CORE_IO_SUPPORT = {"PathMatchingResourcePatternResolverTests.class"}; |
57 | 57 |
|
58 |
| - private static final String[] CLASSES_IN_REACTOR_UTIL_ANNOTATION = { "NonNull.class", "NonNullApi.class", "Nullable.class" }; |
| 58 | + private static final String[] CLASSES_IN_REACTOR_UTIL_ANNOTATION = {"NonNull.class", "NonNullApi.class", "Nullable.class"}; |
59 | 59 |
|
60 | 60 |
|
61 | 61 | private final PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
|
@@ -166,7 +166,7 @@ private List<String> getSubPathsIgnoringClassFiles(String pattern, String pathPr
|
166 | 166 | }
|
167 | 167 |
|
168 | 168 | @Test
|
169 |
| - void usingFileProtocolWithoutWildcardInPatternAndEndingInSlashStarStar() { |
| 169 | + void usingFileProtocolWithoutWildcardInPatternAndEndingInSlashStarStar() { |
170 | 170 | Path testResourcesDir = Paths.get("src/test/resources").toAbsolutePath();
|
171 | 171 | String pattern = String.format("file:%s/scanned-resources/**", testResourcesDir);
|
172 | 172 | String pathPrefix = ".+?resources/";
|
@@ -294,8 +294,8 @@ private void assertExactSubPaths(String pattern, String pathPrefix, String... su
|
294 | 294 | }
|
295 | 295 |
|
296 | 296 | private String getPath(Resource resource) {
|
297 |
| - // Tests fail if we use resouce.getURL().getPath(). They would also fail on Mac OS when |
298 |
| - // using resouce.getURI().getPath() if the resource paths are not Unicode normalized. |
| 297 | + // Tests fail if we use resource.getURL().getPath(). They would also fail on macOS when |
| 298 | + // using resource.getURI().getPath() if the resource paths are not Unicode normalized. |
299 | 299 | //
|
300 | 300 | // On the JVM, all tests should pass when using resouce.getFile().getPath(); however,
|
301 | 301 | // we use FileSystemResource#getPath since this test class is sometimes run within a
|
|
0 commit comments