SpringSource/spring-test-mvc — Issue #21: Allow to register mocked beans / services in beanfactory
Author: magro
Created: 2012-01-18 13:06:23+00:00
State: open

Hi, I want to test the web layer with mocked services. Say there's a UserController with an autowired dependency on some UserService, I want to be able to register a mocked UserService in the beanfactory so that this mock is injected into the UserController. In the UserControllerTest I want to be able control the mocked UserService (arrange/assert).

Is this somehow possible in the current version or planned?

Thanx && cheers,
Martin

PS. what's the best place to ask questions like this, is there a preferred mailing list for this project?