Example usage for org.springframework.security.oauth2.common.exceptions RedirectMismatchException getMessage

List of usage examples for org.springframework.security.oauth2.common.exceptions RedirectMismatchException getMessage

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.common.exceptions RedirectMismatchException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message string of this throwable.

Usage

From source file:org.springframework.security.oauth2.common.exception.OAuth2ExceptionJackson2DeserializerTests.java

@Test
public void readValueRedirectUriMismatch() throws Exception {
    String accessToken = createResponse(OAuth2Exception.INVALID_GRANT, "Redirect URI mismatch.");
    RedirectMismatchException result = (RedirectMismatchException) mapper.readValue(accessToken,
            OAuth2Exception.class);
    assertEquals("Redirect URI mismatch.", result.getMessage());
    assertEquals(null, result.getAdditionalInformation());
}