Are you going to try 12.0 Beta 4, please? I sent a mail to the users alias about this yesterday — and waiting for the release to be announced and only then verifying it is not how we work here: get Beta 4 and try it out and fill out the survey, please.
Gj On Tue, 19 May 2020 at 06:28, HRH <hrh...@yahoo.com> wrote: > Thank you Greetjan, although this might be true in older versions of > Netbeans, in Netbeans 11.3 the "Tools->Create/Update Test->Framework" only > provides "JUnit" and "TestNG" options. The JUnit 4 is not present in the > dropdown. > > Thanks again > > On Tuesday, May 19, 2020, 8:48:06 AM GMT+4:30, Geertjan Wielenga < > geert...@apache.org> wrote: > > > When you generate the test class, select JUnit 4 from the drop down menu, > in Ant based projects to generate the correct code. In Maven based projects > this is not needed and JUnit 5 was is supported. > > Gj > > On Tue, 19 May 2020 at 01:22, HRH <hrh...@yahoo.com.invalid> wrote: > > > ** Looks like this org.junit.jupiter release is not quite compatible with > SpringBootTest. ** > > I use Netbeans 11.3 and despite the online tutorial vis-à-vis "Creating > JUnit Test" from the NB IDE, the support for the org.junit.jupiter > libraries are not completely functional yet. I hope this is addressed in > the NB 12 beta version. > On Tuesday, May 19, 2020, 3:31:54 AM GMT+4:30, HRH > <hrh...@yahoo.com.invalid> wrote: > > > I had a similar problem and this was the fix. Perhaps, it may work for you > as well: > > Comment out the following import statments: > > import static org.junit.jupiter.api.Assertions.assertEquals; > import static org.junit.jupiter.api.Assertions.fail; > import org.junit.jupiter.api.Test; > > Add these instead: > > import org.junit.After; > import org.junit.AfterClass; > import org.junit.Before; > import org.junit.BeforeClass; > import org.junit.Test; > import static org.junit.Assert.*; > > Ultimately, the annotations should be used as follow: > > @BeforeClass > public static void setUpClass() { > } > > @AfterClass > public static void tearDownClass() { > } > > @Before > public void setUp() { > } > > @After > public void tearDown() { > } > > Hope this helps. > > > > On Tuesday, May 19, 2020, 3:20:25 AM GMT+4:30, Greenberg, Gary > <ggree...@visa.com.invalid> wrote: > > > Sure, Here is the whole test file attached. > > > > Gary Greenberg*Error* > > Staff Software Engineer > > Data Product Development, BI-A > > E: ggree...@visa.com > > M: 650-269-7902 > > > > [image: EmailSig-TaglineVersion] > > > > *From:* HRH <hrh...@yahoo.com.INVALID> > *Sent:* Monday, May 18, 2020 3:30 PM > *To:* users@netbeans.apache.org; Greenberg, Gary > <ggree...@visa.com.INVALID> > *Subject:* Re: Strange JUnit behavior > > > > Can you post the import statments used in your test file? > > > > On Tuesday, May 19, 2020, 2:54:47 AM GMT+4:30, Greenberg, Gary < > ggree...@visa.com.invalid> wrote: > > > > > > I have created a Junit test for one of my classes using Netbeans > Tools->Create/Update Tests menu. > > My class has just a single public method, therefore, test class contains > only one @Test method. > > I did edited it to reflect my functionality, but when I run this test file > I am getting > > Where these two erroneous tests are coming from, is a secret for me. > > If someone can give me a clue, how to find why I am getting these errors > and how to get rid of them, > I will appreciate it greatly. > > Thanks, > > Gary Greenberg > > Staff Software Engineer > > Data Product Development, BI-A > > E: ggree...@visa.com > > M: 650-269-7902 > > > > [image: EmailSig-TaglineVersion] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >