OK, I think I've reproduced the problem. Can you change the content of your test source file to the following and let us know if that works.
package org.me.mylib; 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.*; public class LibClassTest { public LibClassTest() { } @BeforeClass public static void setUpClass() { } @AfterClass public static void tearDownClass() { } @Before public void setUp() { } @After public void tearDown() { } @Test public void testAcrostic() { System.err.println("Running testAcrostic..."); String result = LibClass.acrostic(new String[]{"fnord", "polly", "tropism"}); assertEquals("Correct value", "foo", result); } } Thanks, Gj On Sat, May 16, 2020 at 8:09 AM Geertjan Wielenga <geert...@apache.org> wrote: > In which part of the tutorial specifically are you encountering the > problem, i.e., what is the name of the section where the problem occurs? > > Gj > > On Sat, May 16, 2020 at 7:49 AM HRH <hrh...@yahoo.com> wrote: > >> Developing General Java Applications >> <https://netbeans.apache.org/kb/docs/java/javase-intro.html> >> >> Developing General Java Applications >> >> Apache NetBeans >> >> Developing General Java Applications - Apache NetBeans >> <https://netbeans.apache.org/kb/docs/java/javase-intro.html> >> >> >> >> On Saturday, May 16, 2020, 10:19:25 AM GMT+4:30, HRH <hrh...@yahoo.com> >> wrote: >> >> >> Here is the link to the tutorial. Everything works up to the JUnit test >> section. >> >> Thanks >> On Saturday, May 16, 2020, 10:17:15 AM GMT+4:30, Geertjan Wielenga < >> geert...@apache.org> wrote: >> >> >> Can you point to the tutorial you're referring to, so that I can try to >> reproduce the problem? >> >> Gj >> >> On Fri, May 15, 2020 at 6:18 AM HRH <hrh...@yahoo.com.invalid> wrote: >> >> Hi, I am following the tutorial step by step but LibClassTesting.java >> (generated JUnit test class by the IDE) fails. Here is the trace: >> >> Testsuite: org.me.mylib.LibClassTest >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.133 sec >> >> Testcase: initializationError(org.me.mylib.LibClassTest): Caused an >> ERROR >> No runnable methods >> java.lang.Exception: No runnable methods >> at >> java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> at >> java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) >> at >> java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) >> at >> java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) >> at >> java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481) >> >> Thanks >> >>