Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15854

Backport s/s/m/j/o/s/m/w/MockPart.java from 5.x to 4.3.x

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3.10
    • Fix Version/s: 4.3.12
    • Component/s: Test
    • Last commented by a User:
      true

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juergen.hoeller Juergen Hoeller
                Reporter:
                laurentperez Laurent Perez
                Last updater:
                Spring Issuemaster
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  40 weeks, 1 day ago