Seems to be related to this: https://github.com/junit-team/junit5/issues/1104
Gj On Thu, Jan 10, 2019 at 12:11 PM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > reason: class file for org.apiguardian.api.API$Status not found > > No idea what 'org.apiguarian.api.API' is. > > Gj > > On Thu, Jan 10, 2019 at 11:10 AM Peter Hull <peterhul...@gmail.com> wrote: > >> Hi all, >> I was trying to add Tests to a Java SE project and it didn't work. So >> I went back to the simplest case to try again. >> 1. Create a new Java Application with default main class >> 2. Select Tools|Create/Update Tests, press OK >> 3. (IDE creates files and adds a default test for 'main') >> 4. Select Run|Test Project >> >> I see: >> Compiling 1 source file to >> >> D:\Libraries\Documents\NetBeansProjects\JavaApplication16\build\test\classes >> warning: unknown enum constant Status.STABLE >> reason: class file for org.apiguardian.api.API$Status not found >> warning: unknown enum constant Status.STABLE >> (this line repeated) >> 13 warnings >> compile-test: >> Created dir: >> D:\Libraries\Documents\NetBeansProjects\JavaApplication16\build\test\results >> No tests executed. >> test-report: >> test: >> BUILD SUCCESSFUL (total time: 1 second) >> >> If I select the 'main' Java file and Run|Test File I get: >> >> C:\Users\peter\AppData\Local\NetBeans\Cache\10.0\executor-snippets\junit.xml:184: >> The following error occurred while executing this line: >> >> C:\Users\peter\AppData\Local\NetBeans\Cache\10.0\executor-snippets\junit.xml:128: >> The <classpath> or <modulepath> for <junit> must include junit.jar if >> not in Ant's own classpath >> BUILD FAILED (total time: 0 seconds) >> >> Should this work and if so, what am I doing wrong? >> >> Using >> Product Version: Apache NetBeans IDE 10.0 (Build >> incubator-netbeans-release-380-on-20181217) >> Java: 11.0.1; OpenJDK 64-Bit Server VM 11.0.1+13 >> Runtime: OpenJDK Runtime Environment 11.0.1+13 >> System: Windows 10 version 10.0 running on amd64; Cp1252; en_GB (nb) >> >> Thanks, >> Peter >> >> --------------------------------------------------------------------- >> 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 >> >>