keeganwitt / gmock

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

Nice Mock #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Support for nice mock which don't fail when calling an unexpected method.

def mock = mock(Date, constructor("now"), nice())
play {
  assertEquals null, mock.something()
}

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

GoogleCodeExporter commented 9 years ago
The DSL should be:

def mock = nice(mock(Date, constructor("now")))

Original comment by JohnnyJianHY on 5 Feb 2009 at 8:15