jMock

Improve error message when trying to return incorrect type of result

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.4.0
  • Fix Version/s: 2.5.0
  • Component/s: JMock 2.x.x Library
  • Labels:
    None
  • Number of attachments :
    0

Description

Currently the message is:

"tried to return an incompatible value: expected a X but returned a Y"

It should be something more like: "tried to return a Y from a method that can only return a X"

Activity

Hide
Nat Pryce added a comment -

Fixed

Show
Nat Pryce added a comment - Fixed

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: