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

MockRestServiceServer should allow for an expectation to occur multiple times.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.0 GA
    • Fix Version/s: 4.3 RC1
    • Component/s: Test, Web:Client
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Currently, the MockRestServiceServer requires that each expectation only be executed once. It would be nice to be able to say expect this and respond like this any number of times. Similar to the way the Mockito works. When setting up expectations using when().thenReturn() it can be executed any number of times.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              springiscool John Mark
              Last updater:
              Spring Issuemaster
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 20 weeks, 3 days ago