jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • jMock
  • JMOCK-170

Allow expectations to not fail immediately if there's an unexpected invocation

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: JMock 2.x.x Library
  • Labels:
    None
  • Environment:
    all

Description

I've been working with a package that drops any exceptions thrown by callbacks that passed to it. If I mock the callbacks and one of them fails because of an incorrect call, the Assertion will be dropped and I'll get the wrong failure message.

I'd like to have an option so that the mocks won't fail until the verify, and then will report everything that happened. I believe this is equivalent to "nice" mocks in easymock.

Issue Links

is superceded by

Bug - A problem which impairs or prevents the functions of the product. JMOCK-183 Exceptions thrown by expectations should be caught and available for rethrowing during verification

  • Major - Major loss of function.
  • Resolved - A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Nat Pryce added a comment - 20/Jun/08 5:12 AM

The use case you describe would be satisfied by the change requested in JMOCK-183

Show
Nat Pryce added a comment - 20/Jun/08 5:12 AM The use case you describe would be satisfied by the change requested in JMOCK-183
Hide
Permalink
Nat Pryce added a comment - 20/Jun/08 5:13 AM

Subsumed by JMOCK-183

Show
Nat Pryce added a comment - 20/Jun/08 5:13 AM Subsumed by JMOCK-183

People

  • Assignee:
    Steve Freeman
    Reporter:
    Steve Freeman
Vote (0)
Watch (0)

Dates

  • Created:
    11/Jan/08 7:38 AM
    Updated:
    20/Jun/08 5:13 AM
    Resolved:
    20/Jun/08 5:13 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.