ratcashdev commented on code in PR #3995:
URL: https://github.com/apache/netbeans/pull/3995#discussion_r960916199


##########
java/maven.junit/src/org/netbeans/modules/maven/junit/JUnitOutputListenerProvider.java:
##########
@@ -681,6 +681,13 @@ private void generateTest() {
                     }
                 }
 
+                String classname = testcase.getAttributeValue("classname");
+                // keep the embedded class in classnames and add to display 
name
+                int suiteNameLength = suite.getName().length();
+                if (classname.length() > suiteNameLength && 
classname.startsWith(suite.getName())) {
+                    displayName = classname.substring(suiteNameLength) + "." + 
methodName;

Review Comment:
   Have you tried using the `@Nested ` JUnit5 annotation?
   ```java
   class MyClassTest {
   
     @Nested
     class NestedGroupTest {
       @Test
       public void mytest() {...}
     }
   }
   ```



-- 
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: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to