Release Notes - jMock - Version 2.5.0 - HTML format

Configure Release Notes

Bug

  • [JMOCK-124] - Can't mock classes in Eclipse JUnit Plugin-Tests
  • [JMOCK-156] - Does not verify mocks when throwing an expected exception
  • [JMOCK-164] - Method Name Clash in SynchronousScheduledExecutor (Revision: 1194) - JDK6
  • [JMOCK-173] - Cookbook Matcher example for Instance of a Type only works with parameters of type Object
  • [JMOCK-184] - Bug in Expectations when defining new expectations in the middle of an expectation definition

Improvement

  • [JMOCK-158] - Improve error message when trying to return incorrect type of result
  • [JMOCK-176] - Improve error message when values and matchers are used in the same expectation
  • [JMOCK-181] - Add an alias for one(m) that is easier for new users to understand
  • [JMOCK-190] - JMock should raise an error when one tries to set an expectation on one of the Object methods

New Feature

  • [JMOCK-154] - Add a returnEnumeration action that acts similarly to returnIterator
  • [JMOCK-161] - Add overloads of "with" that are shorthand for with(equal(...))
  • [JMOCK-168] - Trace actual invocations
  • [JMOCK-171] - Add a more obvious method for setting the current state of a state machine
  • [JMOCK-174] - Easy callback from actions
  • [JMOCK-177] - Implementation of Executor to test multi-threaded code
  • [JMOCK-178] - Implementation of SheduledExecutorService for testing multithreaded code

Edit/Copy Release Notes

The text area below allows the project release notes to be edited and copied to another document.