Col-E commented on a change in pull request #249: Surefire-1701: Fix
@DisplayName breaking reruns
URL: https://github.com/apache/maven-surefire/pull/249#discussion_r338352164
##########
File path:
surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
##########
@@ -187,12 +188,12 @@ private LauncherDiscoveryRequest
buildLauncherDiscoveryRequestForRerunFailures(
LauncherDiscoveryRequestBuilder builder = request().filters( filters
).configurationParameters(
configurationParameters );
// Iterate over recorded failures
- for ( TestIdentifier identifier : adapter.getFailures().keySet() )
+ for ( TestIdentifier identifier : new HashSet<>(
adapter.getFailures().keySet() ) )
{
// Extract quantified test name data
String[] classMethodName = adapter.toClassMethodNameWithoutPlan(
identifier );
- String className = classMethodName[1];
- String methodName = classMethodName[3];
+ String className = classMethodName[0];
Review comment:
I agree, but I don't think that's within the scope of this PR _(A simple bug
fix)_.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services