Skip to content

wuan/assertj-core-kotlin

Repository files navigation

assertj-core-kotlin Build Status Coverage Status Maven Central

a thin and simple AssertJ wrapper for Kotlin

Motivation

AssertJ ist not usable from Kotlin by default, because there are a lot of overload ambiguity compile errors.

Usage

Just import assertThat from KotlinAssertions and most of AssertJ should work again:

import org.assertj.core.api.KotlinAssertions.assertThat
import org.junit.Test

class KotlinAssertionsExample {

    @Test
    fun simpleAssertion() {
        assertThat(10L.toString()).isEqualTo("10")
    }

}

Disclaimer

The software is not yet a complete wrapper. Your contributions are welcome.

About

a simple AssertJ wrapper for Kotlin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages