Re: Using Mockito with Netbeans

2024-03-01 Thread Ulrich Mayring
- *From:* Leo Donahue *Sent:* Thursday, February 29, 2024 1:29 PM *Cc:* NetBeans Mailing List *Subject:* Re: Using Mockito with Netbeans 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

Re: Using Mockito with Netbeans

2024-02-29 Thread Vic Ricker
much time to refresh my knowledge. I do hope that NB have some mocking features that will help me. *From:* Leo Donahue *Sent:* Thursday, February 29, 2024 1:29 PM *Cc:* NetBeans Mailing List *Subje

Re: Using Mockito with Netbeans

2024-02-29 Thread Leo Donahue
t; *From:* Leo Donahue > *Sent:* Thursday, February 29, 2024 1:29 PM > *Cc:* NetBeans Mailing List > *Subject:* Re: Using Mockito with Netbeans > > > On Thu, Feb 29, 2024, 13:33 Greenberg,Gary > wrote: > > I already have all DTO and DAO classes written and debugged. >

Re: Using Mockito with Netbeans

2024-02-29 Thread Greenberg, Gary
much time to refresh my knowledge. I do hope that NB have some mocking features that will help me. From: Leo Donahue Sent: Thursday, February 29, 2024 1:29 PM Cc: NetBeans Mailing List Subject: Re: Using Mockito with Netbeans On Thu, Feb 29, 2024, 13:33 Gree

Re: Using Mockito with Netbeans

2024-02-29 Thread Leo Donahue
ken but it may not be in your control. -- > *From:* Pieter van den Hombergh > *Sent:* Thursday, February 29, 2024 7:49 AM > *Cc:* NetBeans Mailing List > *Subject:* Re: Using Mockito with Netbeans > > generated tests from existing classes sounds like te

Re: Using Mockito with Netbeans

2024-02-29 Thread Greenberg, Gary
. From: Pieter van den Hombergh Sent: Thursday, February 29, 2024 7:49 AM Cc: NetBeans Mailing List Subject: Re: Using Mockito with Netbeans generated tests from existing classes sounds like testing after the fact. Then I would consider generating the DAOs from information available

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