Class ServletUnitTestingSupport
java.lang.Object
com.c4_soft.springaddons.security.oauth2.test.mockmvc.ServletUnitTestingSupport
- Direct Known Subclasses:
ServletKeycloakAuthUnitTestingSupport
@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
Fields Modifier and Type Field Description protected org.springframework.beans.factory.BeanFactorybeanFactory -
Constructor Summary
Constructors Constructor Description ServletUnitTestingSupport() -
Method Summary
Modifier and Type Method Description MockMvcSupportmockMvc()
-
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
-