About Netbeans underlining a method name and saying "myMethod is never
used", I have the same problem when overriding a package-private method:
public class A {
void myMethod() {...}
public void doStuff() {
myMethod();
}
}
class B extends A {
@Override
void myMethod
I'm using JUnit 5. The tests are picked up fine.
Am 08.09.22 um 17:49 schrieb Alonso Del Arte:
Is NetBeans still incapable of using JUnit 5? The JUnit 4 test runner
does not pick up non-public tests, so then the indication that the test
is not used is perfectly correct.
Al
On Thu, Sep 8, 202
Is NetBeans still incapable of using JUnit 5? The JUnit 4 test runner does
not pick up non-public tests, so then the indication that the test is not
used is perfectly correct.
Al
On Thu, Sep 8, 2022 at 11:23 AM Ulrich Mayring
wrote:
> When I define a package-private unit test like:
>
> @Test
>
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.