History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: UNI-153
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Tim Ducheyne
Reporter: Tim Ducheyne
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Unitils

Support defining behavior and assertions using chained methods, e.g. mock.returns(value).getSomething().getValue();

Created: 15/Jun/09 06:50 PM   Updated: 20/Jul/09 06:01 PM
Component/s: mock
Affects Version/s: None
Fix Version/s: 3.0


 Description  « Hide
Following scenario should become possilbe

mock.returns(value).getSomething().getValue();

this should result in the sames behavior as

somethingMock.returns(value).getValue();
mock.returns(somethingMock).getSomething();

 All   Comments   Change History      Sort Order:
Tim Ducheyne - 20/Jul/09 06:01 PM
The same behavior should exist for the assertions, e.g

mock.assertInvoked().getSomething().getValue();