-
Jan 12th, 2009, 06:17 AM
#1
How to import ModelAndViewAssert in Maven2?
Hi,
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.
Any hint?
cheers,
LK
-
Jan 13th, 2009, 12:22 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules