facebook

Integration Test needs resources from WEB-INF

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #234782 Reply

    rt702
    Member

    Hi,

    I’m trying to write some integration tests for a SpingMVC project. In order to do this, however, I need to access configuration files under WEB-INF. My first inclination was to put the WebContent folder on the classpath, but I am unable to do this as MyEclipse builds directly to the WEB-INF/classes directory. When I modify the output directory for the build to another folder, MyEclipse doesn’t pick up the generated classes on deploy. Any ideas on how to resolve this (get the WebContent or WEB-INF on the classpath) would be appreciated.

    Thanks,

    Ryan

    #234787

    Scott Anderson
    Participant

    Ryan,

    There’s a Spring tutorial that covers testing available here:
    http://www.springframework.org/docs/MVC-step-by-step/Spring-MVC-step-by-step.html

    I believe it has you replicate the spring config file under your source tree, since it needs to be modified anyway for proper testing. In any event, I think it has what you need to get there.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Integration Test needs resources from WEB-INF

You must be logged in to post in the forum log in