Geertjan, NB 12 Beta 4 downloaded, all projects imported and compiled. The
issue with JUnit test creation resolved and the survey has been submitted.
Thanks again
On Tuesday, May 19, 2020, 3:54:29 PM GMT+4:30, HRH
<[email protected]> wrote:
Of course, I will.Thanks
On Tuesday, May 19, 2020, 9:01:13 AM GMT+4:30, Geertjan Wielenga
<[email protected]> wrote:
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 <[email protected]> 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
<[email protected]> 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 <[email protected]> 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
<[email protected]> 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
<[email protected]> wrote:
Sure, Here is the whole test file attached.
Gary GreenbergError
Staff Software Engineer
Data Product Development, BI-A
E: [email protected]
M: 650-269-7902
From: HRH <[email protected]>
Sent: Monday, May 18, 2020 3:30 PM
To: [email protected]; Greenberg, Gary <[email protected]>
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
<[email protected]> 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:[email protected]
M: 650-269-7902
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists