Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
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 :
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
| This issue supercedes: | ||||
| JMOCK-169 | Clear Expectations |
|
|
|
Fixed in CVS