spring-framework / org.springframework.test.web.servlet.result / HeaderResultMatchers / longValue

longValue

open fun longValue(name: String, value: Long): ResultMatcher

Assert the primary value of the named response header as a long.

The ResultMatcher returned by this method throws an AssertionError if the response does not contain the specified header, or if the supplied value does not match the primary value.