jMock

Wait for a state machine to enter a specific state

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.6.0
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

When testing multi-threaded code, it can be difficult to synchronise the test thread with the background threads. JMock can help by letting the test wait for a state machine to enter a given state. The test can then wait for the last invocation from a background thread before making any other assertions.

Issue Links

Activity

Hide
Nat Pryce added a comment -

Implemented in SVN trunk

Show
Nat Pryce added a comment - Implemented in SVN trunk

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: