jMock

Easy callback from actions

Details

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

Description

An action that makes it easy for a mock object to call back to an argument passed to a mocked method.

E.g.

one (m).addStuffToList(with(any(List.class))); will(perform("$0.add(1)"));

Activity

Hide
Nat Pryce added a comment -

This will be an optional plugin, packaged in its own JAR, and rely on the BeanShell library.

Show
Nat Pryce added a comment - This will be an optional plugin, packaged in its own JAR, and rely on the BeanShell library.
Hide
Nat Pryce added a comment -

In SVN head

Show
Nat Pryce added a comment - In SVN head

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: