Announcement Announcement Module
Collapse
No announcement yet.
How to import ModelAndViewAssert in Maven2? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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.

    Comment

    Working...
    X