mtest: Add a way to check if all MockResponses have been consumed

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Scenario:

      You create a unit test with 5 mock responses, and you want to make sure that each of those responses will be consumed.

      Example:

      We have collection A and B. We want to asure in unit test, that when there is an insert on collection A, an insert on collection B will be executed. So we need a method NoRemainingMockResponses() which returns true if all mock responses had consumed.

              Assignee:
              Qingyang Hu
              Reporter:
              Stavros Tsompanidis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: