This project provides a set of AssertJ assertions for the Arrow library. In detail, the project provides assertions for the following Arrow types:
-
Either<E, A>
-
Option<A>
-
Raise<E>.() -> A
Maybe you're asking yourself: "Why do we need AssertJ assertions for Arrow types?". The answer is simple: We often use Kotlin and Arrow Kt inside a Java project using Spring Boot. In this case, we already have AssertJ in the classpath as an assertion library. So, why not use it to assert Arrow types?
The library is available on Maven Central. To use it, add the following dependency to your pom.xml
file:
<dependency>
<groupId>in.rcard</groupId>
<artifactId>assertj-arrow-core</artifactId>
<version>0.2.0</version>
<scope>test</scope>
</dependency>