Re: Using Mockito with Netbeans

2024-02-29 Thread Vic Ricker
I can't help with Mockito, except to say that I use it with Netbeans all the time.  I write the tests mostly from scratch. I'm not sure what Netbeans could automate beyond creating template test methods as it does now. One tip I can share, that I discovered by accident, is that Netbeans can s

Re: Using Mockito with Netbeans

2024-02-29 Thread Leo Donahue
https://plugins.netbeans.apache.org/?search=Mockito&nbv=21&cat= On Thu, Feb 29, 2024, 16:43 Greenberg, Gary wrote: > Yes, I do need to mock CRUD operations without accessing the database. > As I said, code was debugged and tested with the database, but to > comply with the company policy > I do

Re: Using Mockito with Netbeans

2024-02-29 Thread Greenberg, Gary
Yes, I do need to mock CRUD operations without accessing the database. As I said, code was debugged and tested with the database, but to comply with the company policy I do need to add these "fake" unit tests. I haven't used Mockito for about 10 years and don't want to spend much time to refresh

Re: Using Mockito with Netbeans

2024-02-29 Thread Leo Donahue
On Thu, Feb 29, 2024, 13:33 Greenberg,Gary wrote: > I already have all DTO and DAO classes written and debugged. > However, per company policy, unit test coverage must be no less than 75%. > Right now, I have it less than 30%, because this is database driven > project and to comply, I need to cre

Re: Missing nb-javac plugin in NetBeans IDE 21

2024-02-29 Thread Geertjan Wielenga
The Apache NetBeans 21 binary releases require JDK 11+, and officially supports running on JDK 11, 17 and 21. On Thu, 29 Feb 2024 at 16:05, Ulf Zibis wrote: > > Am 29.02.24 um 21:51 schrieb Ulf Zibis: > > Hi, > > when I start the IDE, I get this message: > > Oups, after I hit Install, nothing m

Re: Missing nb-javac plugin in NetBeans IDE 21

2024-02-29 Thread Ulf Zibis
Am 29.02.24 um 21:51 schrieb Ulf Zibis: Hi, when I start the IDE, I get this message: Oups, after I hit Install, nothing more happens When I hit Install, a new dialogue asks for confirmation. After confirmation of the dialogue and "Restart IDE" I again get the same message. This happens

Re: Missing nb-javac plugin in NetBeans IDE 21

2024-02-29 Thread Ulf Zibis
Am 29.02.24 um 21:51 schrieb Ulf Zibis: Hi, when I start the IDE, I get this message: I'm running NetBeans IDE 21 on Ubuntu 22.04 with openjdk-18-jdk. -Ulf - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org

Missing nb-javac plugin in NetBeans IDE 21

2024-02-29 Thread Ulf Zibis
Hi, when I start the IDE, I get this message: When I hit Install, a new dialogue asks for confirmation. After confirmation of the dialogue and "Restart IDE" I again get the same message. What I'm doing wrong? -Ulf

Re: Using Mockito with Netbeans

2024-02-29 Thread Greenberg, Gary
I already have all DTO and DAO classes written and debugged. However, per company policy, unit test coverage must be no less than 75%. Right now, I have it less than 30%, because this is database driven project and to comply, I need to create tests mocking database operations.

Re: Using Mockito with Netbeans

2024-02-29 Thread Pieter van den Hombergh
generated tests from existing classes sounds like testing after the fact. Then I would consider generating the DAOs from information available, like the database schema or the DTO classes which should be of the record type. but if you still insist, make the DAO tests inherit from a TestBase class