When I define a package-private unit test like:

@Test
void myMethod() { ... }

then Netbeans underlines the method name and hints "myMethod is never used".

If I define the test method to be public, this hint is not displayed.

In a way this is logical behavior, but I wonder whether it is useful. Perhaps a unit test or even any other test should be recognized to be "top level methods", even if they are package private.

Any opinions on this?

Ulrich

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-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