This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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?




 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic