I asked John Kissell to clarify what tutorial he was looking at and he gave me the link https://netbeans.apache.org/kb/docs/java/javase-intro.html
For NetBeans JDK home I'm still using Java 8, whereas John is using Java 18. For an IntelliJ group project I actually had to download Java 18 and JavaFX 18, and then I spent a bit of time trying to figure out how to change my NetBeans 12.6 to use Java 18. But also John's using NetBeans 14. Even so, I was able to follow along with the tutorial almost up to the point where John got stuck. In the Create/Update Tests dialog, I chose JUnit4 for the framework (presumably just "JUnit" refers to JUnit 5.x "Jupiter"). With that, NetBeans correctly attached JUnit 4 and Hamcrest to the project's Test Libraries. Note that JUnit 5 does not use Hamcrest. Can someone with NetBeans 14 and Java 18 try to reproduce? Al On Mon, Jul 25, 2022 at 1:27 PM kissellj <kisse...@ecentral.com> wrote: > No problem. Thank you > > > John > > > > Sent from my Verizon, Samsung Galaxy smartphone > > > -------- Original message -------- > From: Alonso Del Arte <alonso.dela...@gmail.com> > Date: 7/25/22 9:42 AM (GMT-07:00) > To: kissellj <kisse...@ecentral.com> > Subject: Re: JUnit Test question > > (off-list) Alright, thanks, I'll look at that after lunch > > On Mon, Jul 25, 2022 at 10:00 AM kissellj <kisse...@ecentral.com> wrote: > >> Thanks for your response. >> >> https://netbeans.apache.org/kb/docs/java/javase-intro.html >> >> Paragraph beginning with " In the Projects window, right-click the Test >> Libraries ... " . Last couple sentences " In the right-hand pane select the >> Compile Tests tab and click the + button. From the pop-up list select Add >> Library, from the Global Libraries folder select JUnit 4.x and click Add >> Library repeat, this time selecting the Hamcrest 1.x library. ". >> >> In my NB, under Compile Tests Tab there are 2 categories with + buttons. >> A Modulepath + button and Classmate + botton. Under Module path + button, I >> have "CopyLibsTask or JUnit 5.6.0". I don't have a Hamcrest 1.x library. I >> selected the 5.6.0 clicked Add Library for Modulepath and then for repeat I >> went to the Classmate + button and selected JUnit 5.6.0. When I went to >> document section Running JUnit Tests, and tried Run I believe I got errors. >> I can re-run and check results again if you need me to. >> >> Thanks John >> >> >> >> Sent from my Verizon, Samsung Galaxy smartphone >> >> >> -------- Original message -------- >> From: Alonso Del Arte <alonso.dela...@gmail.com> >> Date: 7/24/22 5:26 PM (GMT-07:00) >> To: kissellj <kisse...@ecentral.com> >> Cc: NetBeans Mailing List <users@netbeans.apache.org> >> Subject: Re: JUnit Test question >> >> Can you give a link for the Hello World tutorial? "Fourth paragraph down" >> doesn't really mean anything to me, as I'm not looking at the same page as >> you are. >> >> Aside from a problem with Maven one time, I've never had a problem adding >> JUnit or TestNG tests to a NetBeans project. If I want a test class for >> SomeClass, I place the cursor on the declaration line for that class, >> then click on the lightbulb that replaces the line number, and choose >> either JUnit or TestNG. Then NetBeans takes care of creating >> SomeClassTest or SomeClassNGTest. >> >> Al >> >> On Sun, Jul 24, 2022 at 6:23 PM kissellj <kisse...@ecentral.com> wrote: >> >>> >>> I was looking for some help with the"Creating JUnit Tests" in the >>> Testing and Debugging the Application for the Hello World Tutorial. Am I in >>> the correct place to get help? I'M running IDE 13; Java 18.0.1. My question >>> is about the 4th paragraph down in the "Creating JUnit Tests" adding >>> Library. 1st I want to get the in correct place. >>> >>> John Kissell >>> kisse...@ecentral.com >>> >>> >>> Sent from my Verizon, Samsung Galaxy smartphone >>> >>> >> >> -- >> Alonso del Arte >> Author at SmashWords.com >> <https://www.smashwords.com/profile/view/AlonsoDelarte> >> Musician at ReverbNation.com <http://www.reverbnation.com/alonsodelarte> >> > > > -- > Alonso del Arte > Author at SmashWords.com > <https://www.smashwords.com/profile/view/AlonsoDelarte> > Musician at ReverbNation.com <http://www.reverbnation.com/alonsodelarte> > -- Alonso del Arte Author at SmashWords.com <https://www.smashwords.com/profile/view/AlonsoDelarte> Musician at ReverbNation.com <http://www.reverbnation.com/alonsodelarte>