Skip to content

Poor comparison for ContentRequestMatchers#bytes [SPR-14281] #18853

@spring-projects-issues

Description

@spring-projects-issues

James Howe opened SPR-14281 and commented

This request matcher uses assertEquals instead of something like JUnit's assertArrayEquals.
Because of this, the output on failure is

java.lang.AssertionError: Request content 
Expected :[B@7976d382
Actual   :[B@59f36439

Instead of showing the actual difference between the arrays.


Reference URL: https://github.com/spring-projects/spring-framework/blob/master/spring-test/src/main/java/org/springframework/test/web/client/match/ContentRequestMatchers.java#L141

Referenced from: commits 822e40e

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions