Skip to main content



      Home
Home » Newcomers » Newcomers » setup junit in eclipse(failing to setup junit in eclipse)
setup junit in eclipse [message #1859614] Tue, 20 June 2023 05:15 Go to next message
Eclipse UserFriend
I'm using jdk 20 with Eclipse IDE for Java Developers - version 2023-06 (4.28.0)
I tried to create a test case: right click on package add new test case inside one of the packages under src.
Even after adding junit lib (tried with both junit 4 and 5) to buildpath, and making sure the correct import is there (depending on the version of junit I chose).
Junit imports and @Test annotation are failed to get recognized by eclipse nor can i add junit to the module info (fail to resolve module).
The window classpath variables contains the jar per my selection, in junit home.

I have only one other jar in my build path which is mysql-connector-java-8.0.30
So I dont think its a jar collision unless its colliding with the JDK itself.

any idea?
Re: setup junit in eclipse [message #1859620 is a reply to message #1859614] Tue, 20 June 2023 10:13 Go to previous message
Eclipse UserFriend
It will be better to ask on the JDT forum:

https://www.eclipse.org/forums/index.php/f/13/
Previous Topic:Eclipse Error with Repast Simphony
Next Topic:warning: Debugger speedups using cython not found.
Goto Forum:
  


Current Time: Tue Apr 29 14:53:06 EDT 2025

Powered by FUDForum. Page generated in 0.08033 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top