We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bebcd60 commit 6248fc0Copy full SHA for 6248fc0
spring-boot/src/test/java/org/springframework/boot/test/AbstractConfigurationClassTests.java
@@ -16,6 +16,7 @@
16
17
package org.springframework.boot.test;
18
19
+import java.io.File;
20
import java.io.IOException;
21
import java.util.HashSet;
22
import java.util.Set;
@@ -81,7 +82,8 @@ private Set<AnnotationMetadata> findConfigurationClasses() throws IOException {
81
82
}
83
84
private boolean isTestClass(Resource resource) throws IOException {
- return resource.getFile().getAbsolutePath().contains("target/test-classes");
85
+ return resource.getFile().getAbsolutePath()
86
+ .contains("target" + File.separator + "test-classes");
87
88
89
private boolean isPublic(MethodMetadata methodMetadata) {
0 commit comments