Uploaded image for project: 'Unitils'
  1. UNI-153

Support defining behavior and assertions using chained methods, e.g. mock.returns(value).getSomething().getValue();

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: mock
    • Labels:
      None
    • Sprint:

      Description

      Following scenario should become possilbe

      mock.returns(value).getSomething().getValue();

      this should result in the sames behavior as

      somethingMock.returns(value).getValue();
      mock.returns(somethingMock).getSomething();

        Attachments

          Activity

            People

            • Assignee:
              tim.ducheyne Tim Ducheyne
              Reporter:
              tim.ducheyne Tim Ducheyne
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: