junit example issue

gudii9
gudii9 used Ask the Experts™
on
Hi,

I am working on below spring application

https://www.mkyong.com/spring3/spring-3-hello-world-example/

My junit class shows bunch of errors LIKE

The import junit cannot be resolved

How to resolve these issues. please advise
JUNITteST.png
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2015
Commented:
don't use junit.framework import

you need org.junit
mccarlIT Business Systems Analyst / Software Developer
Top Expert 2015
Commented:
Can you post your Pom.xml file? Also, is Eclipse indicating any problems with the Pom? I.e. Is there any red marks on the Pom.xml in Eclipse's project explorer view?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial