List of usage examples for org.springframework.mock.web MockHttpServletRequest setAuthType
public void setAuthType(@Nullable String authType)
From source file:org.cateproject.test.functional.mockmvc.HtmlUnitRequestBuilder.java
private void authType(MockHttpServletRequest request) { String authorization = header("Authorization"); if (authorization != null) { String[] authzParts = authorization.split(": "); request.setAuthType(authzParts[0]); }//from www .jav a 2s .c o m }