gnodet commented on code in PR #3554:
URL: https://github.com/apache/maven-surefire/pull/3554#discussion_r4792360602
##########
surefire-api/src/test/java/org/apache/maven/surefire/api/testset/ResolvedTestTest.java:
##########
@@ -72,5 +72,51 @@ public void testFromFullyQualifiedClass() {
classFileName = fromFullyQualifiedClass("my.package.MyTest.*");
assertEquals("my/package/MyTest.*", classFileName);
+
+ classFileName = fromFullyQualifiedClass("dev.aspectj.*");
+ assertEquals("dev/aspectj/*", classFileName);
+
+ classFileName = fromFullyQualifiedClass("dev.*");
+ assertEquals("dev/*", classFileName);
+ }
Review Comment:
**Excellent test coverage!** ✅
This test suite comprehensively covers the main use cases:
- ✅ Package wildcards matching all classes in a package
- ✅ Single-segment package wildcards
- ✅ Slash-authored patterns (unambiguous, no fallback)
- ✅ Lowercase class names (edge case with fallback)
The tests clearly document expected behavior and will serve as valuable
regression protection.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]