/assertj-arrow-core

Assertions for Types Defined in Arrow Kt Core LIbrary

Primary LanguageKotlinApache License 2.0Apache-2.0

Kotlin Version GitHub Workflow Status (with branch) Maven Central GitHub release (latest by date) ktlint

assertj-arrow-core

This project provides a set of AssertJ assertions for the Arrow library. In detail, the project provides assertions for the following Arrow types:

  • Either
  • Option

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?

Usage

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.0.1</version>
  <scope>test</scope>
</dependency>