Tibor17 edited a comment on issue #245: Surefire-1584: Add option to rerun 
failing tests for JUnit5 
URL: https://github.com/apache/maven-surefire/pull/245#issuecomment-536994438
 
 
   One can see that the method must alter the behavior . In practice we do it 
easily the way that we have algorithm in one method because of 90% reusability 
and we introduce a private method `toClassMethodName(TestIdentifier, boolean)` 
which is called in the accessor methods:
   
   ```
   private toClassMethodName(TestIdentifier )
   {
       return toClassMethodName( testIdentifier, false );
   }
   ```
   
   and another public method:
   
   ```
   toClassMethodNameWithoutPlan( testIdentifier ) 
   {
       return toClassMethodName( testIdentifier, true );
   }
   ```
   
   true: real class/method names without plan
   false: with display names if possible

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to