-
*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
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
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.
>
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
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
.
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
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