fxbonnet commented on code in PR #788:
URL: https://github.com/apache/maven-surefire/pull/788#discussion_r1798774808
##########
surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java:
##########
@@ -317,12 +317,14 @@ private String[] toClassMethodName(TestIdentifier
testIdentifier) {
boolean needsSpaceSeparator = isNotBlank(parentDisplay) &&
!display.startsWith("[");
String methodDisplay = parentDisplay + (needsSpaceSeparator ? " "
: "") + display;
+ boolean isParameterized =
isNotBlank(methodSource.getMethodParameterTypes());
boolean hasParameterizedParent =
collectAllTestIdentifiersInHierarchy(testIdentifier)
.filter(identifier -> !identifier.getSource().isPresent())
.map(TestIdentifier::getLegacyReportingName)
.anyMatch(legacyReportingName ->
legacyReportingName.matches("^\\[.+]$"));
+ boolean isTestTemplate =
testIdentifier.getLegacyReportingName().matches("^.*\\[\\d+]$");
Review Comment:
Does this work only for numeric parameters?
--
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]