Skip to content

Rewritten purging logic to be more strict. Before, purging was triggered by when and purged everything before previous when. Now purging is triggered by given/when and purges everything before (inclusive) previous when/then (#100). Also trailing invocations are purged on assumption they belong to previous test. (#101)

Assets 3

@maciejmikosik maciejmikosik released this Dec 6, 2017 · 88 commits to master since this release

fixes:

  • fixed backward compatibility with java 7
Assets 3

@maciejmikosik maciejmikosik released this May 1, 2017 · 90 commits to master since this release

fixes

  • fixed thread-safety bugs
Assets 3

@maciejmikosik maciejmikosik released this Apr 28, 2017 · 93 commits to master since this release

improvements

  • created anyInstanceOf(Class<?>)wildcard #92
  • made given accept Closure and VoidClosure
  • made givenTimes accept VoidClosure #91
  • made mocks thread-safe #95
  • disabled stack trace manipulation #93

fixes

  • improved mocked Throwable sanity by prestubbing fillInStackTrace and printStackTrace #90
  • fixed formatting of arrays and argument list separators when listing actual invocations
  • fixed formattng of arrays inside a(...) and the(...)
Assets 3

@maciejmikosik maciejmikosik released this Mar 4, 2016 · 197 commits to master since this release

fixes

  • fixed performance issue of many invocations on mock #88
Assets 3

@maciejmikosik maciejmikosik released this Feb 2, 2016 · 202 commits to master since this release

improvements

  • made when method friendly towards lambdas returning void #86
  • rewritten tutorial in more story-telling fashion
Assets 3

@maciejmikosik maciejmikosik released this Jul 31, 2015 · 240 commits to master since this release

improvements

  • made build deterministic #84
  • added missing documentation for thenCalledNever and onRequest
  • made minor improvements to documentation
Assets 3

@maciejmikosik maciejmikosik released this Jul 24, 2015 · 279 commits to master since this release

improvements

  • implemented onRequest InvocationMatcher #73
  • implemented thenCalledNever alias #78

fixes

  • checked that onInstance(Object) receives mock #74
  • made Object proxiable from child ClassLoader #77
Assets 3

@maciejmikosik maciejmikosik released this Nov 23, 2014 · 306 commits to master since this release

improvements

  • added diagnosis to failure message in asserting methods #69
  • fixed outdated links in README.md #68
  • implemented verfifying in order #54

incompatible changes

  • moved InvocationMatcher to proxy package
Assets 3

@maciejmikosik maciejmikosik released this Nov 12, 2014 · 332 commits to master since this release

improvements

  • decorated TestoryException message with failed precondition #65
  • made givenTest purge all testory state #67
  • increased scope of purging
  • printed actual list of invocations for failed verification #20

fixes

  • added precondition check against purged mock #66
  • named mocks with type name and ordinal #61

incompatible changes

  • triggered purging in givenTest
Assets 3
You can’t perform that action at this time.