keeganwitt / gmock

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

Improve the mock names as parameters in error messages #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Consider the error message:

junit.framework.AssertionFailedError: Unexpected method call 'method(Mock
for Object (1))' on 'Mock for Object (2)'
  'toString()' on 'Mock for Object (1)': expected 1, actual 0
  'method("mock")' on 'Mock for Object (2)': expected 1, actual 0

I think we can change the 'method(Mock for Object (1))' to 'method(<Mock
for Object (1)>)', which may look better.

Original issue reported on code.google.com by JohnnyJianHY on 29 May 2009 at 5:06

GoogleCodeExporter commented 9 years ago

Original comment by julien.g...@gmail.com on 24 Nov 2009 at 7:44

GoogleCodeExporter commented 9 years ago

Original comment by JohnnyJianHY on 2 May 2011 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by JohnnyJianHY on 2 May 2011 at 10:03