keeganwitt / gmock

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

Improve default mock names #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For example:

def m1 = mock(ClassA) // name: "Mock for ClassA", there is no count as
there is only one mock of ClassA
def m2 = mock(ClassB) // name: "Mock for ClassB (1)", actually the name
should be "Mock for ClassB" before m4 is created
def m3 = mock(ClassB, name("m3"))
def m4 = mock(ClassB) // name: "Mock for ClassB (2)"

Original issue reported on code.google.com by JohnnyJianHY on 26 Feb 2009 at 12:04

GoogleCodeExporter commented 9 years ago
Accepted. I can have a look at that one this week end.

Original comment by julien.g...@gmail.com on 26 Feb 2009 at 6:21

GoogleCodeExporter commented 9 years ago

Original comment by JohnnyJianHY on 28 Feb 2009 at 5:43

GoogleCodeExporter commented 9 years ago

Original comment by JohnnyJianHY on 28 Feb 2009 at 7:57