Skip to content

Make it easier to see the HTTP headers when debugging MockMvc-based tests [SPR-15375] #19939

@spring-projects-issues

Description

@spring-projects-issues

Andy Wilkinson opened SPR-15375 and commented

It would make debugging of MockMvc-based tests easier if HeaderValueHolder implemented toString(). As things stand, when looking at the headers of a MockHttpServletRequest I can see this:

{Accept=org.springframework.mock.web.HeaderValueHolder@3bc20984}

To get the actual value(s) of the header I have to drill down into the specific entry of the underlying LinkedHashMap.


No further details from SPR-15375

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions