Class ServletUnitTestingSupport
java.lang.Object
com.c4_soft.springaddons.security.oauth2.test.webmvc.ServletUnitTestingSupport
@ComponentScan(basePackageClasses=MockMvcSupport.class)
public class ServletUnitTestingSupport
extends Object
Helper class for servlet
Might be used either as a parent class (easier) or collaborator (requires some test configuration).
@Controller unit-tests using security flow API (useless if using annotations).Might be used either as a parent class (easier) or collaborator (requires some test configuration).
- Author:
- Jérôme Wacongne <ch4mp@c4-soft.com>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.beans.factory.BeanFactory -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
beanFactory
@Autowired protected org.springframework.beans.factory.BeanFactory beanFactory
-
-
Constructor Details
-
ServletUnitTestingSupport
public ServletUnitTestingSupport()
-
-
Method Details
-
mockMvc
- Returns:
- ready to use
MockMvcSupport, aMockMvcwrapper providing helpers for common REST requests
-