keeganwitt / gmock

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

Support invoking original constructor #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For example:

def mock1 = mock(SomeClass, invokeConstructor(1))
def mock2 = mock(SomeClass, constructor(2), invokeConstructor(1))
def mock3 = mock(SomeClass, invokeConstructor(1), constructor(2))

PS: Is the method name "invokeConstructor" intuitive enough?

Original issue reported on code.google.com by JohnnyJianHY on 26 Dec 2008 at 11:32

GoogleCodeExporter commented 9 years ago
I think invokeConstructor is fine. It's a real edge case scenario anyway and 
it's
clear about what it is doing. I'll probably be happy with any suggestion if you 
can
think of something better. 

It's hope to you if you think we should support it in 0.5 or 0.6.

Original comment by julien.g...@gmail.com on 26 Dec 2008 at 3:38

GoogleCodeExporter commented 9 years ago
It seems not difficult to support it, so let's do it in 0.5.

Original comment by JohnnyJianHY on 26 Dec 2008 at 4:35

GoogleCodeExporter commented 9 years ago

Original comment by JohnnyJianHY on 27 Dec 2008 at 2:58

GoogleCodeExporter commented 9 years ago

Original comment by JohnnyJianHY on 27 Dec 2008 at 3:59