jMock

Don't report "returns a default value" for void methods

Details

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

Description

When a void method isn't called, the error message looks like:

expected exactly 1 time, never invoked: auction.join(); returns a default value

The "returns a default value" is correct but confusing. We should either say "void" or nothing at all for void methods

Activity

Hide
Nat Pryce added a comment -

Fixed in subversion.

Show
Nat Pryce added a comment - Fixed in subversion.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: