I’m happy to present you a new release of assertj-vavr. This version, i.e., v0.1.0, uses Vavr v0.10.0 and adds support of more types from this library.
Below you can find the information about what’s new.
Enhancements:
Maps support
One of the missing parts was a possibility to make assertions on instances ofio.vavr.colleciton.Map
. The new version provides basic checks.
Among checks of its emptiness, equality, and size, you can run checks for contained entries, keys, and values. Here’s a sample:
Validation support
Another missing part in the library was assertions for io.vavr.control.Validation
. Now, you can check the following:
Lazy support
Another nice-to-have thing is assertions for lazily evaluated values. With the new release, we can check whether a given computation is evaluated or not.
Try assertions
io.vavr.control.Try
Bugfixes
NPEs prevention
The recent version of the library fixes a bug of asserting whether value contained by Option/Try/Either
is null
. While you can use such value in those types, assertj-vavr provided no support for checking this. Now, we have fixed it.
Wrap up
The work above is the combined effort of a group of people: Kamil Szymański, Alex Dukhno, Grzegorz Piwowarek and my humble person.
If you have any ideas about what we should add in future releases of the library, let us know (comment below, contact me, create a new issue or catch me on JVM Poland Slack). And, of course, your contribution to the project is more than welcome!
0 Comments