Example usage for org.springframework.mock.web MockHttpServletRequest setAuthType

List of usage examples for org.springframework.mock.web MockHttpServletRequest setAuthType

Introduction

In this page you can find the example usage for org.springframework.mock.web MockHttpServletRequest setAuthType.

Prototype

public void setAuthType(@Nullable String authType) 

Source Link

Usage

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
}