Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-5
-
Fix Version/s: 1.1-beta-1
-
Component/s: groovy-jdk
-
Labels:None
-
Number of attachments :
Description
currently, property access to a Stub/Mock is neither recorded nor replayed.
Support this with the same notation as for method calls.
Properties can now be mocked by using javabean conventions:
mocker.demand.getOne { "foo" } mocker.use { assert instance.one == "foo" }