List of usage examples for org.springframework.security.oauth2.common.exceptions OAuth2Exception UNSUPPORTED_GRANT_TYPE
String UNSUPPORTED_GRANT_TYPE
To view the source code for org.springframework.security.oauth2.common.exceptions OAuth2Exception UNSUPPORTED_GRANT_TYPE.
Click Source Link
From source file:org.springframework.security.oauth2.common.exception.OAuth2ExceptionJackson2DeserializerTests.java
@Test public void readValueUnsupportedGrantType() throws Exception { String accessToken = createResponse(OAuth2Exception.UNSUPPORTED_GRANT_TYPE); UnsupportedGrantTypeException result = (UnsupportedGrantTypeException) mapper.readValue(accessToken, OAuth2Exception.class); assertEquals(DETAILS, result.getMessage()); assertEquals(null, result.getAdditionalInformation()); }