keeganwitt / gmock

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

Support for answer method #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Support for answer method like:

def mock = mock()
def i = 1
mock.someMethod().answers { i }
play {
  i = 2
  assert 2 == mock.someMethod()

}

Original issue reported on code.google.com by julien.g...@gmail.com on 3 Feb 2009 at 6:29

GoogleCodeExporter commented 9 years ago

Original comment by julien.g...@gmail.com on 3 Feb 2009 at 6:34

GoogleCodeExporter commented 9 years ago

Original comment by JohnnyJianHY on 4 Feb 2009 at 3:04