You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/resources/Resources.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/resources/ResourcesClassLoader.java
+23-16
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,9 @@
19
19
importjava.io.IOException;
20
20
importjava.io.UncheckedIOException;
21
21
importjava.net.URL;
22
-
importjava.nio.file.Files;
23
-
importjava.nio.file.Path;
22
+
importjava.util.ArrayList;
24
23
importjava.util.Collections;
25
24
importjava.util.Enumeration;
26
-
importjava.util.List;
27
25
28
26
/**
29
27
* A {@link ClassLoader} that provides access to {@link Resources resources}.
@@ -40,23 +38,32 @@ class ResourcesClassLoader extends ClassLoader {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/resources/ResourcesExtension.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/resources/WithResource.java
+7
Original file line number
Diff line number
Diff line change
@@ -54,4 +54,11 @@
54
54
*/
55
55
Stringcontent() default"";
56
56
57
+
/**
58
+
* Whether the resource should be available in addition to those that are already on
59
+
* the classpath are instead of any existing resources with the same name.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-test-support/src/test/java/org/springframework/boot/testsupport/classpath/resources/ResourcesTests.java
0 commit comments