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-213

Make jMock thread-safe

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0, 1.0.1, 1.1.0-RC1, 1.1.0-RC2, 1.1.0, 1.2.0, 2.0.0-RC1, 2.0.0, 2.1.0-RC1, 2.1.0-RC2, 2.1.0-RC3, 2.1.0-RC4, 2.1.0-RC5, 2.1.0, 2.2.0-RC1, 2.2.0, 2.3.0-RC1, 2.3.0-RC2, 2.3.0, 2.4.0-RC1, 2.4.0, 2.5.0-RC1, 2.5.0-RC2, 2.5.0, 2.5.1
  • Fix Version/s: 2.7.0
  • Component/s: JMock 2.x.x Library
  • Labels:
    None

Description

The Mockery is not thread safe but people often use jMock with multithreaded code.

Thread-safety can be easily implemented as a decorator that wraps the imposteriser. It can then be plugged into the Mockery when needed.

The only other issue to address is that expectation failures are swallowed by background threads. Issue JMOCK-183 will address this issue.

Issue Links

depends upon

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.
is depended upon by

New Feature - A new feature of the product, which has yet to be developed. JMOCK-215 Wait for a state machine to enter a specific state

  • 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.
is related to

Improvement - An improvement or enhancement to an existing feature or task. JMOCK-214 Fail fast when run concurrently

  • 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 - 25/Feb/09 2:13 PM - edited

The Imposteriser decorator is checked into SVN.

Resolution of this issue is waiting on the implementation of JMOCK-183.

Show
Nat Pryce added a comment - 25/Feb/09 2:13 PM - edited The Imposteriser decorator is checked into SVN. Resolution of this issue is waiting on the implementation of JMOCK-183.
Hide
Permalink
Nat Pryce added a comment - 02/Mar/09 1:37 AM

Implemented in SVN trunk

Show
Nat Pryce added a comment - 02/Mar/09 1:37 AM Implemented in SVN trunk

People

  • Assignee:
    Nat Pryce
    Reporter:
    Nat Pryce
Vote (0)
Watch (1)

Dates

  • Created:
    25/Feb/09 2:11 PM
    Updated:
    02/Mar/09 1:41 AM
    Resolved:
    02/Mar/09 1:37 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.