keeganwitt / gmock

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

Refactor Constructor mocking #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Change the constructor mocking syntax from:
def mock = mockNew(Loader, 1,2)
to
def mock = mock(Loader, constructor: [1,2])

This is for readability and future enhancement. 

Original issue reported on code.google.com by julien.g...@gmail.com on 11 Oct 2008 at 10:03

GoogleCodeExporter commented 9 years ago

Original comment by julien.g...@gmail.com on 11 Oct 2008 at 10:12

GoogleCodeExporter commented 9 years ago

Original comment by julien.g...@gmail.com on 11 Oct 2008 at 10:31

GoogleCodeExporter commented 9 years ago

Original comment by julien.g...@gmail.com on 11 Oct 2008 at 11:14