Jan 12th, 2009, 06:17 AM
How to import ModelAndViewAssert in Maven2?
I'm writing some test for my web layer; I was going to use AbstractModelAndViewTests but I'm using JUnit 4 and the documentation suggests ModelAndViewAssert for this purpose.
The problem is that I can't import this class, as it's not on my build path. I'm using Maven2 and I've tried all the following artifacts: spring, spring-webmvc, spring-mock, spring-test, spring-web (version 2.5.5). None of them contains ModelAndViewAssert, google doesn't help either.
Jan 13th, 2009, 12:22 AM
The class is in spring-test.jar. Make sure you're not using an older version of the jar. Try clearing the jar from the local repo and then rebuilding.