jMock

Add a more obvious method for setting the current state of a state machine

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.5.0
  • Component/s: JMock 2.x.x Library
  • Labels:
    None
  • Number of attachments :
    0

Description

Sometimes you want to explicitly set the state of a state machine. E.g. to separate expectations met during set-up from those met during the test. The current state machine API can do this, but the method name is not obvious.

So, add a new method to the States interface. E.g. "become", which has the same effect as startsAs, but is meant to be used imperatively during the test execution.

Issue Links

Activity

Hide
Nat Pryce added a comment -

Fixed in CVS

Show
Nat Pryce added a comment - Fixed in CVS

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: