keeganwitt / gmock

Automatically exported from code.google.com/p/gmock
6 stars 2 forks source link

Add getters for times matchers #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
According to the upcoming "extended command expression" DSL support in Groovy 
1.8 (http://groovyconsole.appspot.com/script/355001), we can improve our DSL 
like:

mockLoader.load(2) returns 3 atLeastOnce

However, the above "atLeastOnce" invokes the "getAtLeastOnce()" getter. So I 
think we should add getters for those times matchers with zero parameters.

Original issue reported on code.google.com by JohnnyJianHY on 23 Dec 2010 at 1:50

GoogleCodeExporter commented 8 years ago
What's more, I want to add getters for the chains() method, so we can chain 
like:

mockLoader.methodA().chains.methodB().chains.methodC() returns 1

Original comment by JohnnyJianHY on 28 Apr 2011 at 1:21

GoogleCodeExporter commented 8 years ago

Original comment by JohnnyJianHY on 1 May 2011 at 9:09

GoogleCodeExporter commented 8 years ago

Original comment by JohnnyJianHY on 1 May 2011 at 9:43