Re: Unused Element in Unit Tests

2023-08-09 Thread Michael Bien
https://github.com/apache/netbeans/pull/6277 should be in NB 20. -mbien On 09.08.23 17:48, Ulrich Mayring wrote: Netbeans generates an "Unused Element" hint in the sidebar and a wavy underline in the editor if I define a variable or method that goes unused. This is a very useful feature, but

Unused Element in Unit Tests

2023-08-09 Thread Ulrich Mayring
Netbeans generates an "Unused Element" hint in the sidebar and a wavy underline in the editor if I define a variable or method that goes unused. This is a very useful feature, but in the case of JUnit5 it has an unwanted effect. For example: @Test void myTest() { ... } This method is recogniz