use of org.springframework.web.filter.CharacterEncodingFilter in project dhis2-core by dhis2.
the class DhisWebSpringTest method setup.
@Before
public void setup() throws Exception {
userService = _userService;
CharacterEncodingFilter characterEncodingFilter = new CharacterEncodingFilter();
characterEncodingFilter.setEncoding("UTF-8");
characterEncodingFilter.setForceEncoding(true);
mvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).addFilters(characterEncodingFilter, new ShallowEtagHeaderFilter(), filterChainProxy).apply(documentationConfiguration(this.restDocumentation)).build();
executeStartupRoutines();
setUpTest();
}
Aggregations