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)
- added
toContainSubstring()
andtoNotContainSubstring()
toContain()
can now only be used onTraversable
s; use the newtoContainSubstring()
on stringstoNotContain()
can now only be used onKeyedContainer
s; use the newtoNotContainSubstring()
on stringstoThrowWhenCalledWithArgs()
has been removed; usetoThrow()
with a lambda insteadtoThrow()
can now only be called if a callable with no arguments is providedtoThrow()
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 supportsThrowable
s instead of justException
s