• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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?




 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic