Re: Non-public Unit Tests

2022-09-08 Thread Martin Desruisseaux
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

Re: Non-public Unit Tests

2022-09-08 Thread Ulrich Mayring
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

Re: Non-public Unit Tests

2022-09-08 Thread 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, 2022 at 11:23 AM Ulrich Mayring wrote: > When I define a package-private unit test like: > > @Test >

Non-public Unit Tests

2022-09-08 Thread Ulrich Mayring
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.

Re: NetBeans 14/15 not scanning for external changes on Mac

2022-09-08 Thread Giles Winstanley
Excellent to know, so thanks for the diagnostics, LudvĂ­k. Next time it happens to me I'll try that line before anything else to see if it can save the drama. I've resorted to exporting my core changes to an external file in the hope they import smoothly if I start with a clean state. Stan On

NetBeans 15. Impossible to create a Maven Web application for Jakarta EE 9.1

2022-09-08 Thread Richard Grin
Hello, I have just downloaded and installed NetBeans 15 on Windows 11. I can't create a Java with Maven - Web Application, Server GlassFish Server 6.2.5, Jakarta EE 9.1. I launch NetBeans 15 Menu File > New Project > Java with Maven > Web Application. Server: GlassFish Server 6.2.5 Java EE

Unpacking the index for central repository is very long

2022-09-08 Thread Richard Grin
Hello, I have just downloaded and installed NetBeans 15 on Windows 11. A very annoying problem: the loading and unpacking of the index for central repository took almost 2 hours. I'm afraid it will be even worse in the years to come. Is there a workaround? Regards, Richard --