• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Controller testing error using Spring MVC Test framework

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Attempting to understand how to test a controller using Spring MVC Test framework.

The controller runs on the server without a problem
however when running the test
An ApplicationContext load error is thrown

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0'

In order to run the tests I added org.springframework.test-3.2.0.RELEASE.jar to the build path to allow for import of org.springframework.test.context.web.WebAppConfiguration (@WebAppConfiguration). Using MyEclipse's 'Add Spring Runtime Dependencies' it already had in place org.springframework.test-3.0.0.RELEASE.jar though the WebAppConfiguration import wasn't working with that version.

this post http://www.myeclipseide.com/PNphpBB2-viewtopic-t-27149.html seemed like it was going to help resolve this issue however I haven't had any luck yet.

Any ideas?




 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic