This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
It shouldn't be IDE specific. Do you mean web Controller?
Look at the spring-mock.jar, which contains useful integration testing functionality in org.springframework.test, and some mock objects for the Servlet API. Also consider using the Mock Objects library and EasyMock or Dynamock to mock the Servlet API.