in.rcard.assertj.arrowcore.EitherAssert.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assertj-arrow-core Show documentation
Show all versions of assertj-arrow-core Show documentation
Rich and fluent assertions for testing Kotlin Arrow Core types
package `in`.rcard.assertj.arrowcore
import arrow.core.Either
/**
* Assertions for [Either].
*
* @param LEFT type of the value on the left contained in the [Either].
* @param RIGHT type of the value on the right contained in the [Either].
* @author Riccardo Cardin
* @since 0.0.1
*/
class EitherAssert private constructor(either: Either?) :
AbstractEitherAssert, LEFT, RIGHT>(either) {
companion object {
fun assertThat(actual: Either?): EitherAssert =
EitherAssert(actual)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy