spring-framework / org.springframework.test.web.servlet.result / StatusResultMatchers / isMethodNotAllowed

isMethodNotAllowed

open fun isMethodNotAllowed(): ResultMatcher

Assert the response status code is HttpStatus.METHOD_NOT_ALLOWED (405).