Results 1 to 2 of 2

Thread: How to import ModelAndViewAssert in Maven2?

  1. #1
    Join Date
    Oct 2008
    Location
    UK
    Posts
    8

    Default 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. #2
    Join Date
    Oct 2008
    Location
    Delhi, India
    Posts
    163

    Default

    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
  •