Skip to content

Backport s/s/m/j/o/s/m/w/MockPart.java from 5.x to 4.3.x [SPR-15854] #20409

@spring-projects-issues

Description

@spring-projects-issues

Laurent Perez opened SPR-15854 and commented

Currently s/s/m/j/o/s/m/w/MockPart.java from 5.x to 4.3.x is 5.x only
In 4.3.x there is MockHttpServletRequest.java#addPart(Part p), but no mock for Part
It'd be useful to be able to reuse MockPart in 4.3.x

Context : wrote a test case in a non Spring Web project (bare Servlets + Mockito) but used Spring Test mocks in test dependencies. Had to copy paste MockPart from 5.x without Nullable/Assert to get the mock.


Affects: 4.3.10

Issue Links:

Referenced from: commits 87df393, ea01c41

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions