Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

2.7.0: type safety, feature improvements (breaking changes)

Compare
Choose a tag to compare
@fredemmott fredemmott released this 22 Oct 15:46
  • added toContainSubstring() and toNotContainSubstring()
  • toContain() can now only be used on Traversables; use the new toContainSubstring() on strings
  • toNotContain() can now only be used on KeyedContainers; use the new toNotContainSubstring() on strings
  • toThrowWhenCalledWithArgs() has been removed; use toThrow() with a lambda instead
  • toThrow() can now only be called if a callable with no arguments is provided
  • toThrow() now returns the exception, making it more straightforward and readable to make additional assertions about the exception (such as the message or error code)
  • toThrow() now supports Throwables instead of just Exceptions